head	1.8;
access;
symbols
	perseant-exfatfs-base-20250801:1.8
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.20
	perseant-exfatfs-base:1.8
	cjep_sun2x:1.8.0.18
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	cjep_staticlib_x:1.8.0.16
	cjep_staticlib_x-base:1.8
	phil-wifi-20200421:1.8
	phil-wifi-20200411:1.8
	phil-wifi-20200406:1.8
	pgoyette-compat-merge-20190127:1.8
	pgoyette-compat-20190127:1.8
	pgoyette-compat-20190118:1.8
	pgoyette-compat-1226:1.8
	pgoyette-compat-1126:1.8
	pgoyette-compat-1020:1.8
	pgoyette-compat-0930:1.8
	pgoyette-compat-0906:1.8
	pgoyette-compat-0728:1.8
	pgoyette-compat-0625:1.8
	pgoyette-compat-0521:1.8
	pgoyette-compat-0502:1.8
	pgoyette-compat-0422:1.8
	pgoyette-compat-0415:1.8
	pgoyette-compat-0407:1.8
	pgoyette-compat-0330:1.8
	pgoyette-compat-0322:1.8
	pgoyette-compat-0315:1.8
	pgoyette-compat:1.8.0.14
	pgoyette-compat-base:1.8
	prg-localcount2-base3:1.8
	prg-localcount2-base2:1.8
	prg-localcount2-base1:1.8
	prg-localcount2:1.8.0.12
	prg-localcount2-base:1.8
	pgoyette-localcount-20170426:1.8
	bouyer-socketcan-base1:1.8
	pgoyette-localcount-20170320:1.8
	bouyer-socketcan:1.8.0.10
	bouyer-socketcan-base:1.8
	pgoyette-localcount-20170107:1.8
	pgoyette-localcount-20161104:1.8
	localcount-20160914:1.8
	pgoyette-localcount-20160806:1.8
	pgoyette-localcount-20160726:1.8
	pgoyette-localcount:1.8.0.8
	pgoyette-localcount-base:1.8
	netbsd-5-2-3-RELEASE:1.5
	netbsd-5-1-5-RELEASE:1.5
	yamt-pagecache-base9:1.8
	yamt-pagecache-tag8:1.8
	tls-earlyentropy:1.8.0.4
	tls-earlyentropy-base:1.8
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8
	riastradh-drm2-base3:1.8
	netbsd-5-2-2-RELEASE:1.5
	netbsd-5-1-4-RELEASE:1.5
	netbsd-5-2-1-RELEASE:1.5
	netbsd-5-1-3-RELEASE:1.5
	agc-symver:1.8.0.6
	agc-symver-base:1.8
	tls-maxphys-base:1.8
	yamt-pagecache-base8:1.8
	netbsd-5-2:1.5.0.14
	yamt-pagecache-base7:1.8
	netbsd-5-2-RELEASE:1.5
	netbsd-5-2-RC1:1.5
	yamt-pagecache-base6:1.8
	yamt-pagecache-base5:1.8
	yamt-pagecache-base4:1.8
	netbsd-5-1-2-RELEASE:1.5
	netbsd-5-1-1-RELEASE:1.5
	yamt-pagecache-base3:1.8
	yamt-pagecache-base2:1.8
	yamt-pagecache:1.8.0.2
	yamt-pagecache-base:1.8
	cherry-xenmp:1.6.0.4
	cherry-xenmp-base:1.6
	bouyer-quota2-nbase:1.6
	bouyer-quota2:1.6.0.2
	bouyer-quota2-base:1.6
	matt-mips64-premerge-20101231:1.6
	matt-nb5-mips64-premerge-20101231:1.5
	matt-nb5-pq3:1.5.0.12
	matt-nb5-pq3-base:1.5
	netbsd-5-1:1.5.0.10
	netbsd-5-1-RELEASE:1.5
	netbsd-5-1-RC4:1.5
	matt-nb5-mips64-k15:1.5
	netbsd-5-1-RC3:1.5
	netbsd-5-1-RC2:1.5
	netbsd-5-1-RC1:1.5
	netbsd-5-0-2-RELEASE:1.5
	matt-nb5-mips64-premerge-20091211:1.5
	matt-premerge-20091211:1.6
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.5
	matt-nb4-mips64-k7-u2a-k9b:1.5
	matt-nb5-mips64-u1-k1-k5:1.5
	matt-nb5-mips64:1.5.0.8
	netbsd-5-0-1-RELEASE:1.5
	jym-xensuspend-nbase:1.5
	netbsd-5-0:1.5.0.6
	netbsd-5-0-RELEASE:1.5
	netbsd-5-0-RC4:1.5
	netbsd-5-0-RC3:1.5
	netbsd-5-0-RC2:1.5
	jym-xensuspend:1.5.0.4
	jym-xensuspend-base:1.5
	netbsd-5-0-RC1:1.5
	netbsd-5:1.5.0.2
	netbsd-5-base:1.5
	matt-mips64-base2:1.4
	wrstuden-revivesa-base-3:1.4
	wrstuden-revivesa-base-2:1.4
	wrstuden-revivesa-base-1:1.2
	yamt-pf42-base4:1.2
	yamt-pf42-base3:1.2
	hpcarm-cleanup-nbase:1.2
	yamt-pf42-baseX:1.2
	yamt-pf42-base2:1.2
	wrstuden-revivesa:1.2.0.4
	wrstuden-revivesa-base:1.2
	yamt-pf42:1.2.0.2
	yamt-pf42-base:1.2;
locks; strict;
comment	@# @;


1.8
date	2011.08.28.16.26.24;	author elric;	state dead;
branches;
next	1.7;

1.7
date	2011.06.20.07.43.58;	author mrg;	state Exp;
branches;
next	1.6;

1.6
date	2009.07.20.12.16.37;	author skrll;	state Exp;
branches
	1.6.4.1;
next	1.5;

1.5
date	2008.10.27.07.26.55;	author mrg;	state Exp;
branches;
next	1.4;

1.4
date	2008.08.29.00.02.22;	author gmcgarry;	state Exp;
branches;
next	1.3;

1.3
date	2008.08.03.07.16.58;	author veego;	state Exp;
branches;
next	1.2;

1.2
date	2008.04.13.21.25.14;	author mlelstv;	state Exp;
branches
	1.2.4.1;
next	1.1;

1.1
date	2008.03.22.09.29.56;	author mlelstv;	state Exp;
branches;
next	;

1.6.4.1
date	2011.06.23.14.18.38;	author cherry;	state Exp;
branches;
next	;

1.2.4.1
date	2008.09.18.04.39.23;	author wrstuden;	state Exp;
branches;
next	;


desc
@@


1.8
log
@Remove crypto/dist/heimdal and its associated build infrastructure as
it has been replaced by crypto/external/bsd/heimdal.
@
text
@# $NetBSD: Makefile,v 1.7 2011/06/20 07:43:58 mrg Exp $

USE_FORT?= yes	# cryptographic software

NOLINT=		# defined

.include <bsd.own.mk>

DIST=		${NETBSDSRCDIR}/crypto/dist
.PATH:		${DIST}/heimdal/lib/hx509 ${DIST}/heimdal/lib/hx509/ref

WARNS?=		1

LIB=		hx509

LIBDPLIBS+=	crypto	${.CURDIR}/../../crypto/external/bsd/openssl/lib/libcrypto \
		asn1	${.CURDIR}/../libasn1 \
		roken	${.CURDIR}/../libroken

.if ${USETOOLS} != "yes"
COMPILEETOBJ!=		cd ${NETBSDSRCDIR}/lib/libcom_err/compile_et && ${PRINTOBJDIR}
TOOL_COMPILE_ET=	${COMPILEETOBJ}/compile_et

ASN1COMPILEOBJ!=	cd ${NETBSDSRCDIR}/lib/libasn1/asn1_compile && ${PRINTOBJDIR}
TOOL_ASN1_COMPILE=	${ASN1COMPILEOBJ}/asn1_compile
.endif

hx509_err.c hx509_err.h: hx509_err.et ${TOOL_COMPILE_ET}
	${TOOL_COMPILE_ET} ${DIST}/heimdal/lib/hx509/hx509_err.et

ERR_FILES=	hx509_err.c

gen_files_ocsp=					\
	   asn1_OCSPBasicOCSPResponse.x		\
	   asn1_OCSPCertID.x			\
	   asn1_OCSPCertStatus.x		\
	   asn1_OCSPInnerRequest.x		\
	   asn1_OCSPKeyHash.x			\
	   asn1_OCSPRequest.x			\
	   asn1_OCSPResponderID.x		\
	   asn1_OCSPResponse.x			\
	   asn1_OCSPResponseBytes.x		\
	   asn1_OCSPResponseData.x		\
	   asn1_OCSPResponseStatus.x		\
	   asn1_OCSPSignature.x			\
	   asn1_OCSPSingleResponse.x		\
	   asn1_OCSPTBSRequest.x		\
	   asn1_OCSPVersion.x			\
	   asn1_id_pkix_ocsp.x			\
	   asn1_id_pkix_ocsp_basic.x		\
	   asn1_id_pkix_ocsp_nonce.x

gen_files_pkcs10=				\
	   asn1_CertificationRequestInfo.x	\
	   asn1_CertificationRequest.x

gen_files_crmf=					\
	   asn1_CRMFRDNSequence.x		\
	   asn1_CertReqMessages.x		\
	   asn1_CertReqMsg.x			\
	   asn1_CertRequest.x			\
	   asn1_CertTemplate.x			\
	   asn1_Controls.x			\
	   asn1_PBMParameter.x			\
	   asn1_PKMACValue.x			\
	   asn1_POPOPrivKey.x			\
	   asn1_POPOSigningKey.x		\
	   asn1_POPOSigningKeyInput.x		\
	   asn1_ProofOfPossession.x		\
	   asn1_SubsequentMessage.x


DPSRCS=		ocsp_asn1.h pkcs10_asn1.h crmf_asn1.h hx509_err.h

BUILT_SOURCES=	\
	${gen_files_ocsp:.x=.c} \
	${gen_files_pkcs10:.x=.c} \
	${ERR_FILES}

SRCS= \
	    ca.c			\
	    cert.c			\
	    cms.c			\
	    collector.c			\
	    crypto.c			\
	    doxygen.c			\
	    error.c			\
	    env.c			\
	    file.c			\
	    keyset.c			\
	    ks_dir.c			\
	    ks_file.c			\
	    ks_mem.c			\
	    ks_null.c			\
	    ks_p11.c			\
	    ks_p12.c			\
	    ks_keychain.c		\
	    lock.c			\
	    name.c			\
	    peer.c			\
	    print.c			\
	    softp11.c			\
	    req.c			\
	    revoke.c			\
	    $(BUILT_SOURCES)

INCS=		hx509.h hx509_err.h \
		ocsp_asn1.h pkcs10_asn1.h crmf_asn1.h \
		hx509-protos.h hx509-private.h
INCSDIR=	/usr/include/krb5

ocsp_asn1_files: ocsp.asn1 ${TOOL_ASN1_COMPILE}
	${TOOL_ASN1_COMPILE} \
		--preserve-binary=OCSPTBSRequest \
		--preserve-binary=OCSPResponseData \
		${DIST}/heimdal/lib/hx509/ocsp.asn1 ocsp_asn1
pkcs10_asn1_files: pkcs10.asn1 ${TOOL_ASN1_COMPILE}
	${TOOL_ASN1_COMPILE} \
		 --preserve-binary=CertificationRequestInfo \
		${DIST}/heimdal/lib/hx509/pkcs10.asn1 pkcs10_asn1
crmf_asn1_files: crmf.asn1 ${TOOL_ASN1_COMPILE}
	${TOOL_ASN1_COMPILE} ${DIST}/heimdal/lib/hx509/crmf.asn1 crmf_asn1

ASN1!=		cd ${NETBSDSRCDIR}/lib/libasn1 && ${PRINTOBJDIR}
KRB5!=		cd ${NETBSDSRCDIR}/lib/libkrb5 && ${PRINTOBJDIR}

CPPFLAGS+= -I.					\
	 -I${DIST}/heimdal/lib/hx509		\
	 -I${DIST}/heimdal/lib/hx509/ref	\
	 -I${ASN1}				\
	 -I${KRB5}				\
	 -I${DIST}/heimdal/lib/asn1		\
	 -I${DIST}/heimdal/lib/com_err		\
	 -I${NETBSDSRCDIR}/include/heimdal	\
	 -I${NETBSDSRCDIR}/lib/libroken		\
	 -I${DIST}/heimdal/lib/roken		\
	 -DHAVE_CONFIG_H

.if (${USE_INET6} != "no")
CPPFLAGS+=-DHAVE_IPV6
.endif

.if defined(HAVE_GCC) || defined(HAVE_PCC)
COPTS.mkey.c+=  -Wno-pointer-sign
.endif

${gen_files_ocsp} ocsp_asn1.hx: ocsp_asn1_files
${gen_files_pkcs10} pkcs10_asn1.hx: pkcs10_asn1_files
${gen_files_crmf} crmf_asn1.hx: crmf_asn1_files

CLEANFILES=	${gen_files_ocsp} ${gen_files_pkcs10} ${gen_files_crmf} \
		${BUILT_SOURCES} \
		ocsp_asn1_files ocsp_asn1.h ocsp_asn1.hx \
		pkcs10_asn1_files pkcs10_asn1.h pkcs10_asn1.hx \
		crmf_asn1_files crmf_asn1.h crmf_asn1.hx \
		hx509_err.h

.include <bsd.lib.mk>

.SUFFIXES: .hx .x

.hx.h:
	@@cmp -s $< $@@ 2> /dev/null || cp $< $@@

.x.c:
	@@cmp -s $< $@@ 2> /dev/null || cp $< $@@

@


1.7
log
@remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2009/07/20 12:16:37 skrll Exp $
@


1.6
log
@libcrypto moved.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2008/10/27 07:26:55 mrg Exp $
d143 2
a144 4
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
.for f in mkey
COPTS.${f}.c+=  -Wno-pointer-sign
.endfor
@


1.6.4.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2011/06/20 07:43:58 mrg Exp $
d143 4
a146 2
.if defined(HAVE_GCC) || defined(HAVE_PCC)
COPTS.mkey.c+=  -Wno-pointer-sign
@


1.5
log
@add to LIBDPLIBS, not assign to it.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2008/08/29 00:02:22 gmcgarry Exp $
d16 1
a16 1
LIBDPLIBS+=	crypto	${.CURDIR}/../libcrypto \
@


1.4
log
@Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2008/08/03 07:16:58 veego Exp $
d16 1
a16 1
LIBDPLIBS=	crypto	${.CURDIR}/../libcrypto \
@


1.3
log
@Restore .hx support for avoiding unneeded regeneration of header files
Fix PR lib/39185

Partly restore the changes which were removed during the Heimdal 1.1 update:
src/lib/libasn1/Makefile 1.28 -> 1.29
src/lib/libhdb/Makefile 1.21 -> 1.22
src/crypto/dist/heimdal/lib/asn1/gen.c 1.8 -> 1.9

Add .hx support in 'new' heimdal libraries:
src/lib/libgssapi/Makefile
src/lib/libhx509/Makefile

Add a new entry in doc/HACKS for this changes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2008/04/13 21:25:14 mlelstv Exp $
d143 1
a143 1
.if ${HAVE_GCC} == 4
@


1.2
log
@make clean target remove all generated files
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2008/03/22 09:29:56 mlelstv Exp $
d149 3
a151 5
${gen_files_ocsp} ocsp_asn1.h: ocsp_asn1_files
${gen_files_pkcs10} pkcs10_asn1.h: pkcs10_asn1_files
${gen_files_crmf} crmf_asn1.h: crmf_asn1_files

${SRCS}: ocsp_asn1.h pkcs10_asn1.h crmf_asn1.h hx509_err.h
d155 3
a157 3
		ocsp_asn1_files ocsp_asn1.h \
		pkcs10_asn1_files pkcs10_asn1.h \
		crmf_asn1_files crmf_asn1.h \
d162 4
a165 1
.SUFFIXES: .x
@


1.2.4.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2008/04/13 21:25:14 mlelstv Exp $
d143 1
a143 1
.if (defined(HAVE_GCC) && ${HAVE_GCC} == 4) || defined(HAVE_PCC)
d149 5
a153 3
${gen_files_ocsp} ocsp_asn1.hx: ocsp_asn1_files
${gen_files_pkcs10} pkcs10_asn1.hx: pkcs10_asn1_files
${gen_files_crmf} crmf_asn1.hx: crmf_asn1_files
d157 3
a159 3
		ocsp_asn1_files ocsp_asn1.h ocsp_asn1.hx \
		pkcs10_asn1_files pkcs10_asn1.h pkcs10_asn1.hx \
		crmf_asn1_files crmf_asn1.h crmf_asn1.hx \
d164 1
a164 4
.SUFFIXES: .hx .x

.hx.h:
	@@cmp -s $< $@@ 2> /dev/null || cp $< $@@
@


1.1
log
@Import Heimdal-1.1
more missing files
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2006/05/11 23:16:28 mrg Exp $
d155 2
a156 1
CLEANFILES=	${gen_files} ${BUILT_SOURCES} \
@
