1# $FreeBSD$ 2 3LIB= hdb 4LDFLAGS= -Wl,--no-undefined ${LDAPLDFLAGS} 5LDADD= -lasn1 -lcom_err -lkrb5 -lroken ${LDAPLDADD} 6DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBKRB5} ${LIBROKEN} ${LDAPDPADD} 7 8INCS= hdb-private.h \ 9 hdb-protos.h \ 10 hdb.h \ 11 hdb_asn1.h \ 12 hdb_err.h 13 14SRCS= common.c \ 15 db.c \ 16 db3.c \ 17 dbinfo.c \ 18 ext.c \ 19 hdb-ldap.c \ 20 hdb.c \ 21 hdb_asn1.h \ 22 hdb_err.c \ 23 hdb_err.h \ 24 keys.c \ 25 keytab.c \ 26 mkey.c \ 27 ndbm.c \ 28 print.c \ 29 ${GEN:S/.x$/.c/} 30 31CFLAGS+=-I${KRB5DIR}/lib/hdb -I${KRB5DIR}/lib/asn1 \ 32 -I${KRB5DIR}/lib/roken -I. ${LDAPCFLAGS} 33CFLAGS+=-DHDB_DB_DIR="\"/var/heimdal\"" 34 35GEN= asn1_Salt.x \ 36 asn1_Key.x \ 37 asn1_Event.x \ 38 asn1_HDBFlags.x \ 39 asn1_GENERATION.x \ 40 asn1_HDB_Ext_PKINIT_acl.x \ 41 asn1_HDB_Ext_PKINIT_hash.x \ 42 asn1_HDB_Ext_Constrained_delegation_acl.x \ 43 asn1_HDB_Ext_Lan_Manager_OWF.x \ 44 asn1_HDB_Ext_Password.x \ 45 asn1_HDB_Ext_Aliases.x \ 46 asn1_HDB_extension.x \ 47 asn1_HDB_extensions.x \ 48 asn1_hdb_entry.x \ 49 asn1_hdb_entry_alias.x 50 51CLEANFILES= ${GEN} ${GEN:S/.x$/.c/} hdb_asn1.h asn1_files 52 53.ORDER: ${GEN} hdb_asn1.h 54${GEN} hdb_asn1.h: hdb.asn1 ../../tools/asn1_compile/asn1_compile 55 ../../tools/asn1_compile/asn1_compile ${.ALLSRC:M*.asn1} hdb_asn1 56 57../../tools/asn1_compile/asn1_compile: 58 cd ${.CURDIR}/../../tools/asn1_compile && ${MAKE} 59 60.for I in ${GEN} 61${I:R}.c: ${I} 62 cat ${.ALLSRC} > ${.TARGET} 63.endfor 64 65.include <bsd.lib.mk> 66 67.PATH: ${KRB5DIR}/lib/hdb 68