2000-01-15 21:38:08 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
LIB= hdb
|
|
|
|
CFLAGS+=-I${KRB5DIR}/include \
|
|
|
|
-I${INCLUDEOBJDIR} \
|
|
|
|
-I${KRB5DIR}/lib/krb5 \
|
|
|
|
-I${KRB5DIR}/lib/hdb \
|
|
|
|
-I${KRB5DIR}/lib/asn1 \
|
|
|
|
-I${KRB5DIR}/lib/roken \
|
|
|
|
-I${.OBJDIR} \
|
|
|
|
-I${ASN1OBJDIR}
|
2001-02-13 16:57:04 +00:00
|
|
|
|
|
|
|
SRCS= \
|
|
|
|
common.c \
|
|
|
|
db.c \
|
|
|
|
db3.c \
|
|
|
|
hdb-ldap.c \
|
|
|
|
hdb.c \
|
|
|
|
keytab.c \
|
|
|
|
mkey.c \
|
|
|
|
ndbm.c \
|
|
|
|
print.c \
|
|
|
|
hdb_err.c \
|
|
|
|
hdb_err.h \
|
|
|
|
hdb_asn1.h \
|
2002-02-19 15:53:33 +00:00
|
|
|
k524_err.h \
|
2001-02-13 16:57:04 +00:00
|
|
|
krb5_err.h \
|
|
|
|
heim_err.h \
|
|
|
|
${GEN:S/.x/.c/g}
|
|
|
|
|
|
|
|
GEN= \
|
|
|
|
asn1_Key.x \
|
2002-02-19 15:53:33 +00:00
|
|
|
asn1_GENERATION.x \
|
2001-02-13 16:57:04 +00:00
|
|
|
asn1_Event.x \
|
|
|
|
asn1_HDBFlags.x \
|
|
|
|
asn1_hdb_entry.x \
|
|
|
|
asn1_Salt.x
|
2000-01-15 21:38:08 +00:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
|
|
|
.PATH: ${KRB5DIR}/lib/hdb
|
|
|
|
.PATH: ${KRB5DIR}/lib/asn1
|
2001-05-14 09:24:50 +00:00
|
|
|
.PATH: ${KRB5DIR}/lib/vers
|
2000-01-15 21:38:08 +00:00
|
|
|
.PATH: ${KRB5DIR}/lib/roken
|
|
|
|
|
2000-02-28 19:15:32 +00:00
|
|
|
build-tools: make-print-version asn1_compile
|
|
|
|
|
2000-01-15 21:38:08 +00:00
|
|
|
.for I in ${GEN}
|
|
|
|
${I:S/.x/.c/}: ${I}
|
|
|
|
cmp -s ${.OODATE} ${.TARGET} 2> /dev/null || cp ${.OODATE} ${.TARGET}
|
|
|
|
.endfor
|
|
|
|
|
2001-06-21 12:55:45 +00:00
|
|
|
CLEANFILES+= ${GEN:S/.x/.c/g} hdb_asn1.h asn1_files
|
2000-01-15 21:38:08 +00:00
|
|
|
|
|
|
|
${GEN} hdb_asn1.h: asn1_compile hdb.asn1
|
|
|
|
./asn1_compile ${KRB5DIR}/lib/hdb/hdb.asn1 hdb_asn1
|
|
|
|
|
2002-02-19 15:53:33 +00:00
|
|
|
asn1_compile: parse.o lex.o main.c hash.c symbol.c emalloc.c gen.c \
|
2000-01-15 21:38:08 +00:00
|
|
|
gen_encode.c gen_decode.c gen_free.c gen_length.c \
|
|
|
|
gen_copy.c gen_glue.c getarg.c warnerr.c print_version.o \
|
|
|
|
get_window_size.c strupr.c
|
|
|
|
${CC} ${CFLAGS} ${.OODATE} -o ${.TARGET}
|
|
|
|
|
2002-08-13 16:52:52 +00:00
|
|
|
.if defined(BOOTSTRAPPING)
|
|
|
|
asn1_compile: getprogname.c setprogname.c
|
|
|
|
.endif
|
|
|
|
|
2000-01-15 21:38:08 +00:00
|
|
|
parse.o: parse.c
|
|
|
|
|
2002-05-14 15:27:13 +00:00
|
|
|
.ORDER: parse.c parse.h
|
2000-01-15 21:38:08 +00:00
|
|
|
parse.h parse.c: parse.y
|
|
|
|
${YACC} -d ${.OODATE}
|
2001-11-06 04:30:15 +00:00
|
|
|
cp y.tab.c parse.c
|
|
|
|
cp y.tab.h parse.h
|
2000-01-15 21:38:08 +00:00
|
|
|
|
|
|
|
lex.o: lex.l
|
|
|
|
|
|
|
|
print_version.o: print_version.h print_version.c
|
2001-05-14 09:24:50 +00:00
|
|
|
${CC} ${CFLAGS} -c -o ${.TARGET} ${KRB5DIR}/lib/vers/print_version.c
|
2000-01-15 21:38:08 +00:00
|
|
|
|
|
|
|
print_version.h: make-print-version
|
|
|
|
./make-print-version print_version.h
|
|
|
|
|
|
|
|
make-print-version: make-print-version.c
|
2000-02-28 19:15:32 +00:00
|
|
|
${CC} ${CFLAGS} -static -o ${.TARGET} ${.OODATE}
|
2000-01-15 21:38:08 +00:00
|
|
|
|
|
|
|
CLEANFILES+= ${GEN} asn1_compile lex.o parse.o parse.c parse.h \
|
2001-11-06 04:30:15 +00:00
|
|
|
hdb_asn1.h make-print-version print_version.h print_version.o \
|
|
|
|
y.tab.c y.tab.h
|