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