head	1.28;
access;
symbols
	perseant-exfatfs-base-20250801:1.28
	perseant-exfatfs-base-20240630:1.28
	perseant-exfatfs:1.28.0.18
	perseant-exfatfs-base:1.28
	cjep_sun2x:1.28.0.16
	cjep_sun2x-base:1.28
	cjep_staticlib_x-base1:1.28
	cjep_staticlib_x:1.28.0.14
	cjep_staticlib_x-base:1.28
	phil-wifi-20200421:1.28
	phil-wifi-20200411:1.28
	phil-wifi-20200406:1.28
	pgoyette-compat-merge-20190127:1.28
	pgoyette-compat-20190127:1.28
	pgoyette-compat-20190118:1.28
	pgoyette-compat-1226:1.28
	pgoyette-compat-1126:1.28
	pgoyette-compat-1020:1.28
	pgoyette-compat-0930:1.28
	pgoyette-compat-0906:1.28
	pgoyette-compat-0728:1.28
	pgoyette-compat-0625:1.28
	pgoyette-compat-0521:1.28
	pgoyette-compat-0502:1.28
	pgoyette-compat-0422:1.28
	pgoyette-compat-0415:1.28
	pgoyette-compat-0407:1.28
	pgoyette-compat-0330:1.28
	pgoyette-compat-0322:1.28
	pgoyette-compat-0315:1.28
	pgoyette-compat:1.28.0.12
	pgoyette-compat-base:1.28
	perseant-stdc-iso10646:1.28.0.10
	perseant-stdc-iso10646-base:1.28
	prg-localcount2-base3:1.28
	prg-localcount2-base2:1.28
	prg-localcount2-base1:1.28
	prg-localcount2:1.28.0.8
	prg-localcount2-base:1.28
	pgoyette-localcount-20170426:1.28
	bouyer-socketcan-base1:1.28
	pgoyette-localcount-20170320:1.28
	bouyer-socketcan:1.28.0.6
	bouyer-socketcan-base:1.28
	pgoyette-localcount-20170107:1.28
	pgoyette-localcount-20161104:1.28
	localcount-20160914:1.28
	pgoyette-localcount-20160806:1.28
	pgoyette-localcount-20160726:1.28
	pgoyette-localcount:1.28.0.4
	pgoyette-localcount-base:1.28
	netbsd-5-2-3-RELEASE:1.22
	netbsd-5-1-5-RELEASE:1.22
	netbsd-6-0-6-RELEASE:1.26
	netbsd-6-1-5-RELEASE:1.26
	yamt-pagecache-base9:1.28
	yamt-pagecache-tag8:1.26.2.1
	netbsd-6-1-4-RELEASE:1.26
	netbsd-6-0-5-RELEASE:1.26
	tls-earlyentropy:1.28.0.2
	tls-earlyentropy-base:1.28
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.28
	riastradh-drm2-base3:1.28
	netbsd-6-1-3-RELEASE:1.26
	netbsd-6-0-4-RELEASE:1.26
	netbsd-5-2-2-RELEASE:1.22
	netbsd-5-1-4-RELEASE:1.22
	netbsd-6-1-2-RELEASE:1.26
	netbsd-6-0-3-RELEASE:1.26
	netbsd-5-2-1-RELEASE:1.22
	netbsd-5-1-3-RELEASE:1.22
	netbsd-6-1-1-RELEASE:1.26
	netbsd-6-1:1.26.0.10
	netbsd-6-0-2-RELEASE:1.26
	netbsd-6-1-RELEASE:1.26
	netbsd-6-1-RC4:1.26
	netbsd-6-1-RC3:1.26
	agc-symver:1.27.0.6
	agc-symver-base:1.27
	netbsd-6-1-RC2:1.26
	netbsd-6-1-RC1:1.26
	yamt-pagecache-base8:1.27
	netbsd-5-2:1.22.0.2
	netbsd-6-0-1-RELEASE:1.26
	yamt-pagecache-base7:1.27
	netbsd-5-2-RELEASE:1.22
	netbsd-5-2-RC1:1.22
	matt-nb6-plus-nbase:1.26
	yamt-pagecache-base6:1.27
	netbsd-6-0:1.26.0.8
	netbsd-6-0-RELEASE:1.26
	netbsd-6-0-RC2:1.26
	tls-maxphys:1.27.0.2
	tls-maxphys-base:1.28
	matt-nb6-plus:1.26.0.6
	matt-nb6-plus-base:1.26
	netbsd-6-0-RC1:1.26
	yamt-pagecache-base5:1.26
	yamt-pagecache-base4:1.26
	netbsd-6:1.26.0.4
	netbsd-6-base:1.26
	netbsd-5-1-2-RELEASE:1.22
	netbsd-5-1-1-RELEASE:1.22
	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.2
	cherry-xenmp-base:1.24
	bouyer-quota2-nbase:1.23
	bouyer-quota2:1.23.0.2
	bouyer-quota2-base:1.23
	matt-mips64-premerge-20101231:1.23
	matt-nb5-mips64-premerge-20101231:1.22
	matt-nb5-pq3:1.22.0.14
	matt-nb5-pq3-base:1.22
	netbsd-5-1:1.22.0.12
	netbsd-5-1-RELEASE:1.22
	netbsd-5-1-RC4:1.22
	matt-nb5-mips64-k15:1.22
	netbsd-5-1-RC3:1.22
	netbsd-5-1-RC2:1.22
	netbsd-5-1-RC1:1.22
	netbsd-5-0-2-RELEASE:1.22
	matt-nb5-mips64-premerge-20091211:1.22
	matt-premerge-20091211:1.23
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.22
	matt-nb4-mips64-k7-u2a-k9b:1.22
	matt-nb5-mips64-u1-k1-k5:1.22
	matt-nb5-mips64:1.22.0.10
	netbsd-5-0-1-RELEASE:1.22
	jym-xensuspend-nbase:1.23
	netbsd-5-0:1.22.0.8
	netbsd-5-0-RELEASE:1.22
	netbsd-5-0-RC4:1.22
	netbsd-5-0-RC3:1.22
	netbsd-5-0-RC2:1.22
	jym-xensuspend:1.22.0.6
	jym-xensuspend-base:1.23
	netbsd-5-0-RC1:1.22
	netbsd-5:1.22.0.4
	netbsd-5-base:1.22
	matt-mips64-base2:1.22
	matt-mips64:1.21.0.14
	netbsd-4-0-1-RELEASE:1.20
	wrstuden-revivesa-base-3:1.22
	wrstuden-revivesa-base-2:1.22
	wrstuden-fixsa-newbase:1.20
	wrstuden-revivesa-base-1:1.21
	yamt-pf42-base4:1.21
	yamt-pf42-base3:1.21
	hpcarm-cleanup-nbase:1.21
	yamt-pf42-baseX:1.21
	yamt-pf42-base2:1.21
	wrstuden-revivesa:1.21.0.12
	wrstuden-revivesa-base:1.21
	yamt-pf42:1.21.0.10
	yamt-pf42-base:1.21
	keiichi-mipv6-nbase:1.21
	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.19
	netbsd-3-0-3-RELEASE:1.19
	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.19.0.12
	netbsd-3-1-RELEASE:1.19
	netbsd-3-0-2-RELEASE:1.19
	netbsd-3-1-RC4:1.19
	netbsd-3-1-RC3:1.19
	netbsd-3-1-RC2:1.19
	netbsd-3-1-RC1:1.19
	netbsd-4:1.20.0.4
	netbsd-4-base:1.20
	netbsd-3-0-1-RELEASE:1.19
	netbsd-3-0:1.19.0.10
	netbsd-3-0-RELEASE:1.19
	netbsd-3-0-RC6:1.19
	netbsd-3-0-RC5:1.19
	netbsd-3-0-RC4:1.19
	netbsd-3-0-RC3:1.19
	netbsd-3-0-RC2:1.19
	netbsd-3-0-RC1:1.19
	netbsd-2-0-3-RELEASE:1.19
	netbsd-2-1:1.19.0.8
	netbsd-2-1-RELEASE:1.19
	netbsd-2-1-RC6:1.19
	netbsd-2-1-RC5:1.19
	netbsd-2-1-RC4:1.19
	netbsd-2-1-RC3:1.19
	netbsd-2-1-RC2:1.19
	netbsd-2-1-RC1:1.19
	netbsd-2-0-2-RELEASE:1.19
	netbsd-3:1.19.0.6
	netbsd-3-base:1.19
	netbsd-2-0-1-RELEASE:1.19
	netbsd-2:1.19.0.4
	netbsd-2-base:1.19
	netbsd-2-0-RELEASE:1.19
	netbsd-2-0-RC5:1.19
	netbsd-2-0-RC4:1.19
	netbsd-2-0-RC3:1.19
	netbsd-2-0-RC2:1.19
	netbsd-2-0-RC1:1.19
	netbsd-2-0:1.19.0.2
	netbsd-2-0-base:1.19
	netbsd-1-6-PATCH002-RELEASE:1.15
	netbsd-1-6-PATCH002:1.15
	netbsd-1-6-PATCH002-RC4:1.15
	netbsd-1-6-PATCH002-RC3:1.15
	netbsd-1-6-PATCH002-RC2:1.15
	netbsd-1-6-PATCH002-RC1:1.15
	netbsd-1-6-PATCH001:1.15
	netbsd-1-6-PATCH001-RELEASE:1.15
	netbsd-1-6-PATCH001-RC3:1.15
	netbsd-1-6-PATCH001-RC2:1.15
	netbsd-1-6-PATCH001-RC1:1.15
	fvdl_fs64_base:1.18
	netbsd-1-6-RELEASE:1.15
	netbsd-1-6-RC3:1.15
	netbsd-1-6-RC2:1.15
	netbsd-1-6-RC1:1.15
	netbsd-1-6:1.15.0.2
	netbsd-1-6-base:1.15
	netbsd-1-5-PATCH003:1.10.4.3
	netbsd-1-5-PATCH002:1.10.4.3
	netbsd-1-5-PATCH001:1.10.4.2
	netbsd-1-5-RELEASE:1.10.4.1
	netbsd-1-5-BETA2:1.10.4.1
	netbsd-1-5-BETA:1.10.4.1
	netbsd-1-4-PATCH003:1.9
	ISC_20000719_MERGE:1.10
	netbsd-1-5-ALPHA2:1.10
	netbsd-1-5:1.10.0.4
	netbsd-1-5-base:1.10
	minoura-xpg4dl-base:1.10
	minoura-xpg4dl:1.10.0.2
	netbsd-1-4-PATCH002:1.9
	wrstuden-devbsize-19991221:1.9
	wrstuden-devbsize:1.9.0.6
	wrstuden-devbsize-base:1.9
	comdex-fall-1999:1.9.0.4
	comdex-fall-1999-base:1.9
	netbsd-1-4-PATCH001:1.9
	netbsd-1-4-RELEASE:1.9
	netbsd-1-4:1.9.0.2
	netbsd-1-4-base:1.9
	netbsd-1-3-PATCH003:1.7.2.1
	netbsd-1-3-PATCH003-CANDIDATE2:1.7.2.1
	netbsd-1-3-PATCH003-CANDIDATE1:1.7.2.1
	netbsd-1-3-PATCH003-CANDIDATE0:1.7.2.1
	netbsd-1-3-PATCH002:1.7.2.1
	netbsd-1-3-PATCH001:1.7.2.1
	netbsd-1-3-RELEASE:1.7.2.1
	netbsd-1-3-BETA:1.7.2.1
	netbsd-1-3:1.7.0.2
	netbsd-1-3-base:1.7;
locks; strict;
comment	@# @;


1.28
date	2013.06.20.18.41.26;	author christos;	state dead;
branches;
next	1.27;
commitid	1DeRCJ1NyAipTnUw;

1.27
date	2012.08.10.12.10.28;	author joerg;	state Exp;
branches
	1.27.2.1;
next	1.26;

1.26
date	2011.08.09.13.04.28;	author joerg;	state Exp;
branches
	1.26.2.1;
next	1.25;

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

1.24
date	2011.05.26.12.56.33;	author joerg;	state Exp;
branches
	1.24.2.1;
next	1.23;

1.23
date	2009.04.22.15.23.02;	author lukem;	state Exp;
branches;
next	1.22;

1.22
date	2008.08.29.00.02.25;	author gmcgarry;	state Exp;
branches
	1.22.6.1;
next	1.21;

1.21
date	2007.05.28.12.06.34;	author tls;	state Exp;
branches
	1.21.12.1;
next	1.20;

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

1.19
date	2003.09.25.01.02.03;	author mycroft;	state Exp;
branches;
next	1.18;

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

1.17
date	2002.06.16.21.40.03;	author augustss;	state Exp;
branches;
next	1.16;

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

1.15
date	2001.08.03.14.13.56;	author drochner;	state Exp;
branches;
next	1.14;

1.14
date	2001.04.03.01.00.03;	author mellon;	state Exp;
branches;
next	1.13;

1.13
date	2001.04.03.00.49.15;	author mellon;	state Exp;
branches;
next	1.12;

1.12
date	2001.01.07.08.00.57;	author enami;	state Exp;
branches;
next	1.11;

1.11
date	2000.09.05.00.50.07;	author mellon;	state Exp;
branches;
next	1.10;

1.10
date	2000.04.22.08.18.11;	author mellon;	state Exp;
branches
	1.10.4.1;
next	1.9;

1.9
date	99.02.12.03.01.56;	author cjs;	state Exp;
branches;
next	1.8;

1.8
date	97.10.25.06.57.59;	author lukem;	state Exp;
branches;
next	1.7;

1.7
date	97.10.18.06.42.40;	author lukem;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	97.05.07.07.24.12;	author mycroft;	state Exp;
branches;
next	1.5;

1.5
date	97.04.20.20.27.07;	author pk;	state Exp;
branches;
next	1.4;

1.4
date	97.04.01.00.50.12;	author mellon;	state Exp;
branches;
next	1.3;

1.3
date	97.03.31.23.50.17;	author mellon;	state Exp;
branches;
next	1.2;

1.2
date	97.03.30.12.00.33;	author veego;	state Exp;
branches;
next	1.1;

1.1
date	97.03.29.23.09.00;	author mellon;	state Exp;
branches;
next	;

1.27.2.1
date	2013.06.23.06.29.03;	author tls;	state dead;
branches;
next	;
commitid	OnlO1cBgtQRcIHUw;

1.26.2.1
date	2012.10.30.19.00.32;	author yamt;	state Exp;
branches;
next	1.26.2.2;

1.26.2.2
date	2014.05.22.11.43.02;	author yamt;	state dead;
branches;
next	;
commitid	wmvImESqVQCgMwBx;

1.24.2.1
date	2011.06.23.14.20.46;	author cherry;	state Exp;
branches;
next	;

1.22.6.1
date	2009.05.13.19.20.21;	author jym;	state Exp;
branches;
next	;

1.21.12.1
date	2008.09.18.04.30.03;	author wrstuden;	state Exp;
branches;
next	;

1.10.4.1
date	2000.10.18.04.10.55;	author tv;	state Exp;
branches;
next	1.10.4.2;

1.10.4.2
date	2001.04.04.20.57.58;	author he;	state Exp;
branches;
next	1.10.4.3;

1.10.4.3
date	2001.08.16.18.53.26;	author tv;	state Exp;
branches;
next	;

1.7.2.1
date	97.11.08.15.11.34;	author lukem;	state Exp;
branches;
next	;


desc
@@


1.28
log
@bye build glue
@
text
@# $NetBSD: Makefile.inc,v 1.27 2012/08/10 12:10:28 joerg Exp $

WARNS?=	1	# XXX -Wshadow -Wcast-qual -Wsign-compare

.include <bsd.own.mk>

USE_FORT?= yes	# network client/server
CWARNFLAGS.clang+=	-Wno-tautological-compare \
			-Wno-conversion -Wno-constant-logical-operand \
			-Wno-format-security

DIST=	${NETBSDSRCDIR}/dist/dhcp
.PATH:	${DIST}/${DHCPSRCDIR}

COBJDIR!=cd $(.CURDIR)/../common && ${PRINTOBJDIR}
OMOBJDIR!=cd $(.CURDIR)/../omapip && ${PRINTOBJDIR}
MROBJDIR!=cd $(.CURDIR)/../minires && ${PRINTOBJDIR}
DSTOBJDIR!=cd $(.CURDIR)/../dst && ${PRINTOBJDIR}

.if defined(HAVE_GCC) || defined(HAVE_LLVM)
COPTS+=	-fno-strict-aliasing
.endif

CPPFLAGS+= -I${DIST} -I${DIST}/includes -Wno-unused
LDADD+= ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a
LDADD+= ${OMOBJDIR}/libomapi.a ${DSTOBJDIR}/libdst.a
LDADD+= -lipsec
DPADD+= ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a
DPADD+= ${OMOBJDIR}/libomapi.a ${DSTOBJDIR}/libdst.a
DPADD+= ${LIBIPSEC}

.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
@


1.27
log
@Remove many HAVE_GCC || HAVE_PCC conditionals as the options also apply
to Clang. Add a few cases of HAVE_LLVM for -fno-strict-aliasing.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.26 2011/08/09 13:04:28 joerg Exp $
@


1.27.2.1
log
@resync from head
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.27 2012/08/10 12:10:28 joerg Exp $
@


1.26
log
@Passes with the relaxed array boundary check in clang
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.25 2011/06/20 07:44:02 mrg Exp $
d20 1
a20 1
.if defined(HAVE_GCC)
@


1.26.2.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.26 2011/08/09 13:04:28 joerg Exp $
d20 1
a20 1
.if defined(HAVE_GCC) || defined(HAVE_LLVM)
@


1.26.2.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.26.2.1 2012/10/30 19:00:32 yamt Exp $
@


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.inc,v 1.24 2011/05/26 12:56:33 joerg Exp $
d8 1
a8 1
CWARNFLAGS.clang+=	-Wno-tautological-compare -Wno-array-bounds \
@


1.24
log
@Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.23 2009/04/22 15:23:02 lukem Exp $
d20 1
a20 1
.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
@


1.24.2.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.25 2011/06/20 07:44:02 mrg Exp $
d20 1
a20 1
.if defined(HAVE_GCC)
@


1.23
log
@Enable WARNS=4 by default, except for:
	cpuctl  dumplfs  hprop  ipf  iprop-log  kadmin  kcm  kdc  kdigest
	kimpersonate  kstash  ktutil  makefs  ndbootd  ntp  pppd  quot
	racoon  racoonctl  rtadvd  sntp  sup  tcpdchk  tcpdmatch  tcpdump
	traceroute  traceroute6  user  veriexecgen  wsmoused  zic
(Mostly third-party applications)
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.22 2008/08/29 00:02:25 gmcgarry Exp $
d8 3
@


1.22
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.inc,v 1.21 2007/05/28 12:06:34 tls Exp $
d3 1
a3 1
WARNS?=	1
@


1.22.6.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.23 2009/04/22 15:23:02 lukem Exp $
d3 1
a3 1
WARNS?=	1	# XXX -Wshadow -Wcast-qual -Wsign-compare
@


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.inc,v 1.20 2006/05/11 23:16:30 mrg Exp $
d17 1
a17 1
.if ${HAVE_GCC} == 4
@


1.21.12.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.21 2007/05/28 12:06:34 tls Exp $
d17 1
a17 1
.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
@


1.20
log
@sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.19 2003/09/25 01:02:03 mycroft Exp $
d7 2
@


1.19
log
@Pull in libipsec.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.18 2002/09/18 03:54:28 lukem Exp $
d15 4
@


1.18
log
@use NETBSDSRCDIR as appropriate
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.17 2002/06/16 21:40:03 augustss Exp $
d18 1
d21 1
@


1.17
log
@Don't use -Dlint when compiling to get rid of unused copyright strings,
use -Wno-unused to get rid of the warning instead.
XXX This is not the right way either, but at least it compiles on ppc now.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.16 2002/06/10 00:30:33 itojun Exp $
d7 1
a7 1
DIST=	${.CURDIR}/../../../dist/dhcp
@


1.16
log
@WARNS=1 clean.  patch submitted to dhcp-bugs@@isc.org.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.15 2001/08/03 14:13:56 drochner Exp $
d15 1
a15 1
CPPFLAGS+= -I${DIST} -I${DIST}/includes -Dlint
@


1.15
log
@switch to reachover build from src/dist/dhcp
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
WARNS?=	0
d15 1
a15 1
CPPFLAGS+= -I${DIST} -I${DIST}/includes
@


1.14
log
@Oops, minires->dst in DSTOBJDIR
@
text
@d1 1
a1 31
# Makefile.inc
#
# Copyright (c) 1996, 1997 The Internet Software Consortium.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. Neither the name of The Internet Software Consortium nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE INTERNET SOFTWARE CONSORTIUM AND
# CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
# BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
# THE INTERNET SOFTWARE CONSORTIUM OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
# OF THE POSSIBILITY OF SUCH DAMAGE.
#
d7 3
d15 5
a19 3
CPPFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../includes
LDADD=  ${OMOBJDIR}/libomapi.a ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a ${DSTOBJDIR}/libdst.a
DPADD=  ${OMOBJDIR}/libomapi.a ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a ${DSTOBJDIR}/libdst.a
@


1.13
log
@Fix various makefile glitches
@
text
@d40 1
a40 1
DSTOBJDIR!=cd $(.CURDIR)/../minires && ${PRINTOBJDIR}
@


1.12
log
@Use PRINTOBJDIR.
@
text
@d40 1
d43 2
a44 2
LDADD=  ${OMOBJDIR}/libomapi.a ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a
DPADD=  ${OMOBJDIR}/libomapi.a ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a
@


1.11
log
@Update some instances of file movement in the ISC release.
@
text
@d35 5
a39 6
COBJDIR!=cd $(.CURDIR)/../common; \
	printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
OMOBJDIR!=cd $(.CURDIR)/../omapip; \
	printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
MROBJDIR!=cd $(.CURDIR)/../minires; \
	printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
@


1.10
log
@Initial merge of ISC DHCP 3.0 into NetBSD tree (incomplete)
@
text
@d43 2
a44 2
LDADD=  ${COBJDIR}/libdhcp.a ${OMOBJDIR}/libomapi.a ${MROBJDIR}/libminires.a
DPADD=  ${COBJDIR}/libdhcp.a ${OMOBJDIR}/libomapi.a ${MROBJDIR}/libminires.a
@


1.10.4.1
log
@Pull up HEAD [taca]:
There are some inconsistencies with the branch vs. the trunk, so pull up
the whole of dhcp to get it in sync as of this commit.  (We're expecting
more pullups further down the branch, so this will help future merges.)
@
text
@d43 2
a44 2
LDADD=  ${OMOBJDIR}/libomapi.a ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a
DPADD=  ${OMOBJDIR}/libomapi.a ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a
@


1.10.4.2
log
@Pull up revisions 1.13-1.14 (via patch, requested by mellon):
  Update DHCP software to ISC version 3, Beta 2, Patchlevel 23.
@
text
@a40 2
DSTOBJDIR!=cd $(.CURDIR)/../dst; \
	printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}\n" | ${MAKE} -s -f-
d43 2
a44 2
LDADD=  ${OMOBJDIR}/libomapi.a ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a ${DSTOBJDIR}/libdst.a
DPADD=  ${OMOBJDIR}/libomapi.a ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a ${DSTOBJDIR}/libdst.a
@


1.10.4.3
log
@Pullup [drochner]:

distrib/notes/common/main                       patch
distrib/sets/lists/base/mi                      1.270 by patch
distrib/sets/lists/man/mi                       1.390 by patch
usr.sbin/dhcp/Makefile                          sync with 1.12
usr.sbin/dhcp/Makefile.inc                      sync with 1.15
usr.sbin/dhcp/client/Makefile                   1.13-1.14
usr.sbin/dhcp/clientscript/Makefile             1.1-1.2
usr.sbin/dhcp/clientscript/dhclient-script      1.1
usr.sbin/dhcp/common/Makefile                   1.19
usr.sbin/dhcp/dhcpctl/Makefile                  1.2
usr.sbin/dhcp/dst/Makefile                      1.3-1.4
usr.sbin/dhcp/minires/Makefile                  1.4-1.5
usr.sbin/dhcp/omapip/Makefile                   1.4-1.5
usr.sbin/dhcp/omshell/Makefile                  1.1-1.2
usr.sbin/dhcp/relay/Makefile                    1.3
usr.sbin/dhcp/server/Makefile                   1.11-1.12
usr.sbin/dhcp/(others)                          remove

  Update dhcp to Version 3, Release Candidate 10.
@
text
@d1 31
a31 1
# $NetBSD: Makefile.inc,v 1.15 2001/08/03 14:13:56 drochner Exp $
d35 8
a42 1
.include <bsd.own.mk>
d44 3
a46 13
DIST=	${.CURDIR}/../../../dist/dhcp
.PATH:	${DIST}/${DHCPSRCDIR}

COBJDIR!=cd $(.CURDIR)/../common && ${PRINTOBJDIR}
OMOBJDIR!=cd $(.CURDIR)/../omapip && ${PRINTOBJDIR}
MROBJDIR!=cd $(.CURDIR)/../minires && ${PRINTOBJDIR}
DSTOBJDIR!=cd $(.CURDIR)/../dst && ${PRINTOBJDIR}

CPPFLAGS+= -I${DIST} -I${DIST}/includes
LDADD+= ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a
LDADD+= ${OMOBJDIR}/libomapi.a ${DSTOBJDIR}/libdst.a
DPADD+= ${COBJDIR}/libdhcp.a ${MROBJDIR}/libminires.a
DPADD+= ${OMOBJDIR}/libomapi.a ${DSTOBJDIR}/libdst.a
@


1.9
log
@Don't include bsd.obj.mk here; you can't include it without first
including bsd.own.mk.
@
text
@d37 4
d43 2
a44 2
LDADD=  ${COBJDIR}/libdhcp.a          
DPADD=  ${COBJDIR}/libdhcp.a          
@


1.8
log
@use CPPFLAGS instead of CFLAGS
@
text
@a32 2
.include <bsd.obj.mk>

@


1.7
log
@enable WARNS=1 by default, but disable in unclean 3rd party code
@
text
@d40 1
a40 1
CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../includes
@


1.7.2.1
log
@sync with trunk (approved by thorpej)
@
text
@d40 1
a40 1
CPPFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../includes
@


1.6
log
@Add .MAKE to the .OBJDIR hacks, so they work with `make -n'.
@
text
@d35 2
d44 1
d46 1
@


1.5
log
@Compute object subdirectories correctly.
@
text
@d36 1
a36 2
	printf "xxx:\n\techo \$${.OBJDIR}\n" | \
	${MAKE} -r -s -f - xxx
@


1.4
log
@Must include bsd.obj.mk to get __objdir before testing it
@
text
@d35 3
a37 5
.if exists(${.CURDIR}/../common/${__objdir})
COBJDIR= ${.CURDIR}/../common/${__objdir}
.else
COBJDIR= ${.CURDIR}/../common    
.endif
@


1.3
log
@use ${__objdir} instead of obj - pointed out by Matt Ragan
@
text
@d33 2
@


1.2
log
@Add missing .include "${.CURDIR}/../../Makefile.inc"
otherwise the binaries are installed into / instead of /usr/sbin
@
text
@d33 2
a34 2
.if exists(${.CURDIR}/../common/obj)
COBJDIR= ${.CURDIR}/../common/obj
@


1.1
log
@Move common declarations to single file
@
text
@d42 2
@
