1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/kerberos5/lib/libhdb/Makefile
Mark Murray 079654e8e2 Remove largescale evidence of crack-smoking.
Where a k4 applet has a k5 namesake, rename the k5 version
from k<app> to k5<app>. (Repo copy done).

Do some repairs to dependancies to support make world properly.
2000-02-28 19:15:32 +00:00

61 lines
1.6 KiB
Makefile

# $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}
SRCS= keytab.c hdb.c common.c db.c ndbm.c print.c hdb_err.c \
hdb_asn1.h hdb_err.h krb5_err.h heim_err.h ${GEN:S/.x/.c/g}
GEN= asn1_Key.x asn1_Event.x asn1_HDBFlags.x asn1_hdb_entry.x asn1_Salt.x
.include <bsd.lib.mk>
.PATH: ${KRB5DIR}/lib/hdb
.PATH: ${KRB5DIR}/lib/asn1
.PATH: ${KRB5DIR}/lib/roken
build-tools: make-print-version asn1_compile
.for I in ${GEN}
${I:S/.x/.c/}: ${I}
cmp -s ${.OODATE} ${.TARGET} 2> /dev/null || cp ${.OODATE} ${.TARGET}
.endfor
CLEANFILES+= ${GEN:S/.x/.c/g} asn1.h asn1_files
${GEN} hdb_asn1.h: asn1_compile hdb.asn1
./asn1_compile ${KRB5DIR}/lib/hdb/hdb.asn1 hdb_asn1
asn1_compile: parse.o lex.o main.c hash.c symbol.c gen.c \
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}
parse.o: parse.c
parse.h parse.c: parse.y
${YACC} -d ${.OODATE}
mv y.tab.c parse.c
mv y.tab.h parse.h
lex.o: lex.l
print_version.o: print_version.h print_version.c
${CC} ${CFLAGS} -c -o ${.TARGET} ${KRB5DIR}/lib/roken/print_version.c
print_version.h: make-print-version
./make-print-version print_version.h
make-print-version: make-print-version.c
${CC} ${CFLAGS} -static -o ${.TARGET} ${.OODATE}
CLEANFILES+= ${GEN} asn1_compile lex.o parse.o parse.c parse.h \
hdb_asn1.h make-print-version print_version.h print_version.o