head	1.26;
access;
symbols
	perseant-exfatfs-base-20250801:1.26
	perseant-exfatfs-base-20240630:1.26
	perseant-exfatfs:1.26.0.20
	perseant-exfatfs-base:1.26
	cjep_sun2x:1.26.0.18
	cjep_sun2x-base:1.26
	cjep_staticlib_x-base1:1.26
	cjep_staticlib_x:1.26.0.16
	cjep_staticlib_x-base:1.26
	phil-wifi-20200421:1.26
	phil-wifi-20200411:1.26
	phil-wifi-20200406:1.26
	pgoyette-compat-merge-20190127:1.26
	pgoyette-compat-20190127:1.26
	pgoyette-compat-20190118:1.26
	pgoyette-compat-1226:1.26
	pgoyette-compat-1126:1.26
	pgoyette-compat-1020:1.26
	pgoyette-compat-0930:1.26
	pgoyette-compat-0906:1.26
	pgoyette-compat-0728:1.26
	pgoyette-compat-0625:1.26
	pgoyette-compat-0521:1.26
	pgoyette-compat-0502:1.26
	pgoyette-compat-0422:1.26
	pgoyette-compat-0415:1.26
	pgoyette-compat-0407:1.26
	pgoyette-compat-0330:1.26
	pgoyette-compat-0322:1.26
	pgoyette-compat-0315:1.26
	pgoyette-compat:1.26.0.14
	pgoyette-compat-base:1.26
	prg-localcount2-base3:1.26
	prg-localcount2-base2:1.26
	prg-localcount2-base1:1.26
	prg-localcount2:1.26.0.12
	prg-localcount2-base:1.26
	pgoyette-localcount-20170426:1.26
	bouyer-socketcan-base1:1.26
	pgoyette-localcount-20170320:1.26
	bouyer-socketcan:1.26.0.10
	bouyer-socketcan-base:1.26
	pgoyette-localcount-20170107:1.26
	pgoyette-localcount-20161104:1.26
	localcount-20160914:1.26
	pgoyette-localcount-20160806:1.26
	pgoyette-localcount-20160726:1.26
	pgoyette-localcount:1.26.0.8
	pgoyette-localcount-base:1.26
	netbsd-5-2-3-RELEASE:1.24
	netbsd-5-1-5-RELEASE:1.24
	yamt-pagecache-base9:1.26
	yamt-pagecache-tag8:1.26
	tls-earlyentropy:1.26.0.4
	tls-earlyentropy-base:1.26
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.26
	riastradh-drm2-base3:1.26
	netbsd-5-2-2-RELEASE:1.24
	netbsd-5-1-4-RELEASE:1.24
	netbsd-5-2-1-RELEASE:1.24
	netbsd-5-1-3-RELEASE:1.24
	agc-symver:1.26.0.6
	agc-symver-base:1.26
	tls-maxphys-base:1.26
	yamt-pagecache-base8:1.26
	netbsd-5-2:1.24.0.2
	yamt-pagecache-base7:1.26
	netbsd-5-2-RELEASE:1.24
	netbsd-5-2-RC1:1.24
	yamt-pagecache-base6:1.26
	yamt-pagecache-base5:1.26
	yamt-pagecache-base4:1.26
	netbsd-5-1-2-RELEASE:1.24
	netbsd-5-1-1-RELEASE:1.24
	yamt-pagecache-base3:1.26
	yamt-pagecache-base2:1.26
	yamt-pagecache:1.26.0.2
	yamt-pagecache-base:1.26
	cherry-xenmp:1.24.0.18
	cherry-xenmp-base:1.24
	bouyer-quota2-nbase:1.24
	bouyer-quota2:1.24.0.16
	bouyer-quota2-base:1.24
	matt-mips64-premerge-20101231:1.24
	matt-nb5-mips64-premerge-20101231:1.24
	matt-nb5-pq3:1.24.0.14
	matt-nb5-pq3-base:1.24
	netbsd-5-1:1.24.0.12
	netbsd-5-1-RELEASE:1.24
	netbsd-5-1-RC4:1.24
	matt-nb5-mips64-k15:1.24
	netbsd-5-1-RC3:1.24
	netbsd-5-1-RC2:1.24
	netbsd-5-1-RC1:1.24
	netbsd-5-0-2-RELEASE:1.24
	matt-nb5-mips64-premerge-20091211:1.24
	matt-premerge-20091211:1.24
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.24
	matt-nb4-mips64-k7-u2a-k9b:1.24
	matt-nb5-mips64-u1-k1-k5:1.24
	matt-nb5-mips64:1.24.0.10
	netbsd-5-0-1-RELEASE:1.24
	jym-xensuspend-nbase:1.24
	netbsd-5-0:1.24.0.8
	netbsd-5-0-RELEASE:1.24
	netbsd-5-0-RC4:1.24
	netbsd-5-0-RC3:1.24
	netbsd-5-0-RC2:1.24
	jym-xensuspend:1.24.0.6
	jym-xensuspend-base:1.24
	netbsd-5-0-RC1:1.24
	netbsd-5:1.24.0.4
	netbsd-5-base:1.24
	matt-mips64-base2:1.24
	matt-mips64:1.21.0.10
	netbsd-4-0-1-RELEASE:1.20
	wrstuden-revivesa-base-3:1.24
	wrstuden-revivesa-base-2:1.24
	wrstuden-fixsa-newbase:1.20
	wrstuden-revivesa-base-1:1.22
	yamt-pf42-base4:1.22
	yamt-pf42-base3:1.22
	hpcarm-cleanup-nbase:1.22
	yamt-pf42-baseX:1.22
	yamt-pf42-base2:1.22
	wrstuden-revivesa:1.22.0.4
	wrstuden-revivesa-base:1.22
	yamt-pf42:1.22.0.2
	yamt-pf42-base:1.22
	keiichi-mipv6:1.21.0.8
	keiichi-mipv6-base:1.21
	matt-armv6-nbase:1.21
	matt-armv6-prevmlocking:1.21
	wrstuden-fixsa-base-1:1.20
	netbsd-4-0:1.20.0.8
	netbsd-4-0-RELEASE:1.20
	cube-autoconf:1.21.0.6
	cube-autoconf-base:1.21
	netbsd-4-0-RC5:1.20
	netbsd-4-0-RC4:1.20
	netbsd-4-0-RC3:1.20
	netbsd-4-0-RC2:1.20
	netbsd-4-0-RC1:1.20
	matt-armv6:1.21.0.4
	matt-armv6-base:1.21
	matt-mips64-base:1.21
	hpcarm-cleanup:1.21.0.2
	hpcarm-cleanup-base:1.21
	netbsd-3-1-1-RELEASE:1.18
	netbsd-3-0-3-RELEASE:1.18
	wrstuden-fixsa:1.20.0.6
	wrstuden-fixsa-base:1.20
	abandoned-netbsd-4-base:1.20
	abandoned-netbsd-4:1.20.0.2
	netbsd-3-1:1.18.0.6
	netbsd-3-1-RELEASE:1.18
	netbsd-3-0-2-RELEASE:1.18
	netbsd-3-1-RC4:1.18
	netbsd-3-1-RC3:1.18
	netbsd-3-1-RC2:1.18
	netbsd-3-1-RC1:1.18
	netbsd-4:1.20.0.4
	netbsd-4-base:1.20
	netbsd-3-0-1-RELEASE:1.18
	netbsd-3-0:1.18.0.4
	netbsd-3-0-RELEASE:1.18
	netbsd-3-0-RC6:1.18
	netbsd-3-0-RC5:1.18
	netbsd-3-0-RC4:1.18
	netbsd-3-0-RC3:1.18
	netbsd-3-0-RC2:1.18
	netbsd-3-0-RC1:1.18
	netbsd-2-0-3-RELEASE:1.17
	netbsd-2-1:1.17.0.6
	netbsd-2-1-RELEASE:1.17
	netbsd-2-1-RC6:1.17
	netbsd-2-1-RC5:1.17
	netbsd-2-1-RC4:1.17
	netbsd-2-1-RC3:1.17
	netbsd-2-1-RC2:1.17
	netbsd-2-1-RC1:1.17
	netbsd-2-0-2-RELEASE:1.17
	netbsd-3:1.18.0.2
	netbsd-3-base:1.18
	netbsd-2-0-1-RELEASE:1.17
	netbsd-2:1.17.0.4
	netbsd-2-base:1.17
	netbsd-2-0-RELEASE:1.17
	netbsd-2-0-RC5:1.17
	netbsd-2-0-RC4:1.17
	netbsd-2-0-RC3:1.17
	netbsd-2-0-RC2:1.17
	netbsd-2-0-RC1:1.17
	netbsd-2-0:1.17.0.2
	netbsd-2-0-base:1.17
	netbsd-1-6-PATCH002-RELEASE:1.13
	netbsd-1-6-PATCH002:1.13
	netbsd-1-6-PATCH002-RC4:1.13
	netbsd-1-6-PATCH002-RC3:1.13
	netbsd-1-6-PATCH002-RC2:1.13
	netbsd-1-6-PATCH002-RC1:1.13
	netbsd-1-6-PATCH001:1.13
	netbsd-1-6-PATCH001-RELEASE:1.13
	netbsd-1-6-PATCH001-RC3:1.13
	netbsd-1-6-PATCH001-RC2:1.13
	netbsd-1-6-PATCH001-RC1:1.13
	fvdl_fs64_base:1.16
	netbsd-1-6-RELEASE:1.13
	netbsd-1-6-RC3:1.13
	netbsd-1-6-RC2:1.13
	netbsd-1-6-RC1:1.13
	netbsd-1-6:1.13.0.2
	netbsd-1-6-base:1.13
	netbsd-1-5-PATCH003:1.2.2.1
	netbsd-1-5-PATCH002:1.2.2.1
	netbsd-1-5-PATCH001:1.2.2.1
	netbsd-1-5-RELEASE:1.2
	netbsd-1-5-BETA2:1.2
	netbsd-1-5-BETA:1.2
	netbsd-1-5-ALPHA2:1.2
	minoura-xpg4dl:1.2.0.4
	netbsd-1-5:1.2.0.2
	netbsd-1-5-base:1.2
	cryptosrc-intl-20000616:1.1.1.1
	netbsd-cryptosrc-intl:1.1.1;
locks; strict;
comment	@# @;


1.26
date	2011.08.28.16.26.22;	author elric;	state dead;
branches;
next	1.25;

1.25
date	2011.06.20.07.43.58;	author mrg;	state Exp;
branches;
next	1.24;

1.24
date	2008.08.29.00.02.22;	author gmcgarry;	state Exp;
branches
	1.24.18.1;
next	1.23;

1.23
date	2008.08.03.07.16.58;	author veego;	state Exp;
branches;
next	1.22;

1.22
date	2008.03.22.08.37.26;	author mlelstv;	state Exp;
branches
	1.22.4.1;
next	1.21;

1.21
date	2007.05.28.12.06.19;	author tls;	state Exp;
branches;
next	1.20;

1.20
date	2006.05.11.23.16.28;	author mrg;	state Exp;
branches;
next	1.19;

1.19
date	2006.03.17.21.43.16;	author christos;	state Exp;
branches;
next	1.18;

1.18
date	2005.01.10.03.11.17;	author lukem;	state Exp;
branches;
next	1.17;

1.17
date	2003.07.10.10.34.23;	author lukem;	state Exp;
branches;
next	1.16;

1.16
date	2002.08.29.01.31.28;	author itojun;	state Exp;
branches;
next	1.15;

1.15
date	2002.08.19.13.35.07;	author lukem;	state Exp;
branches;
next	1.14;

1.14
date	2002.08.19.09.41.30;	author lukem;	state Exp;
branches;
next	1.13;

1.13
date	2001.12.12.00.51.02;	author tv;	state Exp;
branches;
next	1.12;

1.12
date	2001.10.31.16.15.00;	author tv;	state Exp;
branches;
next	1.11;

1.11
date	2001.10.25.16.15.03;	author jmc;	state Exp;
branches;
next	1.10;

1.10
date	2001.10.06.21.55.57;	author perry;	state Exp;
branches;
next	1.9;

1.9
date	2001.10.04.16.11.25;	author tv;	state Exp;
branches;
next	1.8;

1.8
date	2001.09.21.22.59.00;	author tv;	state Exp;
branches;
next	1.7;

1.7
date	2001.09.17.12.34.41;	author assar;	state Exp;
branches;
next	1.6;

1.6
date	2001.01.24.09.32.48;	author enami;	state Exp;
branches;
next	1.5;

1.5
date	2000.12.30.17.21.44;	author sommerfeld;	state Exp;
branches;
next	1.4;

1.4
date	2000.08.30.23.51.53;	author jhawk;	state Exp;
branches;
next	1.3;

1.3
date	2000.08.03.03.53.37;	author assar;	state Exp;
branches;
next	1.2;

1.2
date	2000.06.16.22.46.46;	author thorpej;	state Exp;
branches
	1.2.2.1
	1.2.4.1;
next	1.1;

1.1
date	2000.06.16.19.27.31;	author thorpej;	state Exp;
branches
	1.1.1.1;
next	;

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

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

1.2.2.1
date	2001.04.05.23.25.28;	author he;	state Exp;
branches;
next	;

1.2.4.1
date	2000.06.16.22.46.46;	author minoura;	state dead;
branches;
next	1.2.4.2;

1.2.4.2
date	2000.06.23.16.16.32;	author minoura;	state Exp;
branches;
next	;

1.1.1.1
date	2000.06.16.19.27.31;	author thorpej;	state Exp;
branches;
next	;


desc
@@


1.26
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.25 2011/06/20 07:43:58 mrg Exp $

USE_FORT?= yes	# network protocol library

NOLINT=		# defined

.include <bsd.own.mk>

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

WARNS?=		1

LIB=		hdb

LIBDPLIBS+=	krb5	${.CURDIR}/../libkrb5 \
		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

hdb_err.c hdb_err.h: hdb_err.et ${TOOL_COMPILE_ET}
	${TOOL_COMPILE_ET} ${DIST}/heimdal/lib/hdb/hdb_err.et

ERR_FILES=	hdb_err.c

gen_files= \
	asn1_Salt.x					\
	asn1_Key.x					\
	asn1_Event.x					\
	asn1_HDBFlags.x					\
	asn1_GENERATION.x				\
	asn1_HDB_Ext_PKINIT_acl.x			\
	asn1_HDB_Ext_PKINIT_hash.x			\
	asn1_HDB_Ext_Constrained_delegation_acl.x	\
	asn1_HDB_Ext_Lan_Manager_OWF.x			\
	asn1_HDB_Ext_Password.x				\
	asn1_HDB_Ext_Aliases.x				\
	asn1_HDB_extension.x				\
	asn1_HDB_extensions.x				\
	asn1_hdb_entry.x				\
	asn1_hdb_entry_alias.x

DPSRCS=		hdb_asn1.h hdb_err.h

BUILT_SOURCES=	${gen_files:.x=.c} hdb_err.c

SRCS= \
	common.c		\
	db.c			\
	db3.c			\
	ext.c			\
	hdb-ldap.c		\
	hdb.c			\
	keys.c			\
	keytab.c		\
	dbinfo.c		\
	mkey.c			\
	ndbm.c			\
	print.c			\
	$(BUILT_SOURCES)

INCS=		hdb.h hdb-protos.h hdb_err.h hdb_asn1.h
INCSDIR=	/usr/include/krb5

hdb_asn1_files: hdb.asn1 ${TOOL_ASN1_COMPILE}
	${TOOL_ASN1_COMPILE} ${DIST}/heimdal/lib/hdb/hdb.asn1 hdb_asn1

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

CPPFLAGS+= -I.					\
	 -I${DIST}/heimdal/lib/hdb		\
	 -I${ASN1}				\
	 -I${KRB5}				\
	 -I${DIST}/heimdal/lib/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		\
	 -DHDB_DB_DIR=\"/var/heimdal\"          \
	 -DHAVE_CONFIG_H

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

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

${gen_files} hdb_asn1.hx: hdb_asn1_files

CLEANFILES=	${gen_files} ${BUILT_SOURCES} \
		hdb_asn1.h hdb_asn1.hx hdb_asn1_files hdb_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.25
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.24 2008/08/29 00:02:22 gmcgarry Exp $
@


1.24
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.23 2008/08/03 07:16:58 veego Exp $
d95 2
a96 4
.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
.for f in mkey
COPTS.${f}.c+=  -Wno-pointer-sign
.endfor
@


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


1.23
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.22 2008/03/22 08:37:26 mlelstv Exp $
d95 1
a95 1
.if ${HAVE_GCC} == 4
@


1.22
log
@Import Heimdal-1.1
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2007/05/28 12:06:19 tls Exp $
d101 1
a101 3
${gen_files} hdb_asn1.h: hdb_asn1_files

${SRCS:.c=.o}: hdb_err.h hdb_asn1.h
d104 1
a104 1
		hdb_asn1.h hdb_asn1_files hdb_err.h
d108 4
a111 1
.SUFFIXES: .x
@


1.22.4.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2008/03/22 08:37:26 mlelstv Exp $
d95 1
a95 1
.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
d101 3
a103 1
${gen_files} hdb_asn1.hx: hdb_asn1_files
d106 1
a106 1
		hdb_asn1.h hdb_asn1.hx hdb_asn1_files hdb_err.h
d110 1
a110 4
.SUFFIXES: .hx .x

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


1.21
log
@Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2006/05/11 23:16:28 mrg Exp $
d33 16
a48 2
gen_files=	asn1_Key.x asn1_Event.x asn1_HDBFlags.x asn1_hdb_entry.x \
		asn1_Salt.x asn1_GENERATION.x
d54 14
a67 11
SRCS=					\
	    common.c			\
	    db.c			\
	    db3.c			\
	    hdb-ldap.c			\
	    hdb.c			\
	    keytab.c			\
	    mkey.c			\
	    ndbm.c			\
	    print.c			\
	    $(BUILT_SOURCES)
d69 1
a69 1
INCS=		hdb.h hdb_err.h hdb_asn1.h hdb-protos.h hdb-private.h
d72 1
a72 1
asn1_files hdb_asn1.hx: hdb.asn1 ${TOOL_ASN1_COMPILE}
d88 1
d101 1
a101 1
${gen_files} hdb_asn1.h: asn1_files
d103 1
a103 2
hdb_asn1.h: hdb_asn1.hx
${SRCS}: hdb_err.h hdb_asn1.h
d106 1
a106 1
		hdb_asn1.h hdb_asn1.hx asn1_files hdb_err.h
d110 1
a110 1
.SUFFIXES: .hx .x
a114 3
.hx.h:
	@@cmp -s $< $@@ 2> /dev/null || cp $< $@@

@


1.20
log
@sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
@
text
@d1 3
a3 1
# $NetBSD: Makefile,v 1.19 2006/03/17 21:43:16 christos Exp $
d16 1
a16 1
LIBDPLIBS=	krb5	${.CURDIR}/../libkrb5 \
@


1.19
log
@Add proper DT_NEEDED dependencies. From Jukka Salmi
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2005/01/10 03:11:17 lukem Exp $
d75 6
@


1.18
log
@Only #define HAVE_IPV6 if ${USE_INET6} != "no".
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2003/07/10 10:34:23 lukem Exp $
d14 4
@


1.17
log
@Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2002/08/29 01:31:28 itojun Exp $
d67 4
@


1.16
log
@heimdal builds shouldn't dig into openssl source by -Ifoo.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2002/08/19 13:35:07 lukem Exp $
d15 5
a19 2
COMPILEETOBJ!=	cd ${NETBSDSRCDIR}/lib/libcom_err/compile_et && ${PRINTOBJDIR}
COMPILE_ET=	${COMPILEETOBJ}/compile_et
d22 2
a23 2
hdb_err.c hdb_err.h: hdb_err.et
	${COMPILE_ET} ${DIST}/heimdal/lib/hdb/hdb_err.et
d49 2
a50 7
.if ${USETOOLS} != "yes"
ASN1_COMPILE!=	cd ${NETBSDSRCDIR}/lib/libasn1/asn1_compile && ${PRINTOBJDIR}
ASN1_COMPILE:=	${ASN1_COMPILE}/asn1_compile
.endif

asn1_files hdb_asn1.hx: hdb.asn1
	${ASN1_COMPILE} ${DIST}/heimdal/lib/hdb/hdb.asn1 hdb_asn1
@


1.15
log
@More use of ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2002/08/19 09:41:30 lukem Exp $
a61 1
	 -I${DIST}/openssl/crypto		\
@


1.14
log
@Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc).
(Reduces make output by ~ 20%)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2001/12/12 00:51:02 tv Exp $
d15 1
a15 1
COMPILEETOBJ!=	cd ${.CURDIR}/../libcom_err/compile_et && ${PRINTOBJDIR}
d47 1
a47 1
ASN1_COMPILE!=	cd ${.CURDIR}/../libasn1/asn1_compile && ${PRINTOBJDIR}
d54 2
a55 2
ASN1!=		cd ${.CURDIR}/../libasn1 && ${PRINTOBJDIR}
KRB5!=		cd ${.CURDIR}/../libkrb5 && ${PRINTOBJDIR}
@


1.13
log
@Readability cleanups; MKfoo=no -> NOfoo.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2001/10/31 16:15:00 tv Exp $
d7 1
a7 1
DIST=		${.CURDIR}/../../crypto/dist
d65 2
a66 2
	 -I${.CURDIR}/../../include/heimdal	\
	 -I${.CURDIR}/../libroken		\
@


1.12
log
@Make handling of USETOOLS uniform:  Don't need to check whether it is
defined, as <bsd.own.mk> always sets it; also, compare only against "yes"
(not "no") for a yes/no check, as there are two negative states ("no" and
"never").
@
text
@d1 3
a3 1
# $NetBSD: Makefile,v 1.11 2001/10/25 16:15:03 jmc Exp $
d8 1
a8 1
.PATH: ${DIST}/heimdal/lib/hdb
d10 1
a10 2
WARNS?=  1
MKLINT= no
d12 1
a12 1
LIB=	hdb
d22 1
a22 1
ERR_FILES = hdb_err.c
d24 2
a25 2
gen_files = asn1_Key.x asn1_Event.x asn1_HDBFlags.x asn1_hdb_entry.x \
	asn1_Salt.x asn1_GENERATION.x
d27 1
a27 1
DPSRCS=	hdb_asn1.h hdb_err.h
d29 1
a29 1
BUILT_SOURCES = $(gen_files:.x=.c) hdb_err.c
d43 2
a44 3
INCS=	hdb.h hdb_err.h hdb_asn1.h hdb-protos.h hdb-private.h

INCSDIR= /usr/include/krb5
d48 1
a48 1
ASN1_COMPILE:=${ASN1_COMPILE}/asn1_compile
d54 2
a55 2
ASN1!=	cd ${.CURDIR}/../libasn1 && ${PRINTOBJDIR}
KRB5!=	cd ${.CURDIR}/../libkrb5 && ${PRINTOBJDIR}
d70 1
a70 1
$(gen_files) hdb_asn1.h: asn1_files
d73 1
a73 1
$(SRCS): hdb_err.h hdb_asn1.h
d75 2
a76 1
CLEANFILES = $(gen_files) $(BUILT_SOURCES) hdb_asn1.h hdb_asn1.hx asn1_files hdb_err.h
@


1.11
log
@Fix asn1_compile referecnces to behave with USETOOLS
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2001/10/06 21:55:57 perry Exp $
d13 1
a13 1
.if !defined(USETOOLS) || (${USETOOLS} == "no")
d46 1
a46 1
.if !defined(USETOOLS) || (${USETOOLS} == "no")
@


1.10
log
@test for whether USETOOLS is defined before asking its value
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2001/10/04 16:11:25 tv Exp $
d46 4
a49 1
ASN1COMPILE!=	cd ${.CURDIR}/../libasn1/asn1_compile && ${PRINTOBJDIR}
d52 1
a52 1
	${ASN1COMPILE}/asn1_compile ${DIST}/heimdal/lib/hdb/hdb.asn1 hdb_asn1
@


1.9
log
@.ifndef USE_NEW_TOOLCHAIN   =>   .if ${USETOOLS} == "no"
Allows a new toolchain, but USETOOLS=no, configuration to build properly.
Reported by <martin@@duskware.de>.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2001/09/21 22:59:00 tv Exp $
d13 1
a13 1
.if ${USETOOLS} == "no"
@


1.8
log
@Prep Heimdal host tools for new toolchain.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2001/09/17 12:34:41 assar Exp $
d13 1
a13 1
.ifndef USE_NEW_TOOLCHAIN
@


1.7
log
@update infrastructure for krb4 1.1 and heimdal 0.4e
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2001/01/24 09:32:48 enami Exp $
d13 4
a16 1
COMPILEET!=	cd ${.CURDIR}/../libcom_err/compile_et && ${PRINTOBJDIR}
d19 1
a19 1
	${COMPILEET}/compile_et ${DIST}/heimdal/lib/hdb/hdb_err.et
@


1.6
log
@Make make depend or make -j3 works.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2000/12/30 17:21:44 sommerfeld Exp $
d20 2
a21 1
gen_files = asn1_Key.x asn1_Event.x asn1_HDBFlags.x asn1_hdb_entry.x asn1_Salt.x
d56 1
a56 2
	 -I${DIST}/openssl/crypto/rc4		\
	 -I${DIST}/openssl/crypto/des		\
@


1.5
log
@parallelize (mostly ${MAKE} print-objdir -> ${PRINTOBJDIR})
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2000/08/30 23:51:53 jhawk Exp $
d22 1
a22 1
DPSRCS=	hdb_err.h
a41 2
$(gen_files) asn1.h: asn1_files

d44 1
a44 1
asn1_files: hdb.asn1
d67 1
a67 1
$(SRCS:.c=.o): hdb_err.h hdb_asn1.h
@


1.4
log
@Use
  ${MAKE}
instead of
  make
@
text
@d1 4
a4 1
# $NetBSD: Makefile,v 1.3 2000/08/03 03:53:37 assar Exp $
d13 1
a13 1
COMPILEET!=	cd ${.CURDIR}/../libcom_err/compile_et && ${MAKE} print-objdir
d44 1
a44 1
ASN1COMPILE!=	cd ${.CURDIR}/../libasn1/asn1_compile && ${MAKE} print-objdir
d49 2
a50 2
ASN1!=	cd ${.CURDIR}/../libasn1 && ${MAKE} print-objdir
KRB5!=	cd ${.CURDIR}/../libkrb5 && ${MAKE} print-objdir
@


1.3
log
@update build infrastructure for heimdal 0.3a, including new shlib versions
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2000/06/16 22:46:46 thorpej Exp $
d10 1
a10 1
COMPILEET!=	cd ${.CURDIR}/../libcom_err/compile_et && make print-objdir
@


1.2
log
@Fixup Heimdal library builds.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 2000/06/16 19:27:31 thorpej Exp $
d23 1
a23 3
SRCS=	\
	    keytab.c			\
	    hdb.c			\
d26 5
@


1.2.4.1
log
@file Makefile was added on branch minoura-xpg4dl on 2000-06-23 16:16:32 +0000
@
text
@d1 76
@


1.2.4.2
log
@Sync w/ netbsd-1-5-base.
@
text
@a0 76
# $NetBSD: Makefile,v 1.2.4.1 2000/06/23 16:16:32 minoura Exp $
DIST=		${.CURDIR}/../../crypto/dist
.PATH: ${DIST}/heimdal/lib/hdb

WARNS?=  1
MKLINT= no

LIB=	hdb

COMPILEET!=	cd ${.CURDIR}/../libcom_err/compile_et && make print-objdir

hdb_err.c hdb_err.h: hdb_err.et
	${COMPILEET}/compile_et ${DIST}/heimdal/lib/hdb/hdb_err.et

ERR_FILES = hdb_err.c

gen_files = asn1_Key.x asn1_Event.x asn1_HDBFlags.x asn1_hdb_entry.x asn1_Salt.x

DPSRCS=	hdb_err.h

BUILT_SOURCES = $(gen_files:.x=.c) hdb_err.c

SRCS=	\
	    keytab.c			\
	    hdb.c			\
	    common.c			\
	    db.c			\
	    ndbm.c			\
	    print.c			\
	    $(BUILT_SOURCES)

INCS=	hdb.h hdb_err.h hdb_asn1.h hdb-protos.h hdb-private.h

INCSDIR= /usr/include/krb5

$(gen_files) asn1.h: asn1_files

ASN1COMPILE!=	cd ${.CURDIR}/../libasn1/asn1_compile && ${MAKE} print-objdir

asn1_files: hdb.asn1
	${ASN1COMPILE}/asn1_compile ${DIST}/heimdal/lib/hdb/hdb.asn1 hdb_asn1

ASN1!=	cd ${.CURDIR}/../libasn1 && ${MAKE} print-objdir
KRB5!=	cd ${.CURDIR}/../libkrb5 && ${MAKE} print-objdir

CPPFLAGS+= -I.					\
	 -I${DIST}/heimdal/lib/hdb		\
	 -I${ASN1}				\
	 -I${KRB5}				\
	 -I${DIST}/heimdal/lib/krb5		\
	 -I${DIST}/openssl/crypto/rc4		\
	 -I${DIST}/openssl/crypto/des		\
	 -I${DIST}/heimdal/lib/asn1		\
	 -I${DIST}/heimdal/lib/com_err		\
	 -I${.CURDIR}/../../include/heimdal	\
	 -I${.CURDIR}/../libroken		\
	 -I${DIST}/heimdal/lib/roken		\
	 -DHAVE_CONFIG_H

$(gen_files) hdb_asn1.h: asn1_files

hdb_asn1.h: hdb_asn1.hx
$(SRCS:.c=.o): hdb_err.h hdb_asn1.h

CLEANFILES = $(gen_files) $(BUILT_SOURCES) hdb_asn1.h hdb_asn1.hx asn1_files hdb_err.h

.include <bsd.lib.mk>

.SUFFIXES: .hx .x

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

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

@


1.2.2.1
log
@Pull up revisions 1.3-1.6 (requested by assar):
  Upgrade Heimdal to version 0.3e.
@
text
@d1 1
a1 4
# $NetBSD$

.include <bsd.own.mk>

d10 1
a10 1
COMPILEET!=	cd ${.CURDIR}/../libcom_err/compile_et && ${PRINTOBJDIR}
d19 1
a19 1
DPSRCS=	hdb_asn1.h hdb_err.h
d23 3
a25 1
SRCS=					\
a27 5
	    db3.c			\
	    hdb-ldap.c			\
	    hdb.c			\
	    keytab.c			\
	    mkey.c			\
d36 3
a38 1
ASN1COMPILE!=	cd ${.CURDIR}/../libasn1/asn1_compile && ${PRINTOBJDIR}
d40 1
a40 1
asn1_files hdb_asn1.hx: hdb.asn1
d43 2
a44 2
ASN1!=	cd ${.CURDIR}/../libasn1 && ${PRINTOBJDIR}
KRB5!=	cd ${.CURDIR}/../libkrb5 && ${PRINTOBJDIR}
d63 1
a63 1
$(SRCS): hdb_err.h hdb_asn1.h
@


1.1
log
@Initial revision
@
text
@d1 2
a2 2
# $NetBSD: Makefile,v 1.5 2000/06/14 08:59:22 assar Exp $
DIST=		${.CURDIR}/../../dist
@


1.1.1.1
log
@Import Heimdal library build glue from cryptosrc-intl.
@
text
@@
