2000-01-15 21:38:08 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
LIB= asn1
|
2003-07-18 13:21:58 +00:00
|
|
|
|
|
|
|
SRCS= \
|
|
|
|
der_get.c \
|
|
|
|
der_put.c \
|
|
|
|
der_free.c \
|
|
|
|
der_length.c \
|
|
|
|
der_copy.c \
|
|
|
|
timegm.c \
|
|
|
|
asn1_err.c \
|
|
|
|
${.OBJDIR}/asn1_err.h \
|
|
|
|
${.OBJDIR}/krb5_asn1.h \
|
|
|
|
${.OBJDIR}/roken.h \
|
2000-02-24 21:15:14 +00:00
|
|
|
${GEN:S/.x/.c/g}
|
2000-01-15 21:38:08 +00:00
|
|
|
|
2003-07-18 13:21:58 +00:00
|
|
|
CFLAGS+=-I${KRB5DIR}/include \
|
|
|
|
-I${KRB5DIR}/lib/asn1 \
|
|
|
|
-I${KRB5DIR}/lib/roken \
|
|
|
|
-I${INCLUDEOBJDIR} \
|
|
|
|
-I${.OBJDIR}
|
|
|
|
|
2001-02-13 16:57:04 +00:00
|
|
|
GEN= \
|
|
|
|
asn1_APOptions.x \
|
|
|
|
asn1_AP_REP.x \
|
|
|
|
asn1_AP_REQ.x \
|
|
|
|
asn1_AS_REP.x \
|
|
|
|
asn1_AS_REQ.x \
|
|
|
|
asn1_Authenticator.x \
|
|
|
|
asn1_AuthorizationData.x \
|
|
|
|
asn1_CKSUMTYPE.x \
|
|
|
|
asn1_Checksum.x \
|
2001-06-21 12:55:45 +00:00
|
|
|
asn1_ENCTYPE.x \
|
2001-02-13 16:57:04 +00:00
|
|
|
asn1_ETYPE_INFO.x \
|
|
|
|
asn1_ETYPE_INFO_ENTRY.x \
|
|
|
|
asn1_EncAPRepPart.x \
|
|
|
|
asn1_EncASRepPart.x \
|
|
|
|
asn1_EncKDCRepPart.x \
|
|
|
|
asn1_EncKrbCredPart.x \
|
|
|
|
asn1_EncKrbPrivPart.x \
|
|
|
|
asn1_EncTGSRepPart.x \
|
|
|
|
asn1_EncTicketPart.x \
|
|
|
|
asn1_EncryptedData.x \
|
|
|
|
asn1_EncryptionKey.x \
|
|
|
|
asn1_HostAddress.x \
|
|
|
|
asn1_HostAddresses.x \
|
|
|
|
asn1_KDCOptions.x \
|
|
|
|
asn1_KDC_REP.x \
|
|
|
|
asn1_KDC_REQ.x \
|
|
|
|
asn1_KDC_REQ_BODY.x \
|
|
|
|
asn1_KRB_CRED.x \
|
|
|
|
asn1_KRB_ERROR.x \
|
|
|
|
asn1_KRB_PRIV.x \
|
|
|
|
asn1_KRB_SAFE.x \
|
|
|
|
asn1_KRB_SAFE_BODY.x \
|
|
|
|
asn1_KerberosTime.x \
|
|
|
|
asn1_KrbCredInfo.x \
|
|
|
|
asn1_LastReq.x \
|
2001-06-21 12:55:45 +00:00
|
|
|
asn1_LR_TYPE.x \
|
2001-02-13 16:57:04 +00:00
|
|
|
asn1_MESSAGE_TYPE.x \
|
|
|
|
asn1_METHOD_DATA.x \
|
|
|
|
asn1_NAME_TYPE.x \
|
|
|
|
asn1_PADATA_TYPE.x \
|
|
|
|
asn1_PA_DATA.x \
|
|
|
|
asn1_PA_ENC_TS_ENC.x \
|
|
|
|
asn1_Principal.x \
|
|
|
|
asn1_PrincipalName.x \
|
|
|
|
asn1_Realm.x \
|
|
|
|
asn1_TGS_REP.x \
|
|
|
|
asn1_TGS_REQ.x \
|
|
|
|
asn1_Ticket.x \
|
|
|
|
asn1_TicketFlags.x \
|
|
|
|
asn1_TransitedEncoding.x \
|
|
|
|
asn1_UNSIGNED.x
|
2000-01-15 21:38:08 +00:00
|
|
|
|
2003-07-18 13:21:58 +00:00
|
|
|
INCS= ${.OBJDIR}/krb5_asn1.h ${.OBJDIR}/asn1_err.h
|
2000-02-28 19:15:32 +00:00
|
|
|
|
2000-01-15 21:38:08 +00:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
|
|
|
.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
|
|
|
|
|
2003-07-18 13:21:58 +00:00
|
|
|
beforedepend all: ${.OBJDIR}/roken.h
|
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} krb5_asn1.h asn1_files
|
2000-01-15 21:38:08 +00:00
|
|
|
|
2003-07-18 13:21:58 +00:00
|
|
|
${GEN} ${.OBJDIR}/krb5_asn1.h: asn1_compile k5.asn1
|
2001-06-21 12:55:45 +00:00
|
|
|
./asn1_compile ${KRB5DIR}/lib/asn1/k5.asn1 krb5_asn1
|
2000-01-15 21:38:08 +00:00
|
|
|
|
2002-02-11 16:47:05 +00:00
|
|
|
build-tools: make-print-version make-roken asn1_compile
|
2000-01-15 21:38:08 +00:00
|
|
|
|
2001-06-21 12:55:45 +00:00
|
|
|
asn1_compile: \
|
|
|
|
gen.c \
|
|
|
|
gen_copy.c \
|
|
|
|
gen_decode.c \
|
|
|
|
gen_encode.c \
|
|
|
|
gen_free.c \
|
|
|
|
gen_glue.c \
|
|
|
|
gen_length.c \
|
|
|
|
hash.c \
|
2002-02-19 15:53:33 +00:00
|
|
|
emalloc.c \
|
2001-06-21 12:55:45 +00:00
|
|
|
main.c \
|
|
|
|
symbol.c \
|
|
|
|
getarg.c \
|
|
|
|
warnerr.c \
|
2003-07-27 13:17:31 +00:00
|
|
|
${.OBJDIR}/lex.o \
|
|
|
|
${.OBJDIR}/parse.o \
|
2003-07-18 13:21:58 +00:00
|
|
|
${.OBJDIR}/print_version.o \
|
2001-06-21 12:55:45 +00:00
|
|
|
get_window_size.c \
|
|
|
|
strupr.c
|
2003-04-05 20:30:30 +00:00
|
|
|
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.OODATE} ${LDADD}
|
2002-08-13 16:52:52 +00:00
|
|
|
|
2003-07-27 13:17:31 +00:00
|
|
|
.ORDER: ${.OBJDIR}/roken.h ${.OBJDIR}/parse.c ${.OBJDIR}/parse.h ${.OBJDIR}/lex.c
|
|
|
|
|
2003-07-18 13:21:58 +00:00
|
|
|
${.OBJDIR}/parse.o: ${.OBJDIR}/parse.c ${.OBJDIR}/roken.h
|
2000-01-15 21:38:08 +00:00
|
|
|
|
2003-07-27 13:17:31 +00:00
|
|
|
${.OBJDIR}/lex.o: ${.OBJDIR}/lex.c ${.OBJDIR}/parse.h ${.OBJDIR}/roken.h
|
|
|
|
|
2003-07-18 13:21:58 +00:00
|
|
|
${.OBJDIR}/parse.h ${.OBJDIR}/parse.c: parse.y
|
2000-01-15 21:38:08 +00:00
|
|
|
${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
|
|
|
|
2003-07-27 13:17:31 +00:00
|
|
|
${.OBJDIR}/lex.c: lex.l
|
|
|
|
${LEX} -t ${LFLAGS} ${.OODATE} > ${.TARGET}
|
2000-01-15 21:38:08 +00:00
|
|
|
|
2003-07-18 13:21:58 +00:00
|
|
|
${.OBJDIR}/print_version.o: ${.OBJDIR}/print_version.h print_version.c \
|
|
|
|
${.OBJDIR}/roken.h
|
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
|
|
|
|
2003-07-18 13:21:58 +00:00
|
|
|
${.OBJDIR}/print_version.h: make-print-version
|
2000-01-15 21:38:08 +00:00
|
|
|
./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
|