1 # $NetBSD: Makefile,v 1.5 2008/10/27 07:26:55 mrg Exp $
3 USE_FORT?
= yes
# cryptographic software
9 DIST
= ${NETBSDSRCDIR}/crypto
/dist
10 .PATH
: ${DIST}/heimdal
/lib
/hx509
${DIST}/heimdal
/lib
/hx509
/ref
16 LIBDPLIBS
+= crypto
${.CURDIR
}/..
/..
/crypto
/external
/bsd
/openssl
/lib
/libcrypto \
17 asn1
${.CURDIR
}/..
/libasn1 \
18 roken
${.CURDIR
}/..
/libroken
20 .if
${USETOOLS} != "yes"
21 COMPILEETOBJ
!= cd
${NETBSDSRCDIR}/lib
/libcom_err
/compile_et
&& ${PRINTOBJDIR}
22 TOOL_COMPILE_ET
= ${COMPILEETOBJ}/compile_et
24 ASN1COMPILEOBJ
!= cd
${NETBSDSRCDIR}/lib
/libasn1
/asn1_compile
&& ${PRINTOBJDIR}
25 TOOL_ASN1_COMPILE
= ${ASN1COMPILEOBJ}/asn1_compile
28 hx509_err.c hx509_err.h
: hx509_err.et
${TOOL_COMPILE_ET}
29 ${TOOL_COMPILE_ET} ${DIST}/heimdal
/lib
/hx509
/hx509_err.et
31 ERR_FILES
= hx509_err.c
34 asn1_OCSPBasicOCSPResponse.x \
36 asn1_OCSPCertStatus.x \
37 asn1_OCSPInnerRequest.x \
40 asn1_OCSPResponderID.x \
42 asn1_OCSPResponseBytes.x \
43 asn1_OCSPResponseData.x \
44 asn1_OCSPResponseStatus.x \
45 asn1_OCSPSignature.x \
46 asn1_OCSPSingleResponse.x \
47 asn1_OCSPTBSRequest.x \
50 asn1_id_pkix_ocsp_basic.x \
51 asn1_id_pkix_ocsp_nonce.x
54 asn1_CertificationRequestInfo.x \
55 asn1_CertificationRequest.x
58 asn1_CRMFRDNSequence.x \
59 asn1_CertReqMessages.x \
67 asn1_POPOSigningKey.x \
68 asn1_POPOSigningKeyInput.x \
69 asn1_ProofOfPossession.x \
70 asn1_SubsequentMessage.x
73 DPSRCS
= ocsp_asn1.h pkcs10_asn1.h crmf_asn1.h hx509_err.h
76 ${gen_files_ocsp
:.x
=.c
} \
77 ${gen_files_pkcs10
:.x
=.c
} \
107 INCS
= hx509.h hx509_err.h \
108 ocsp_asn1.h pkcs10_asn1.h crmf_asn1.h \
109 hx509-protos.h hx509-private.h
110 INCSDIR
= /usr
/include/krb5
112 ocsp_asn1_files
: ocsp.asn1
${TOOL_ASN1_COMPILE}
113 ${TOOL_ASN1_COMPILE} \
114 --preserve-binary
=OCSPTBSRequest \
115 --preserve-binary
=OCSPResponseData \
116 ${DIST}/heimdal
/lib
/hx509
/ocsp.asn1 ocsp_asn1
117 pkcs10_asn1_files
: pkcs10.asn1
${TOOL_ASN1_COMPILE}
118 ${TOOL_ASN1_COMPILE} \
119 --preserve-binary
=CertificationRequestInfo \
120 ${DIST}/heimdal
/lib
/hx509
/pkcs10.asn1 pkcs10_asn1
121 crmf_asn1_files
: crmf.asn1
${TOOL_ASN1_COMPILE}
122 ${TOOL_ASN1_COMPILE} ${DIST}/heimdal
/lib
/hx509
/crmf.asn1 crmf_asn1
124 ASN1
!= cd
${NETBSDSRCDIR}/lib
/libasn1
&& ${PRINTOBJDIR}
125 KRB5
!= cd
${NETBSDSRCDIR}/lib
/libkrb5
&& ${PRINTOBJDIR}
128 -I
${DIST}/heimdal
/lib
/hx509 \
129 -I
${DIST}/heimdal
/lib
/hx509
/ref \
132 -I
${DIST}/heimdal
/lib
/asn1 \
133 -I
${DIST}/heimdal
/lib
/com_err \
134 -I
${NETBSDSRCDIR}/include/heimdal \
135 -I
${NETBSDSRCDIR}/lib
/libroken \
136 -I
${DIST}/heimdal
/lib
/roken \
139 .if
(${USE_INET6} != "no")
140 CPPFLAGS
+=-DHAVE_IPV6
143 .if
(defined
(HAVE_GCC
) && ${HAVE_GCC} == 4) || defined
(HAVE_PCC
)
145 COPTS.
${f}.c
+= -Wno-pointer-sign
149 ${gen_files_ocsp} ocsp_asn1.hx
: ocsp_asn1_files
150 ${gen_files_pkcs10} pkcs10_asn1.hx
: pkcs10_asn1_files
151 ${gen_files_crmf} crmf_asn1.hx
: crmf_asn1_files
153 CLEANFILES
= ${gen_files_ocsp} ${gen_files_pkcs10} ${gen_files_crmf} \
155 ocsp_asn1_files ocsp_asn1.h ocsp_asn1.hx \
156 pkcs10_asn1_files pkcs10_asn1.h pkcs10_asn1.hx \
157 crmf_asn1_files crmf_asn1.h crmf_asn1.hx \
160 .
include <bsd.lib.mk
>
165 @cmp
-s
$< $@
2> /dev
/null || cp
$< $@
168 @cmp
-s
$< $@
2> /dev
/null || cp
$< $@