diff options
author | dfr <dfr@FreeBSD.org> | 2008-05-07 13:39:42 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2008-05-07 13:39:42 +0000 |
commit | 51b6601db456e699ea5d4843cbc7239ee92d9c13 (patch) | |
tree | 4dbb862199a916e3ffe75f1cb08703ec0e662ffc /crypto/heimdal/lib/hdb/Makefile.am | |
parent | 2565fa13487d5bfc858144e431e3dfd7ffa5200e (diff) | |
download | FreeBSD-src-51b6601db456e699ea5d4843cbc7239ee92d9c13.zip FreeBSD-src-51b6601db456e699ea5d4843cbc7239ee92d9c13.tar.gz |
Vendor import of Heimdal 1.1
Diffstat (limited to 'crypto/heimdal/lib/hdb/Makefile.am')
-rw-r--r-- | crypto/heimdal/lib/hdb/Makefile.am | 105 |
1 files changed, 79 insertions, 26 deletions
diff --git a/crypto/heimdal/lib/hdb/Makefile.am b/crypto/heimdal/lib/hdb/Makefile.am index 952944b..f66cd06 100644 --- a/crypto/heimdal/lib/hdb/Makefile.am +++ b/crypto/heimdal/lib/hdb/Makefile.am @@ -1,62 +1,115 @@ -# $Id: Makefile.am,v 1.53.4.2 2003/10/14 16:13:14 joda Exp $ +# $Id: Makefile.am 22490 2008-01-21 11:49:33Z lha $ include $(top_srcdir)/Makefile.am.common -INCLUDES += -I../asn1 -I$(srcdir)/../asn1 $(INCLUDE_des) +AM_CPPFLAGS += -I../asn1 -I$(srcdir)/../asn1 $(INCLUDE_hcrypto) + +BUILT_SOURCES = \ + $(gen_files_hdb:.x=.c) \ + hdb_err.c \ + hdb_err.h + +gen_files_hdb = \ + asn1_Salt.x \ + asn1_Key.x \ + asn1_Event.x \ + asn1_HDBFlags.x \ + asn1_GENERATION.x \ + asn1_HDB_Ext_PKINIT_acl.x \ + asn1_HDB_Ext_PKINIT_hash.x \ + asn1_HDB_Ext_Constrained_delegation_acl.x \ + asn1_HDB_Ext_Lan_Manager_OWF.x \ + asn1_HDB_Ext_Password.x \ + asn1_HDB_Ext_Aliases.x \ + asn1_HDB_extension.x \ + asn1_HDB_extensions.x \ + asn1_hdb_entry.x \ + asn1_hdb_entry_alias.x + +CLEANFILES = $(BUILT_SOURCES) $(gen_files_hdb) hdb_asn1.h hdb_asn1_files -BUILT_SOURCES = asn1_Key.c asn1_Event.c asn1_HDBFlags.c asn1_hdb_entry.c \ - asn1_Salt.c hdb_err.c hdb_err.h asn1_GENERATION.c - -foo = asn1_Key.x asn1_GENERATION.x asn1_Event.x asn1_HDBFlags.x asn1_hdb_entry.x asn1_Salt.x - -CLEANFILES = $(BUILT_SOURCES) $(foo) hdb_asn1.h asn1_files - -noinst_PROGRAMS = convert_db LDADD = libhdb.la \ $(LIB_openldap) \ ../krb5/libkrb5.la \ ../asn1/libasn1.la \ - $(LIB_des) \ - $(LIB_roken) + $(LIB_hcrypto) \ + $(LIB_roken) \ + $(LIB_ldopen) + +if OPENLDAP_MODULE + +ldap_so = hdb_ldap.la +hdb_ldap_la_SOURCES = hdb-ldap.c +hdb_ldap_la_LDFLAGS = -module + +else + +ldap = hdb-ldap.c + +endif + -lib_LTLIBRARIES = libhdb.la -libhdb_la_LDFLAGS = -version-info 7:7:0 +lib_LTLIBRARIES = libhdb.la $(ldap_so) +libhdb_la_LDFLAGS = -version-info 11:0:2 -libhdb_la_SOURCES = \ +noinst_PROGRAMS = test_dbinfo + +dist_libhdb_la_SOURCES = \ common.c \ db.c \ db3.c \ - hdb-ldap.c \ + ext.c \ + $(ldap) \ hdb.c \ + hdb_locl.h \ + hdb-private.h \ + keys.c \ keytab.c \ + dbinfo.c \ mkey.c \ ndbm.c \ - print.c \ - $(BUILT_SOURCES) + print.c + +nodist_libhdb_la_SOURCES = $(BUILT_SOURCES) -INCLUDES += $(INCLUDE_openldap) +AM_CPPFLAGS += $(INCLUDE_openldap) -include_HEADERS = hdb.h hdb_err.h hdb_asn1.h hdb-protos.h hdb-private.h +include_HEADERS = hdb.h hdb-protos.h +nodist_include_HEADERS = hdb_err.h hdb_asn1.h -libhdb_la_LIBADD = ../krb5/libkrb5.la ../asn1/libasn1.la ../roken/libroken.la $(LIB_openldap) $(DBLIB) $(LIB_NDBM) +libhdb_la_CPPFLAGS = -DHDB_DB_DIR=\"$(DIR_hdbdir)\" + +libhdb_la_LIBADD = \ + $(LIB_com_err) \ + ../krb5/libkrb5.la \ + ../asn1/libasn1.la \ + $(LIBADD_roken) \ + $(LIB_openldap) \ + $(LIB_dlopen) \ + $(DBLIB) \ + $(LIB_NDBM) $(libhdb_la_OBJECTS): $(srcdir)/hdb-protos.h $(srcdir)/hdb-private.h $(srcdir)/hdb-protos.h: - cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -o hdb-protos.h $(libhdb_la_SOURCES) || rm -f hdb-protos.h + cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -o hdb-protos.h $(dist_libhdb_la_SOURCES) || rm -f hdb-protos.h $(srcdir)/hdb-private.h: - cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -p hdb-private.h $(libhdb_la_SOURCES) || rm -f hdb-private.h + cd $(srcdir); perl ../../cf/make-proto.pl -q -P comment -p hdb-private.h $(dist_libhdb_la_SOURCES) || rm -f hdb-private.h -$(foo) hdb_asn1.h: asn1_files +$(gen_files_hdb) hdb_asn1.h: hdb_asn1_files -asn1_files: ../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1 +hdb_asn1_files: ../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1 ../asn1/asn1_compile$(EXEEXT) $(srcdir)/hdb.asn1 hdb_asn1 $(libhdb_la_OBJECTS): hdb_asn1.h hdb_err.h -$(convert_db_OBJECTS): hdb_asn1.h hdb_err.h +test_dbinfo_SOURCES = test_dbinfo.c + +test_dbinfo_LIBS = libhdb.la # to help stupid solaris make hdb_err.h: hdb_err.et + +EXTRA_DIST = hdb.asn1 hdb_err.et hdb.schema |