Debian Codegraph @

lib/hdb/Makefile.am

raw ◀ ▶
1 Debian patch touch this file
1 # $Id$
2
3 include $(top_srcdir)/Makefile.am.common
4
5 AM_CPPFLAGS += -I../asn1 -I$(srcdir)/../asn1
6 AM_CPPFLAGS += $(INCLUDE_openldap) -DHDB_DB_DIR=\"$(DIR_hdbdir)\"
7 AM_CPPFLAGS += -I$(srcdir)/../krb5
8 AM_CPPFLAGS += $(INCLUDE_sqlite3)
9 AM_CPPFLAGS += $(INCLUDE_libintl)
10 if HAVE_DBHEADER
11 AM_CPPFLAGS += -I$(DBHEADER)
12 endif
13
14 BUILT_SOURCES = \
15 $(gen_files_hdb:.x=.c) \
16 hdb_err.c \
17 hdb_err.h
18
19 gen_files_hdb = \
20 asn1_Salt.x \
21 asn1_Key.x \
22 asn1_Event.x \
23 asn1_HDBFlags.x \
24 asn1_GENERATION.x \
25 asn1_HDB_Ext_PKINIT_acl.x \
26 asn1_HDB_Ext_PKINIT_cert.x \
27 asn1_HDB_Ext_PKINIT_hash.x \
28 asn1_HDB_Ext_Constrained_delegation_acl.x \
29 asn1_HDB_Ext_Lan_Manager_OWF.x \
30 asn1_HDB_Ext_Password.x \
31 asn1_HDB_Ext_Aliases.x \
32 asn1_HDB_Ext_KeySet.x \
33 asn1_HDB_extension.x \
34 asn1_HDB_extensions.x \
35 asn1_hdb_entry.x \
36 asn1_hdb_entry_alias.x \
37 asn1_hdb_keyset.x \
38 asn1_Keys.x
39
40 CLEANFILES = $(BUILT_SOURCES) $(gen_files_hdb) \
41 hdb_asn1{,-priv}.h* hdb_asn1_files hdb_asn1-template.[cx]
42
43 LDADD = libhdb.la \
44 ../krb5/libkrb5.la \
45 ../asn1/libasn1.la \
•46 $(LIB_gssapi) \
47 $(LIB_hcrypto) \
48 $(LIB_roken) \
49 $(LIB_openldap) \
50 $(LIB_libintl) \
51 $(LIB_ldopen)
52
53
54 if OPENLDAP_MODULE
55
56 ldap_so = hdb_ldap.la
57 hdb_ldap_la_SOURCES = hdb-ldap.c
58 hdb_ldap_la_LDFLAGS = -module -avoid-version
59 hdb_ldap_la_LIBADD = $(LIB_openldap) libhdb.la
60
61 else
62
63 ldap = hdb-ldap.c
64 ldap_lib = $(LIB_openldap)
65
66 endif
67
68
69 lib_LTLIBRARIES = libhdb.la $(ldap_so)
70 libhdb_la_LDFLAGS = -version-info 11:0:2
71
72 if versionscript
73 libhdb_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
74 endif
75
76 noinst_PROGRAMS = test_dbinfo test_hdbkeys test_mkey test_hdbplugin
77
78 dist_libhdb_la_SOURCES = \
79 common.c \
80 db.c \
81 db3.c \
82 ext.c \
83 $(ldap) \
84 hdb.c \
85 hdb-sqlite.c \
86 hdb-keytab.c \
87 hdb-mdb.c \
88 hdb-mitdb.c \
89 hdb_locl.h \
90 keys.c \
91 keytab.c \
92 dbinfo.c \
93 mkey.c \
94 ndbm.c \
95 print.c
96
97 nodist_libhdb_la_SOURCES = $(BUILT_SOURCES)
98
99 libhdb_la_DEPENDENCIES = version-script.map
100
101 include_HEADERS = hdb.h $(srcdir)/hdb-protos.h
102 nodist_include_HEADERS = hdb_err.h hdb_asn1.h
103
104 noinst_HEADERS = $(srcdir)/hdb-private.h
105
106 libhdb_la_LIBADD = \
107 $(LIB_com_err) \
108 ../krb5/libkrb5.la \
109 ../asn1/libasn1.la \
110 $(LIB_sqlite3) \
111 $(LIBADD_roken) \
112 $(ldap_lib) \
113 $(LIB_dlopen) \
114 $(DB3LIB) $(DB1LIB) $(LMDBLIB) $(NDBMLIB)
115
116 HDB_PROTOS = $(srcdir)/hdb-protos.h $(srcdir)/hdb-private.h
117
118 ALL_OBJECTS = $(libhdb_la_OBJECTS)
119 ALL_OBJECTS += $(test_dbinfo_OBJECTS)
120 ALL_OBJECTS += $(test_hdbkeys_OBJECTS)
121 ALL_OBJECTS += $(test_mkey_OBJECTS)
122 ALL_OBJECTS += $(test_hdbplugin_OBJECTS)
123
124 $(ALL_OBJECTS): $(HDB_PROTOS) hdb_asn1.h hdb_asn1-priv.h hdb_err.h
125
126 $(srcdir)/hdb-protos.h: $(dist_libhdb_la_SOURCES)
127 cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -o hdb-protos.h $(dist_libhdb_la_SOURCES) || rm -f hdb-protos.h
128
129 $(srcdir)/hdb-private.h: $(dist_libhdb_la_SOURCES)
130 cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -p hdb-private.h $(dist_libhdb_la_SOURCES) || rm -f hdb-private.h
131
132 $(gen_files_hdb) hdb_asn1.hx hdb_asn1-priv.hx: hdb_asn1_files
133
134 hdb_asn1_files: $(ASN1_COMPILE_DEP) $(srcdir)/hdb.asn1
135 $(ASN1_COMPILE) --sequence=HDB-Ext-KeySet --sequence=Keys $(srcdir)/hdb.asn1 hdb_asn1
136
137 test_dbinfo_LIBS = libhdb.la
138
139 test_hdbkeys_LIBS = ../krb5/libkrb5.la libhdb.la
140 test_mkey_LIBS = $(test_hdbkeys_LIBS)
141 test_hdbplugin_LIBS = $(test_hdbkeys_LIBS)
142
143 # to help stupid solaris make
144
145 hdb_err.h: hdb_err.et
146
147 EXTRA_DIST = \
148 NTMakefile \
149 libhdb-version.rc \
150 libhdb-exports.def \
151 hdb.asn1 \
152 hdb_err.et \
153 hdb.schema \
154 version-script.map \
155 data-mkey.mit.des3.le \
156 data-mkey.mit.des3.be