1# $FreeBSD$ 2 3LIB= hdb 4 5INCS= hdb-private.h \ 6 hdb-protos.h \ 7 hdb.h \ 8 hdb_asn1.h \ 9 hdb_err.h 10 11SRCS= common.c \ 12 db.c \ 13 db3.c \ 14 hdb-ldap.c \ 15 hdb.c \ 16 hdb_asn1.h \ 17 hdb_err.c \ 18 hdb_err.h \ 19 keytab.c \ 20 mkey.c \ 21 ndbm.c \ 22 print.c \ 23 ${GEN:S/.x$/.c/} 24 25CFLAGS+=-I${KRB5DIR}/lib/hdb -I${KRB5DIR}/lib/asn1 \ 26 -I${KRB5DIR}/lib/roken -I. ${LDAPCFLAGS} 27 28GEN= asn1_Event.x \ 29 asn1_GENERATION.x \ 30 asn1_HDBFlags.x \ 31 asn1_Key.x \ 32 asn1_Salt.x \ 33 asn1_hdb_entry.x 34 35CLEANFILES= ${GEN} ${GEN:S/.x$/.c/} hdb_asn1.h asn1_files 36 37.ORDER: ${GEN} hdb_asn1.h 38${GEN} hdb_asn1.h: hdb.asn1 ../../tools/asn1_compile/asn1_compile 39 ../../tools/asn1_compile/asn1_compile ${.ALLSRC:M*.asn1} hdb_asn1 40 41../../tools/asn1_compile/asn1_compile: 42 cd ${.CURDIR}/../../tools/asn1_compile && ${MAKE} 43 44.for I in ${GEN} 45${I:R}.c: ${I} 46 cat ${.ALLSRC} > ${.TARGET} 47.endfor 48 49.include <bsd.lib.mk> 50 51.PATH: ${KRB5DIR}/lib/hdb 52