1# $FreeBSD$ 2 3LIB= hx509 4LDFLAGS= -Wl,--no-undefined 5VERSION_MAP= ${KRB5DIR}/lib/hx509/version-script.map 6LDADD= -lasn1 -lcom_err -lcrypto -lroken 7DPADD= ${LIBASN1} ${LIBCOM_ERR} ${LIBCRYPTO} ${LIBROKEN} 8 9INCS= hx509-private.h \ 10 hx509-protos.h \ 11 hx509.h \ 12 hx509_err.h 13 14SRCS= ca.c \ 15 cert.c \ 16 cms.c \ 17 collector.c \ 18 crypto.c \ 19 doxygen.c \ 20 error.c \ 21 env.c \ 22 file.c \ 23 hx509-private.h \ 24 hx509-protos.h \ 25 hx509.h \ 26 hx_locl.h \ 27 keyset.c \ 28 ks_dir.c \ 29 ks_file.c \ 30 ks_mem.c \ 31 ks_null.c \ 32 ks_p11.c \ 33 ks_p12.c \ 34 ks_keychain.c \ 35 lock.c \ 36 name.c \ 37 peer.c \ 38 print.c \ 39 softp11.c \ 40 ref/pkcs11.h \ 41 req.c \ 42 revoke.c 43 44SRCS+= hx509_err.c \ 45 hx509_err.h 46 47SRCS+= ${GEN:S/.x$/.c/} 48 49CFLAGS+=-I${KRB5DIR}/lib/hx509 50CFLAGS+=-I${KRB5DIR}/lib/hx509/ref 51CFLAGS+=-I${KRB5DIR}/lib/asn1 52CFLAGS+=-I${KRB5DIR}/lib/roken -I. 53 54GEN_OCSP= \ 55 asn1_OCSPBasicOCSPResponse.x \ 56 asn1_OCSPCertID.x \ 57 asn1_OCSPCertStatus.x \ 58 asn1_OCSPInnerRequest.x \ 59 asn1_OCSPKeyHash.x \ 60 asn1_OCSPRequest.x \ 61 asn1_OCSPResponderID.x \ 62 asn1_OCSPResponse.x \ 63 asn1_OCSPResponseBytes.x \ 64 asn1_OCSPResponseData.x \ 65 asn1_OCSPResponseStatus.x \ 66 asn1_OCSPSignature.x \ 67 asn1_OCSPSingleResponse.x \ 68 asn1_OCSPTBSRequest.x \ 69 asn1_OCSPVersion.x \ 70 asn1_id_pkix_ocsp.x \ 71 asn1_id_pkix_ocsp_basic.x \ 72 asn1_id_pkix_ocsp_nonce.x 73 74GEN_PKCS10= \ 75 asn1_CertificationRequestInfo.x \ 76 asn1_CertificationRequest.x 77 78GEN+= ${GEN_OCSP} 79GEN+= ${GEN_PKCS10} 80 81CLEANFILES= ${GEN} ${GEN:S/.x$/.c/} asn1_files 82 83GEN_ASN1=ocsp_asn1.h pkcs10_asn1.h 84CLEANFILES+=${GEN_ASN1} 85SRCS+=${GEN_ASN1} 86INCS+=${GEN_ASN1} 87 88.ORDER: ${GEN} ${GEN_ASN1} 89 90${GEN_OCSP} ocsp_asn1.h: ocsp.asn1 ../../tools/asn1_compile/asn1_compile 91 ../../tools/asn1_compile/asn1_compile --preserve-binary=OCSPTBSRequest --preserve-binary=OCSPResponseData ${.ALLSRC:M*.asn1} ocsp_asn1 92 93${GEN_PKCS10} pkcs10_asn1.h: pkcs10.asn1 ../../tools/asn1_compile/asn1_compile 94 ../../tools/asn1_compile/asn1_compile ${.ALLSRC:M*.asn1} pkcs10_asn1 95 96../../tools/asn1_compile/asn1_compile: 97 cd ${.CURDIR}/../../tools/asn1_compile && ${MAKE} 98 99.for I in ${GEN} 100${I:R}.c: ${I} 101 cat ${.ALLSRC} > ${.TARGET} 102.endfor 103 104.include <bsd.lib.mk> 105 106.PATH: ${KRB5DIR}/lib/hx509 ${KRB5DIR}/lib/asn1 107