Home | History | Annotate | Line # | Download | only in libhx509
      1  1.11       kre # $NetBSD: Makefile,v 1.11 2025/07/14 10:25:50 kre Exp $
      2   1.1     elric 
      3   1.1     elric NOLINT=		# defined
      4   1.1     elric 
      5   1.1     elric .include <bsd.own.mk>
      6   1.1     elric .include <${.CURDIR}/../../Makefile.inc>
      7   1.1     elric 
      8   1.1     elric .PATH:		${HEIMDIST}/lib/hx509 ${HEIMBASE}/include
      9   1.1     elric 
     10   1.1     elric LIB=		hx509
     11   1.1     elric 
     12  1.11       kre SSLBASE=	${NETBSDSRCDIR}/crypto/external/${EXTERNAL_OPENSSL_SUBDIR}
     13   1.1     elric 
     14   1.1     elric LIBDPLIBS+=	asn1	${HEIMBASE}/lib/libasn1		\
     15   1.1     elric 		com_err	${HEIMBASE}/lib/libcom_err	\
     16   1.1     elric 		crypt	${NETBSDSRCDIR}/lib/libcrypt	\
     17   1.1     elric 		crypto	${SSLBASE}/lib/libcrypto	\
     18   1.1     elric 		roken	${HEIMBASE}/lib/libroken	\
     19   1.1     elric 		wind	${HEIMBASE}/lib/libwind
     20   1.1     elric 
     21   1.1     elric YHEADER=1
     22   1.7  christos YPREFIX=  _hx509_sel_yy
     23   1.7  christos LPREFIX=  _hx509_sel_yy
     24   1.1     elric 
     25   1.1     elric INCSDIR=	/usr/include/krb5 
     26   1.1     elric INCS+=		hx509.h hx509-protos.h ${ASN1_INCS} ${COMPILE_ET_INCS}
     27   1.1     elric 
     28   1.1     elric HEIMSRCS = hx509_err.et ocsp.asn1 pkcs10.asn1
     29   1.1     elric 
     30   1.1     elric SRCS=				\
     31   1.1     elric 	ca.c			\
     32   1.1     elric 	cert.c			\
     33   1.1     elric 	cms.c			\
     34   1.1     elric 	collector.c		\
     35   1.1     elric 	crypto.c		\
     36   1.5  christos 	crypto-ec.c		\
     37   1.1     elric 	doxygen.c		\
     38   1.1     elric 	env.c			\
     39   1.1     elric 	error.c			\
     40   1.1     elric 	file.c			\
     41   1.1     elric 	keyset.c		\
     42   1.1     elric 	ks_dir.c		\
     43   1.1     elric 	ks_file.c		\
     44   1.1     elric 	ks_keychain.c		\
     45   1.1     elric 	ks_mem.c		\
     46   1.1     elric 	ks_null.c		\
     47   1.1     elric 	ks_p11.c		\
     48   1.1     elric 	ks_p12.c		\
     49   1.1     elric 	lock.c			\
     50   1.1     elric 	name.c			\
     51   1.1     elric 	peer.c			\
     52   1.1     elric 	print.c			\
     53   1.1     elric 	req.c			\
     54   1.1     elric 	revoke.c		\
     55   1.1     elric 	sel.c			\
     56   1.1     elric 	sel-gram.y		\
     57   1.1     elric 	sel-lex.l		\
     58   1.1     elric 	softp11.c		\
     59   1.1     elric 	${BUILT_SOURCES}
     60   1.1     elric 
     61   1.2        he 
     62   1.1     elric CPPFLAGS+=				\
     63   1.1     elric 	-I${HEIMDIST}/lib/hx509/ref	\
     64   1.9       mrg 	-I${HEIMDIST}/lib/asn1		\
     65   1.9       mrg 	-I${HEIMDIST}/lib
     66   1.1     elric 
     67   1.1     elric sel-gram.c: ${ASN1_INCS} ${COMPILE_ET_INCS}
     68   1.1     elric 
     69   1.1     elric ASN1_FILES.ocsp.asn1 =			\
     70   1.1     elric 	asn1_OCSPBasicOCSPResponse.x    \
     71   1.1     elric 	asn1_OCSPCertID.x               \
     72   1.1     elric 	asn1_OCSPCertStatus.x           \
     73   1.1     elric 	asn1_OCSPInnerRequest.x         \
     74   1.1     elric 	asn1_OCSPKeyHash.x              \
     75   1.1     elric 	asn1_OCSPRequest.x              \
     76   1.1     elric 	asn1_OCSPResponderID.x          \
     77   1.1     elric 	asn1_OCSPResponse.x             \
     78   1.1     elric 	asn1_OCSPResponseBytes.x        \
     79   1.1     elric 	asn1_OCSPResponseData.x         \
     80   1.1     elric 	asn1_OCSPResponseStatus.x       \
     81   1.1     elric 	asn1_OCSPSignature.x            \
     82   1.1     elric 	asn1_OCSPSingleResponse.x       \
     83   1.1     elric 	asn1_OCSPTBSRequest.x           \
     84   1.1     elric 	asn1_OCSPVersion.x              \
     85   1.1     elric 	asn1_id_pkix_ocsp.x             \
     86   1.1     elric 	asn1_id_pkix_ocsp_basic.x       \
     87   1.1     elric 	asn1_id_pkix_ocsp_nonce.x
     88   1.1     elric 
     89   1.8  christos COPTS.cert.c += -Wno-error=deprecated-declarations
     90   1.8  christos COPTS.crypto-ec.c += -Wno-error=deprecated-declarations
     91   1.8  christos COPTS.crypto.c += -Wno-error=deprecated-declarations
     92   1.8  christos COPTS.ks_p11.c += -Wno-error=deprecated-declarations
     93   1.8  christos 
     94  1.10       mrg # XXX: Pull this in from hcrypto.  Be sure to be last!  This subdir
     95  1.10       mrg # XXX: also has a "doxygen.c" in it, but the .PATH ordering ensures
     96  1.10       mrg # XXX: that the lib/hx509 version is used here, not the lib/hcrypto
     97  1.10       mrg # XXX: version.
     98  1.10       mrg SRCS+=	ui.c
     99  1.10       mrg .PATH:	${HEIMDIST}/lib/hcrypto
    100  1.10       mrg CPPFLAGS.ui.c+= 		\
    101  1.10       mrg 	-I${HEIMDIST}/lib/hcrypto
    102  1.10       mrg 
    103   1.1     elric .include <${HEIMBASE}/Makefile.rules.inc>
    104   1.1     elric .include <bsd.lib.mk>
    105