Makefile.am revision 178826
1# $Id: Makefile.am 22490 2008-01-21 11:49:33Z lha $ 2 3include $(top_srcdir)/Makefile.am.common 4 5AM_CPPFLAGS += -I../asn1 -I$(srcdir)/../asn1 $(INCLUDE_hcrypto) 6 7BUILT_SOURCES = \ 8 $(gen_files_hdb:.x=.c) \ 9 hdb_err.c \ 10 hdb_err.h 11 12gen_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 29CLEANFILES = $(BUILT_SOURCES) $(gen_files_hdb) hdb_asn1.h hdb_asn1_files 30 31LDADD = libhdb.la \ 32 $(LIB_openldap) \ 33 ../krb5/libkrb5.la \ 34 ../asn1/libasn1.la \ 35 $(LIB_hcrypto) \ 36 $(LIB_roken) \ 37 $(LIB_ldopen) 38 39if OPENLDAP_MODULE 40 41ldap_so = hdb_ldap.la 42hdb_ldap_la_SOURCES = hdb-ldap.c 43hdb_ldap_la_LDFLAGS = -module 44 45else 46 47ldap = hdb-ldap.c 48 49endif 50 51 52lib_LTLIBRARIES = libhdb.la $(ldap_so) 53libhdb_la_LDFLAGS = -version-info 11:0:2 54 55noinst_PROGRAMS = test_dbinfo 56 57dist_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 73nodist_libhdb_la_SOURCES = $(BUILT_SOURCES) 74 75AM_CPPFLAGS += $(INCLUDE_openldap) 76 77include_HEADERS = hdb.h hdb-protos.h 78nodist_include_HEADERS = hdb_err.h hdb_asn1.h 79 80libhdb_la_CPPFLAGS = -DHDB_DB_DIR=\"$(DIR_hdbdir)\" 81 82libhdb_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 102hdb_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 107test_dbinfo_SOURCES = test_dbinfo.c 108 109test_dbinfo_LIBS = libhdb.la 110 111# to help stupid solaris make 112 113hdb_err.h: hdb_err.et 114 115EXTRA_DIST = hdb.asn1 hdb_err.et hdb.schema 116