]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - crypto/heimdal/lib/hdb/Makefile.am
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / crypto / heimdal / lib / hdb / Makefile.am
1 # $Id: Makefile.am 22490 2008-01-21 11:49:33Z lha $
2
3 include $(top_srcdir)/Makefile.am.common
4
5 AM_CPPFLAGS += -I../asn1 -I$(srcdir)/../asn1 $(INCLUDE_hcrypto)
6
7 BUILT_SOURCES = \
8         $(gen_files_hdb:.x=.c)  \
9         hdb_err.c \
10         hdb_err.h
11
12 gen_files_hdb = \
13         asn1_Salt.x \
14         asn1_Key.x \
15         asn1_Event.x \
16         asn1_HDBFlags.x \
17         asn1_GENERATION.x \
18         asn1_HDB_Ext_PKINIT_acl.x \
19         asn1_HDB_Ext_PKINIT_hash.x \
20         asn1_HDB_Ext_Constrained_delegation_acl.x \
21         asn1_HDB_Ext_Lan_Manager_OWF.x \
22         asn1_HDB_Ext_Password.x \
23         asn1_HDB_Ext_Aliases.x \
24         asn1_HDB_extension.x \
25         asn1_HDB_extensions.x \
26         asn1_hdb_entry.x \
27         asn1_hdb_entry_alias.x
28
29 CLEANFILES = $(BUILT_SOURCES) $(gen_files_hdb) hdb_asn1.h hdb_asn1_files
30
31 LDADD = libhdb.la \
32         $(LIB_openldap) \
33         ../krb5/libkrb5.la \
34         ../asn1/libasn1.la \
35         $(LIB_hcrypto) \
36         $(LIB_roken) \
37         $(LIB_ldopen)
38
39 if OPENLDAP_MODULE
40
41 ldap_so = hdb_ldap.la
42 hdb_ldap_la_SOURCES = hdb-ldap.c
43 hdb_ldap_la_LDFLAGS = -module
44
45 else
46
47 ldap = hdb-ldap.c
48
49 endif
50
51
52 lib_LTLIBRARIES = libhdb.la $(ldap_so)
53 libhdb_la_LDFLAGS = -version-info 11:0:2
54
55 noinst_PROGRAMS = test_dbinfo
56
57 dist_libhdb_la_SOURCES =                        \
58         common.c                                \
59         db.c                                    \
60         db3.c                                   \
61         ext.c                                   \
62         $(ldap)                                 \
63         hdb.c                                   \
64         hdb_locl.h                              \
65         hdb-private.h                           \
66         keys.c                                  \
67         keytab.c                                \
68         dbinfo.c                                \
69         mkey.c                                  \
70         ndbm.c                                  \
71         print.c
72
73 nodist_libhdb_la_SOURCES = $(BUILT_SOURCES)
74
75 AM_CPPFLAGS += $(INCLUDE_openldap)
76
77 include_HEADERS = hdb.h hdb-protos.h
78 nodist_include_HEADERS =  hdb_err.h hdb_asn1.h
79
80 libhdb_la_CPPFLAGS = -DHDB_DB_DIR=\"$(DIR_hdbdir)\"
81
82 libhdb_la_LIBADD = \
83         $(LIB_com_err) \
84         ../krb5/libkrb5.la \
85         ../asn1/libasn1.la \
86         $(LIBADD_roken) \
87         $(LIB_openldap) \
88         $(LIB_dlopen) \
89         $(DBLIB) \
90         $(LIB_NDBM)
91
92 $(libhdb_la_OBJECTS): $(srcdir)/hdb-protos.h $(srcdir)/hdb-private.h
93
94 $(srcdir)/hdb-protos.h:
95         cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -o hdb-protos.h $(dist_libhdb_la_SOURCES) || rm -f hdb-protos.h
96
97 $(srcdir)/hdb-private.h:
98         cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -p hdb-private.h $(dist_libhdb_la_SOURCES) || rm -f hdb-private.h
99
100 $(gen_files_hdb) hdb_asn1.h: hdb_asn1_files
101
102 hdb_asn1_files: ../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1
103         ../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1 hdb_asn1
104
105 $(libhdb_la_OBJECTS): hdb_asn1.h hdb_err.h
106
107 test_dbinfo_SOURCES = test_dbinfo.c
108
109 test_dbinfo_LIBS = libhdb.la
110
111 # to help stupid solaris make
112
113 hdb_err.h: hdb_err.et
114
115 EXTRA_DIST = hdb.asn1 hdb_err.et hdb.schema