1# $FreeBSD$ 2 3LIB= hdb 4LDFLAGS= -Wl,--no-undefined 5VERSION_MAP= ${KRB5DIR}/lib/hdb/version-script.map 6LIBADD= asn1 com_err krb5 roken sqlite3 7DPADD= ${LDAPDPADD} 8 9MAN= HDB.3 hdb_entry_ex.3 10 11MLINKS= HDB.3 hdb__del.3 \ 12 HDB.3 hdb__get.3 \ 13 HDB.3 hdb__put.3 \ 14 HDB.3 hdb_auth_status.3 \ 15 HDB.3 hdb_check_constrained_delegation.3 \ 16 HDB.3 hdb_check_pkinit_ms_upn_match.3 \ 17 HDB.3 hdb_check_s4u2self.3 \ 18 HDB.3 hdb_close.3 \ 19 HDB.3 hdb_destroy.3 \ 20 HDB.3 hdb_fetch_kvno.3 \ 21 HDB.3 hdb_firstkey.3 \ 22 HDB.3 hdb_free.3 \ 23 HDB.3 hdb_get_realms.3 \ 24 HDB.3 hdb_lock.3 \ 25 HDB.3 hdb_name.3 \ 26 HDB.3 hdb_nextkey.3 \ 27 HDB.3 hdb_open.3 \ 28 HDB.3 hdb_password.3 \ 29 HDB.3 hdb_remove.3 \ 30 HDB.3 hdb_rename.3 \ 31 HDB.3 hdb_store.3 \ 32 HDB.3 hdb_unlock.3 33 34INCS= hdb-protos.h \ 35 hdb.h \ 36 hdb_asn1.h \ 37 hdb_err.h 38 39SRCS= common.c \ 40 db.c \ 41 db3.c \ 42 dbinfo.c \ 43 ext.c \ 44 hdb-ldap.c \ 45 hdb.c \ 46 hdb_err.c \ 47 hdb_err.h \ 48 hdb-sqlite.c \ 49 hdb-keytab.c \ 50 hdb-mitdb.c \ 51 keys.c \ 52 keytab.c \ 53 mkey.c \ 54 ndbm.c \ 55 print.c \ 56 ${GEN:S/.x$/.c/:S/.hx$/.h/} 57 58CFLAGS+=-I${KRB5DIR}/lib/hdb -I${KRB5DIR}/lib/asn1 \ 59 -I${KRB5DIR}/lib/roken -I${.CURDIR}/../../../contrib/sqlite3/ \ 60 -I${KRB5DIR}/lib/krb5 \ 61 -I. ${LDAPCFLAGS} 62CFLAGS+=-DHDB_DB_DIR="\"/var/heimdal\"" 63 64GEN= asn1_Salt.x \ 65 asn1_Key.x \ 66 asn1_Event.x \ 67 asn1_HDBFlags.x \ 68 asn1_GENERATION.x \ 69 asn1_HDB_Ext_PKINIT_acl.x \ 70 asn1_HDB_Ext_PKINIT_cert.x \ 71 asn1_HDB_Ext_PKINIT_hash.x \ 72 asn1_HDB_Ext_Constrained_delegation_acl.x \ 73 asn1_HDB_Ext_Lan_Manager_OWF.x \ 74 asn1_HDB_Ext_Password.x \ 75 asn1_HDB_Ext_Aliases.x \ 76 asn1_HDB_extension.x \ 77 asn1_HDB_extensions.x \ 78 asn1_hdb_entry.x \ 79 asn1_hdb_entry_alias.x \ 80 asn1_hdb_keyset.x \ 81 hdb_asn1.hx \ 82 hdb_asn1-priv.hx 83 84CLEANFILES= ${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} hdb_asn1_files \ 85 hdb_asn1-template.[ch]* 86 87.ORDER: ${GEN} 88${GEN}: hdb.asn1 89 ${ASN1_COMPILE} ${.ALLSRC:M*.asn1} hdb_asn1 90 91.SUFFIXES: .h .c .x .hx 92 93.x.c: 94 ${CP} ${.IMPSRC} ${.TARGET} 95 96.hx.h: 97 ${CP} ${.IMPSRC} ${.TARGET} 98 99# This makefile generates a lot of its headers 100# so tell bsd.sys.mk not to try and stage them before they are built. 101# Note: this is rare 102NO_BEFOREBUILD_INCLUDES= 103 104.include <bsd.lib.mk> 105 106.SUFFIXES: .h .c .x .hx 107 108.PATH: ${KRB5DIR}/lib/hdb ${KRB5DIR}/doc/doxyout/hdb/man/man3/ 109