2000-01-15 16:38:08 -05:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
|
|
LIB= hdb
|
2001-02-13 11:57:04 -05:00
|
|
|
|
2004-02-05 13:51:52 -05:00
|
|
|
INCS= hdb-private.h \
|
|
|
|
|
hdb-protos.h \
|
|
|
|
|
hdb.h \
|
|
|
|
|
hdb_asn1.h \
|
2004-01-31 03:15:57 -05:00
|
|
|
hdb_err.h
|
2003-10-09 15:50:00 -04:00
|
|
|
|
2004-02-05 13:51:52 -05:00
|
|
|
SRCS= common.c \
|
|
|
|
|
db.c \
|
|
|
|
|
db3.c \
|
|
|
|
|
hdb-ldap.c \
|
|
|
|
|
hdb.c \
|
|
|
|
|
hdb_asn1.h \
|
|
|
|
|
hdb_err.c \
|
|
|
|
|
hdb_err.h \
|
|
|
|
|
keytab.c \
|
|
|
|
|
mkey.c \
|
|
|
|
|
ndbm.c \
|
|
|
|
|
print.c \
|
2004-01-31 03:15:57 -05:00
|
|
|
${GEN:S/.x$/.c/}
|
2001-02-13 11:57:04 -05:00
|
|
|
|
2004-02-05 13:51:52 -05:00
|
|
|
CFLAGS+=-I${KRB5DIR}/lib/hdb -I${KRB5DIR}/lib/asn1 \
|
|
|
|
|
-I${KRB5DIR}/lib/roken -I. ${LDAPCFLAGS}
|
2003-07-18 09:21:58 -04:00
|
|
|
|
2004-02-05 13:51:52 -05:00
|
|
|
GEN= asn1_Event.x \
|
|
|
|
|
asn1_GENERATION.x \
|
|
|
|
|
asn1_HDBFlags.x \
|
|
|
|
|
asn1_Key.x \
|
|
|
|
|
asn1_Salt.x \
|
|
|
|
|
asn1_hdb_entry.x
|
2000-01-15 16:38:08 -05:00
|
|
|
|
2004-01-31 03:15:57 -05:00
|
|
|
CLEANFILES= ${GEN} ${GEN:S/.x$/.c/} hdb_asn1.h asn1_files
|
2000-01-15 16:38:08 -05:00
|
|
|
|
2004-01-31 03:15:57 -05:00
|
|
|
.ORDER: ${GEN} hdb_asn1.h
|
|
|
|
|
${GEN} hdb_asn1.h: hdb.asn1 ../../tools/asn1_compile/asn1_compile
|
|
|
|
|
../../tools/asn1_compile/asn1_compile ${.ALLSRC:M*.asn1} hdb_asn1
|
2000-01-15 16:38:08 -05:00
|
|
|
|
2004-01-31 03:15:57 -05:00
|
|
|
../../tools/asn1_compile/asn1_compile:
|
|
|
|
|
cd ${.CURDIR}/../../tools/asn1_compile && ${MAKE}
|
2000-02-28 14:15:32 -05:00
|
|
|
|
2000-01-15 16:38:08 -05:00
|
|
|
.for I in ${GEN}
|
2004-01-31 03:15:57 -05:00
|
|
|
${I:R}.c: ${I}
|
|
|
|
|
cat ${.ALLSRC} > ${.TARGET}
|
2000-01-15 16:38:08 -05:00
|
|
|
.endfor
|
|
|
|
|
|
2004-01-31 03:15:57 -05:00
|
|
|
.include <bsd.lib.mk>
|
2000-01-15 16:38:08 -05:00
|
|
|
|
2004-02-05 13:51:52 -05:00
|
|
|
.PATH: ${KRB5DIR}/lib/hdb
|