3 include $(top_srcdir)/Makefile.am.common
5 AM_CPPFLAGS += -I../asn1 -I$(srcdir)/../asn1 $(INCLUDE_hcrypto)
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)
11 AM_CPPFLAGS += -I$(DBHEADER)
15 $(gen_files_hdb:.x=.c) \
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 \
36 asn1_hdb_entry_alias.x \
40 CLEANFILES = $(BUILT_SOURCES) $(gen_files_hdb) \
41 hdb_asn1{,-priv}.h* hdb_asn1_files hdb_asn1-template.[cx]
56 hdb_ldap_la_SOURCES = hdb-ldap.c
57 hdb_ldap_la_LDFLAGS = -module -avoid-version
58 hdb_ldap_la_LIBADD = $(LIB_openldap) libhdb.la
63 ldap_lib = $(LIB_openldap)
68 lib_LTLIBRARIES = libhdb.la $(ldap_so)
69 libhdb_la_LDFLAGS = -version-info 11:0:2
72 libhdb_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
75 noinst_PROGRAMS = test_dbinfo test_hdbkeys test_mkey test_hdbplugin
77 dist_libhdb_la_SOURCES = \
96 nodist_libhdb_la_SOURCES = $(BUILT_SOURCES)
98 libhdb_la_DEPENDENCIES = version-script.map
100 include_HEADERS = hdb.h $(srcdir)/hdb-protos.h
101 nodist_include_HEADERS = hdb_err.h hdb_asn1.h
103 noinst_HEADERS = $(srcdir)/hdb-private.h
116 HDB_PROTOS = $(srcdir)/hdb-protos.h $(srcdir)/hdb-private.h
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)
124 $(ALL_OBJECTS): $(HDB_PROTOS)
126 $(libhdb_la_OBJECTS): hdb_asn1.h hdb_asn1-priv.h hdb_err.h
128 $(srcdir)/hdb-protos.h: $(dist_libhdb_la_SOURCES)
129 cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -o hdb-protos.h $(dist_libhdb_la_SOURCES) || rm -f hdb-protos.h
131 $(srcdir)/hdb-private.h: $(dist_libhdb_la_SOURCES)
132 cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -p hdb-private.h $(dist_libhdb_la_SOURCES) || rm -f hdb-private.h
134 $(gen_files_hdb) hdb_asn1.hx hdb_asn1-priv.hx: hdb_asn1_files
136 hdb_asn1_files: $(ASN1_COMPILE_DEP) $(srcdir)/hdb.asn1
137 $(ASN1_COMPILE) --sequence=HDB-Ext-KeySet --sequence=Keys $(srcdir)/hdb.asn1 hdb_asn1
139 test_dbinfo_LIBS = libhdb.la
141 test_hdbkeys_LIBS = ../krb5/libkrb5.la libhdb.la
142 test_mkey_LIBS = $(test_hdbkeys_LIBS)
143 test_hdbplugin_LIBS = $(test_hdbkeys_LIBS)
145 # to help stupid solaris make
147 hdb_err.h: hdb_err.et
157 data-mkey.mit.des3.le \
158 data-mkey.mit.des3.be