2000-11-19 13:56:05 +03:00
|
|
|
# $NetBSD: Makefile,v 1.7 2000/11/19 10:56:05 veego Exp $
|
2000-06-17 02:46:43 +04:00
|
|
|
DIST= ${.CURDIR}/../../crypto/dist
|
2000-06-16 23:27:31 +04:00
|
|
|
.PATH: ${DIST}/heimdal/lib/asn1
|
|
|
|
|
|
|
|
WARNS?= 1
|
|
|
|
MKLINT= no
|
|
|
|
|
|
|
|
LIB= asn1
|
|
|
|
|
2000-08-31 03:51:46 +04:00
|
|
|
COMPILEET!= cd ${.CURDIR}/../libcom_err/compile_et && ${MAKE} print-objdir
|
2000-06-16 23:27:31 +04:00
|
|
|
|
|
|
|
asn1_err.h asn1_err.c: asn1_err.et
|
|
|
|
${COMPILEET}/compile_et ${DIST}/heimdal/lib/asn1/asn1_err.et
|
|
|
|
|
2000-11-13 18:08:16 +03:00
|
|
|
DPSRCS= asn1_err.h asn1.h
|
2000-06-16 23:27:31 +04:00
|
|
|
|
|
|
|
INCS= asn1.h asn1_err.h
|
|
|
|
|
|
|
|
INCSDIR= /usr/include/krb5
|
|
|
|
|
|
|
|
BUILT_SOURCES = \
|
2000-11-13 18:08:16 +03:00
|
|
|
${gen_files:.x=.c} \
|
2000-06-16 23:27:31 +04:00
|
|
|
asn1_err.h \
|
|
|
|
asn1_err.c
|
|
|
|
|
|
|
|
gen_files = \
|
|
|
|
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 \
|
2000-08-03 07:53:35 +04:00
|
|
|
asn1_CKSUMTYPE.x \
|
2000-06-16 23:27:31 +04:00
|
|
|
asn1_Checksum.x \
|
2000-08-03 07:53:35 +04:00
|
|
|
asn1_ETYPE_INFO.x \
|
|
|
|
asn1_ETYPE_INFO_ENTRY.x \
|
2000-06-16 23:27:31 +04:00
|
|
|
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 \
|
2000-08-03 07:53:35 +04:00
|
|
|
asn1_MESSAGE_TYPE.x \
|
2000-06-16 23:27:31 +04:00
|
|
|
asn1_METHOD_DATA.x \
|
2000-08-03 07:53:35 +04:00
|
|
|
asn1_NAME_TYPE.x \
|
|
|
|
asn1_PADATA_TYPE.x \
|
2000-06-16 23:27:31 +04:00
|
|
|
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 \
|
2000-08-03 07:53:35 +04:00
|
|
|
asn1_TransitedEncoding.x \
|
|
|
|
asn1_UNSIGNED.x
|
2000-06-16 23:27:31 +04:00
|
|
|
|
|
|
|
SRCS= der_get.c \
|
|
|
|
der_put.c \
|
|
|
|
der_free.c \
|
|
|
|
der_length.c \
|
|
|
|
der_copy.c \
|
|
|
|
timegm.c \
|
2000-11-13 18:08:16 +03:00
|
|
|
${BUILT_SOURCES}
|
2000-06-16 23:27:31 +04:00
|
|
|
|
|
|
|
CPPFLAGS+= -I. \
|
|
|
|
-I${DIST}/heimdal/lib/asn1 \
|
|
|
|
-I${.CURDIR}/../../include/heimdal \
|
|
|
|
-I${.CURDIR}/../libroken \
|
|
|
|
-I${DIST}/heimdal/lib/roken \
|
|
|
|
-I${DIST}/heimdal/lib/com_err \
|
|
|
|
-DHAVE_CONFIG_H
|
|
|
|
|
|
|
|
ASN1COMPILE!= cd ${.CURDIR}/asn1_compile && ${MAKE} print-objdir
|
2000-11-13 18:08:16 +03:00
|
|
|
ASN1_COMPILE= ${ASN1COMPILE}/asn1_compile
|
2000-06-16 23:27:31 +04:00
|
|
|
|
2000-11-17 12:57:55 +03:00
|
|
|
${SRCS}: asn1.h
|
|
|
|
|
2000-11-13 18:08:16 +03:00
|
|
|
${gen_files} asn1.hx: k5.asn1 ${ASN1_COMPILE}
|
|
|
|
${ASN1_COMPILE} ${DIST}/heimdal/lib/asn1/k5.asn1
|
2000-06-16 23:27:31 +04:00
|
|
|
|
2000-11-13 18:08:16 +03:00
|
|
|
.PHONY: ${ASN1_COMPILE}
|
|
|
|
${ASN1_COMPILE}:
|
|
|
|
@cd ${.CURDIR}/asn1_compile && ${MAKE}
|
2000-06-16 23:27:31 +04:00
|
|
|
|
2000-11-13 18:08:16 +03:00
|
|
|
CLEANFILES = ${BUILT_SOURCES} ${gen_files} asn1_files asn1.h asn1.hx
|
2000-06-16 23:27:31 +04:00
|
|
|
|
2000-11-19 13:56:05 +03:00
|
|
|
SUBDIR= asn1_compile
|
|
|
|
|
2000-06-16 23:27:31 +04:00
|
|
|
.include <bsd.lib.mk>
|
2000-11-19 13:56:05 +03:00
|
|
|
.include <bsd.subdir.mk>
|
2000-06-16 23:27:31 +04:00
|
|
|
|
|
|
|
.SUFFIXES: .hx .x
|
|
|
|
|
|
|
|
.x.c:
|
|
|
|
@cmp -s $< $@ 2> /dev/null || cp $< $@
|
|
|
|
|
|
|
|
.hx.h:
|
|
|
|
@cmp -s $< $@ 2> /dev/null || cp $< $@
|