head	1.34;
access;
symbols
	netbsd-11-0-RC4:1.34
	netbsd-11-0-RC3:1.34
	netbsd-11-0-RC2:1.34
	netbsd-11-0-RC1:1.34
	perseant-exfatfs-base-20250801:1.34
	netbsd-11:1.34.0.4
	netbsd-11-base:1.34
	netbsd-10-1-RELEASE:1.32
	perseant-exfatfs-base-20240630:1.34
	perseant-exfatfs:1.34.0.2
	perseant-exfatfs-base:1.34
	netbsd-8-3-RELEASE:1.30
	netbsd-9-4-RELEASE:1.30
	netbsd-10-0-RELEASE:1.32
	netbsd-10-0-RC6:1.32
	netbsd-10-0-RC5:1.32
	netbsd-10-0-RC4:1.32
	netbsd-10-0-RC3:1.32
	netbsd-10-0-RC2:1.32
	netbsd-10-0-RC1:1.32
	netbsd-10:1.32.0.2
	netbsd-10-base:1.32
	netbsd-9-3-RELEASE:1.30
	cjep_sun2x-base1:1.31
	cjep_sun2x:1.31.0.4
	cjep_sun2x-base:1.31
	cjep_staticlib_x-base1:1.31
	netbsd-9-2-RELEASE:1.30
	cjep_staticlib_x:1.31.0.2
	cjep_staticlib_x-base:1.31
	netbsd-9-1-RELEASE:1.30
	phil-wifi-20200421:1.30
	phil-wifi-20200411:1.30
	is-mlppp:1.30.0.20
	is-mlppp-base:1.30
	phil-wifi-20200406:1.30
	netbsd-8-2-RELEASE:1.30
	netbsd-9-0-RELEASE:1.30
	netbsd-9-0-RC2:1.30
	netbsd-9-0-RC1:1.30
	phil-wifi-20191119:1.30
	netbsd-9:1.30.0.18
	netbsd-9-base:1.30
	phil-wifi-20190609:1.30
	netbsd-8-1-RELEASE:1.30
	netbsd-8-1-RC1:1.30
	pgoyette-compat-merge-20190127:1.30
	pgoyette-compat-20190127:1.30
	pgoyette-compat-20190118:1.30
	pgoyette-compat-1226:1.30
	pgoyette-compat-1126:1.30
	pgoyette-compat-1020:1.30
	pgoyette-compat-0930:1.30
	pgoyette-compat-0906:1.30
	netbsd-7-2-RELEASE:1.28
	pgoyette-compat-0728:1.30
	netbsd-8-0-RELEASE:1.30
	phil-wifi:1.30.0.16
	phil-wifi-base:1.30
	pgoyette-compat-0625:1.30
	netbsd-8-0-RC2:1.30
	pgoyette-compat-0521:1.30
	pgoyette-compat-0502:1.30
	pgoyette-compat-0422:1.30
	netbsd-8-0-RC1:1.30
	pgoyette-compat-0415:1.30
	pgoyette-compat-0407:1.30
	pgoyette-compat-0330:1.30
	pgoyette-compat-0322:1.30
	pgoyette-compat-0315:1.30
	netbsd-7-1-2-RELEASE:1.28
	pgoyette-compat:1.30.0.14
	pgoyette-compat-base:1.30
	netbsd-7-1-1-RELEASE:1.28
	matt-nb8-mediatek:1.30.0.12
	matt-nb8-mediatek-base:1.30
	perseant-stdc-iso10646:1.30.0.10
	perseant-stdc-iso10646-base:1.30
	netbsd-8:1.30.0.8
	netbsd-8-base:1.30
	prg-localcount2-base3:1.30
	prg-localcount2-base2:1.30
	prg-localcount2-base1:1.30
	prg-localcount2:1.30.0.6
	prg-localcount2-base:1.30
	pgoyette-localcount-20170426:1.30
	bouyer-socketcan-base1:1.30
	pgoyette-localcount-20170320:1.30
	netbsd-7-1:1.28.0.30
	netbsd-7-1-RELEASE:1.28
	netbsd-7-1-RC2:1.28
	netbsd-7-nhusb-base-20170116:1.28
	bouyer-socketcan:1.30.0.4
	bouyer-socketcan-base:1.30
	pgoyette-localcount-20170107:1.30
	netbsd-7-1-RC1:1.28
	pgoyette-localcount-20161104:1.30
	netbsd-7-0-2-RELEASE:1.28
	localcount-20160914:1.30
	netbsd-7-nhusb:1.28.0.28
	netbsd-7-nhusb-base:1.28
	pgoyette-localcount-20160806:1.30
	pgoyette-localcount-20160726:1.30
	pgoyette-localcount:1.30.0.2
	pgoyette-localcount-base:1.30
	netbsd-7-0-1-RELEASE:1.28
	netbsd-7-0:1.28.0.26
	netbsd-7-0-RELEASE:1.28
	netbsd-7-0-RC3:1.28
	netbsd-7-0-RC2:1.28
	netbsd-7-0-RC1:1.28
	netbsd-5-2-3-RELEASE:1.22
	netbsd-5-1-5-RELEASE:1.22
	netbsd-6-0-6-RELEASE:1.28
	netbsd-6-1-5-RELEASE:1.28
	netbsd-7:1.28.0.24
	netbsd-7-base:1.28
	yamt-pagecache-base9:1.28
	yamt-pagecache-tag8:1.28
	netbsd-6-1-4-RELEASE:1.28
	netbsd-6-0-5-RELEASE:1.28
	tls-earlyentropy:1.28.0.22
	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.28
	netbsd-6-0-4-RELEASE:1.28
	netbsd-5-2-2-RELEASE:1.22
	netbsd-5-1-4-RELEASE:1.22
	netbsd-6-1-2-RELEASE:1.28
	netbsd-6-0-3-RELEASE:1.28
	netbsd-5-2-1-RELEASE:1.22
	netbsd-5-1-3-RELEASE:1.22
	netbsd-6-1-1-RELEASE:1.28
	riastradh-drm2-base2:1.28
	riastradh-drm2-base1:1.28
	riastradh-drm2:1.28.0.16
	riastradh-drm2-base:1.28
	netbsd-6-1:1.28.0.20
	netbsd-6-0-2-RELEASE:1.28
	netbsd-6-1-RELEASE:1.28
	netbsd-6-1-RC4:1.28
	netbsd-6-1-RC3:1.28
	agc-symver:1.28.0.18
	agc-symver-base:1.28
	netbsd-6-1-RC2:1.28
	netbsd-6-1-RC1:1.28
	yamt-pagecache-base8:1.28
	netbsd-5-2:1.22.0.16
	netbsd-6-0-1-RELEASE:1.28
	yamt-pagecache-base7:1.28
	netbsd-5-2-RELEASE:1.22
	netbsd-5-2-RC1:1.22
	matt-nb6-plus-nbase:1.28
	yamt-pagecache-base6:1.28
	netbsd-6-0:1.28.0.14
	netbsd-6-0-RELEASE:1.28
	netbsd-6-0-RC2:1.28
	tls-maxphys:1.28.0.12
	tls-maxphys-base:1.28
	matt-nb6-plus:1.28.0.10
	matt-nb6-plus-base:1.28
	netbsd-6-0-RC1:1.28
	yamt-pagecache-base5:1.28
	yamt-pagecache-base4:1.28
	netbsd-6:1.28.0.8
	netbsd-6-base:1.28
	netbsd-5-1-2-RELEASE:1.22
	netbsd-5-1-1-RELEASE:1.22
	yamt-pagecache-base3:1.28
	yamt-pagecache-base2:1.28
	yamt-pagecache:1.28.0.6
	yamt-pagecache-base:1.28
	cherry-xenmp:1.28.0.4
	cherry-xenmp-base:1.28
	bouyer-quota2-nbase:1.28
	bouyer-quota2:1.28.0.2
	bouyer-quota2-base:1.28
	matt-mips64-premerge-20101231:1.28
	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.27
	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
	christos-time_t-base:1.22
	christos-time_t:1.22.0.4
	netbsd-5:1.22.0.2
	netbsd-5-base:1.22
	matt-mips64-base2:1.22
	matt-mips64:1.21.0.22
	mjf-devfs2:1.21.0.20
	mjf-devfs2-base:1.21
	netbsd-4-0-1-RELEASE:1.21
	wrstuden-revivesa-base-3:1.21
	wrstuden-revivesa-base-2:1.21
	wrstuden-fixsa-newbase:1.21
	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.18
	wrstuden-revivesa-base:1.21
	yamt-pf42:1.21.0.16
	yamt-pf42-base:1.21
	keiichi-mipv6-nbase:1.21
	keiichi-mipv6:1.21.0.14
	keiichi-mipv6-base:1.21
	matt-armv6-nbase:1.21
	matt-armv6-prevmlocking:1.21
	wrstuden-fixsa-base-1:1.21
	netbsd-4-0:1.21.0.12
	netbsd-4-0-RELEASE:1.21
	cube-autoconf:1.21.0.10
	cube-autoconf-base:1.21
	netbsd-4-0-RC5:1.21
	netbsd-4-0-RC4:1.21
	netbsd-4-0-RC3:1.21
	netbsd-4-0-RC2:1.21
	netbsd-4-0-RC1:1.21
	matt-armv6:1.21.0.8
	matt-armv6-base:1.21
	matt-mips64-base:1.21
	hpcarm-cleanup:1.21.0.6
	hpcarm-cleanup-base:1.21
	netbsd-3-1-1-RELEASE:1.18
	netbsd-3-0-3-RELEASE:1.18
	wrstuden-fixsa:1.21.0.4
	wrstuden-fixsa-base:1.21
	abandoned-netbsd-4-base:1.20
	abandoned-netbsd-4:1.20.0.4
	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.21.0.2
	netbsd-4-base:1.21
	chap-midi-nbase:1.20
	netbsd-3-0-1-RELEASE:1.18
	chap-midi:1.20.0.2
	chap-midi-base:1.20
	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.11
	netbsd-1-6-PATCH002:1.11
	netbsd-1-6-PATCH002-RC4:1.11
	netbsd-1-6-PATCH002-RC3:1.11
	netbsd-1-6-PATCH002-RC2:1.11
	netbsd-1-6-PATCH002-RC1:1.11
	netbsd-1-6-PATCH001:1.11
	netbsd-1-6-PATCH001-RELEASE:1.11
	netbsd-1-6-PATCH001-RC3:1.11
	netbsd-1-6-PATCH001-RC2:1.11
	netbsd-1-6-PATCH001-RC1:1.11
	fvdl_fs64_base:1.14
	netbsd-1-6-RELEASE:1.11
	netbsd-1-6-RC3:1.11
	netbsd-1-6-RC2:1.11
	netbsd-1-6-RC1:1.11
	netbsd-1-6:1.11.0.2
	netbsd-1-6-base:1.11
	netbsd-1-5-PATCH003:1.4.4.1
	netbsd-1-5-PATCH002:1.4.4.1
	netbsd-1-5-PATCH001:1.4.4.1
	netbsd-1-5-RELEASE:1.4.4.1
	netbsd-1-5-BETA2:1.4.4.1
	netbsd-1-5-BETA:1.4.4.1
	netbsd-1-5-ALPHA2:1.4
	netbsd-1-5:1.4.0.4
	netbsd-1-5-base:1.4
	minoura-xpg4dl-base:1.4
	minoura-xpg4dl:1.4.0.2
	wrstuden-devbsize-19991221:1.3
	wrstuden-devbsize:1.3.0.4
	wrstuden-devbsize-base:1.3
	comdex-fall-1999:1.3.0.2
	comdex-fall-1999-base:1.3;
locks; strict;
comment	@# @;


1.34
date	2024.04.20.13.24.49;	author rillig;	state Exp;
branches;
next	1.33;
commitid	fIH0QvmbjUvnTS6F;

1.33
date	2023.06.03.08.53.00;	author lukem;	state Exp;
branches;
next	1.32;
commitid	JFrjk5m11qFkNtrE;

1.32
date	2021.08.22.22.24.12;	author rillig;	state Exp;
branches;
next	1.31;
commitid	k8JJfaMs1Aus916D;

1.31
date	2020.09.07.00.26.23;	author mrg;	state Exp;
branches;
next	1.30;
commitid	DH6Hgo8pezqo63nC;

1.30
date	2016.01.23.21.22.49;	author christos;	state Exp;
branches;
next	1.29;
commitid	0voYFcZKKnOpl6Sy;

1.29
date	2015.09.26.13.31.27;	author christos;	state Exp;
branches;
next	1.28;
commitid	V8XDyDcHP9mRyLCy;

1.28
date	2009.12.14.05.23.39;	author christos;	state Exp;
branches;
next	1.27;

1.27
date	2009.12.11.16.10.56;	author uebayasi;	state Exp;
branches;
next	1.26;

1.26
date	2009.12.08.02.56.37;	author uebayasi;	state Exp;
branches;
next	1.25;

1.25
date	2009.12.06.14.37.36;	author uebayasi;	state Exp;
branches;
next	1.24;

1.24
date	2009.05.16.21.37.48;	author christos;	state Exp;
branches;
next	1.23;

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

1.22
date	2008.10.19.22.05.23;	author apb;	state Exp;
branches
	1.22.4.1
	1.22.6.1;
next	1.21;

1.21
date	2006.10.08.17.52.29;	author peter;	state Exp;
branches;
next	1.20;

1.20
date	2005.07.17.15.48.28;	author he;	state Exp;
branches;
next	1.19;

1.19
date	2005.07.17.09.45.50;	author he;	state Exp;
branches;
next	1.18;

1.18
date	2004.07.10.12.12.49;	author tron;	state Exp;
branches;
next	1.17;

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

1.16
date	2003.10.19.04.25.18;	author lukem;	state Exp;
branches;
next	1.15;

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

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

1.13
date	2002.09.18.14.00.38;	author lukem;	state Exp;
branches;
next	1.12;

1.12
date	2002.08.27.14.46.18;	author lukem;	state Exp;
branches;
next	1.11;

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

1.10
date	2001.01.16.02.46.25;	author cgd;	state Exp;
branches;
next	1.9;

1.9
date	2001.01.11.14.25.27;	author enami;	state Exp;
branches;
next	1.8;

1.8
date	2000.12.30.14.54.40;	author sommerfeld;	state Exp;
branches;
next	1.7;

1.7
date	2000.11.14.00.10.17;	author jdolecek;	state Exp;
branches;
next	1.6;

1.6
date	2000.11.13.21.48.34;	author jdolecek;	state Exp;
branches;
next	1.5;

1.5
date	2000.10.11.14.46.05;	author is;	state Exp;
branches;
next	1.4;

1.4
date	2000.04.10.09.42.37;	author jdolecek;	state Exp;
branches
	1.4.4.1;
next	1.3;

1.3
date	99.07.28.01.56.06;	author enami;	state Exp;
branches;
next	1.2;

1.2
date	99.07.12.04.13.34;	author mrg;	state Exp;
branches;
next	1.1;

1.1
date	99.07.12.03.20.17;	author darrenr;	state Exp;
branches;
next	;

1.22.4.1
date	2008.10.19.22.05.23;	author apb;	state dead;
branches;
next	1.22.4.2;

1.22.4.2
date	2008.10.19.22.05.24;	author apb;	state Exp;
branches;
next	;

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

1.4.4.1
date	2000.10.18.01.32.45;	author tv;	state Exp;
branches;
next	;


desc
@@


1.34
log
@{usr.,}{s,}bin: replace LINT_SUPPORTED with the standard NOLINT

While here, re-enable lint in those cases where lint was skipped due to
a bug in interpreting abstract types, which was fixed in cgram.y 1.469
from 2023-08-02.
@
text
@#	$NetBSD: Makefile,v 1.33 2023/06/03 08:53:00 lukem Exp $

NOMAN=		# defined

.include <bsd.own.mk>		# for MKDYNAMICROOT & NETBSDSRCDIR

PROG=		ktruss
SRCS=		ktrace.c dump.c subr.c misc.c setemul.c
CLEANFILES+=	misc.c misc.h
NOLINT=		# ktruss-ioctl.c defines uio_t twice.

.if (${MKDYNAMICROOT} == "no")
LDSTATIC?=-static
.endif

# Hint for mkdep(1).
dump.c: misc.h

# Avoid race.
.ORDER: misc.c misc.h

# Build-time generation.
misc.c misc.h: ${DESTDIR}/usr/include/sys/errno.h makeerrnos.sh \
	       ${DESTDIR}/usr/include/sys/signal.h
	${_MKTARGET_CREATE}
	AWK=${TOOL_AWK:Q} CPP=${CPP:Q} CPPFLAGS=${CPPFLAGS:Q} \
	    ${HOST_SH} ${.CURDIR}/makeerrnos.sh \
	    ${DESTDIR}/usr/include/sys/errno.h \
	    ${DESTDIR}/usr/include/sys/signal.h misc

.include "${NETBSDSRCDIR}/usr.bin/kdump/Makefile.ioctl-c"

CPPFLAGS+=	-I. -I${NETBSDSRCDIR}/usr.bin/ktrace -I${NETBSDSRCDIR}/sys \
		-I${NETBSDSRCDIR}/usr.bin/kdump -DKTRUSS -D_KERNTYPES

CWARNFLAGS.gcc+=	${CC_WNO_ADDRESS_OF_PACKED_MEMBER}

.include <bsd.prog.mk>

.PATH: ${NETBSDSRCDIR}/usr.bin/ktrace ${NETBSDSRCDIR}/usr.bin/kdump
@


1.33
log
@bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER

Provide a single variable
	CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
	CLANG_NO_ADDR_OF_PACKED_MEMBER
	CC_NO_ADDR_OF_PACKED_MEMBER
	GCC_NO_ADDR_OF_PACKED_MEMBER

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2021/08/22 22:24:12 rillig Exp $
d10 1
a10 1
LINT_SUPPORTED=	no	# ktruss-ioctl.c defines uio_t twice.
@


1.32
log
@usr.bin: enable lint checks for most programs in /usr/bin

Previously, lint was only activated for the libraries, but not for the
kernel or userland programs.  Activate lint for the programs in /usr/bin
for now, more will follow later.

This only affects builds that set MKLINT=yes.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2020/09/07 00:26:23 mrg Exp $
d36 1
a36 1
CWARNFLAGS.gcc+=	${GCC_NO_ADDR_OF_PACKED_MEMBER}
@


1.31
log
@apply GCC_NO_ADDR_OF_PACKED_MEMBER
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2016/01/23 21:22:49 christos Exp $
d10 1
@


1.30
log
@Define _KERNTYPES for things that need it.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2015/09/26 13:31:27 christos Exp $
d35 2
@


1.29
log
@Put -Isys after the ioctl Makefile has a chance to add other paths first.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2009/12/14 05:23:39 christos Exp $
d33 1
a33 1
		-I${NETBSDSRCDIR}/usr.bin/kdump -DKTRUSS
@


1.28
log
@use .ORDER to avoid race
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2009/12/08 02:56:37 uebayasi Exp $
a8 2
CPPFLAGS+=	-I. -I${NETBSDSRCDIR}/usr.bin/ktrace -I${NETBSDSRCDIR}/sys \
		-I${NETBSDSRCDIR}/usr.bin/kdump -DKTRUSS
d31 4
@


1.27
log
@Use $GENCMD to generate misc.[ch].  Carefully quote strings.
@
text
@d1 1
a1 1
#	$NetBSD$
d17 1
d20 4
d27 1
a27 2
	${GENCMD} ${.TARGET} \
	AWK="${TOOL_AWK:Q}" CPP="${CPP:Q}" CPPFLAGS="${CPPFLAGS:Q}" \
@


1.26
log
@Put back the dependency of dump.c agaist misc.h.  This is needed because
dump.c includes misc.h but misc.h is generated on-the-fly.

Note that dump.c is out of the makeerrnos.sh -> misc.[ch] generation rule
now.  This prevents ktruss from being unnecessarily rebuilt in rescue/.

Pointed out by enami@@, thanks!
@
text
@a16 1
# Hint for mkdep(1).
a18 4
# Avoid race.
misc.c: misc.h

# Build-time generation.
d22 2
a23 1
	AWK=${TOOL_AWK:Q} CPP=${CPP:Q} CPPFLAGS=${CPPFLAGS:Q} \
@


1.25
log
@Correct the dependency; makeerrnos.sh generates misc.c and misc.h.  dump.c
is never involved there.  Those dependency has been wrong since Rev. 1.1.
@
text
@d17 4
d22 2
@


1.24
log
@fix dependencies.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2009/04/14 22:15:22 lukem Exp $
d17 2
a18 2
dump.c misc.c: misc.h
misc.h misc.c dump.c: ${DESTDIR}/usr/include/sys/errno.h makeerrnos.sh \
@


1.23
log
@Enable WARNS=4 by default for usr.bin, except for:
	awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2008/10/19 22:05:23 apb Exp $
d18 1
a18 1
misc.h: ${DESTDIR}/usr/include/sys/errno.h makeerrnos.sh \
@


1.22
log
@Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2006/10/08 17:52:29 peter Exp $
a11 1
WARNS=3
@


1.22.4.1
log
@file Makefile was added on branch christos-time_t on 2008-10-19 22:05:24 +0000
@
text
@d1 30
@


1.22.4.2
log
@Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
@
text
@a0 30
#	$NetBSD: Makefile,v 1.22 2008/10/19 22:05:23 apb Exp $

NOMAN=		# defined

.include <bsd.own.mk>		# for MKDYNAMICROOT & NETBSDSRCDIR

PROG=		ktruss
SRCS=		ktrace.c dump.c subr.c misc.c setemul.c
CPPFLAGS+=	-I. -I${NETBSDSRCDIR}/usr.bin/ktrace -I${NETBSDSRCDIR}/sys \
		-I${NETBSDSRCDIR}/usr.bin/kdump -DKTRUSS
CLEANFILES+=	misc.c misc.h
WARNS=3

.if (${MKDYNAMICROOT} == "no")
LDSTATIC?=-static
.endif

dump.c misc.c: misc.h
misc.h: ${DESTDIR}/usr/include/sys/errno.h makeerrnos.sh \
	       ${DESTDIR}/usr/include/sys/signal.h
	${_MKTARGET_CREATE}
	AWK=${TOOL_AWK:Q} CPP=${CPP:Q} CPPFLAGS=${CPPFLAGS:Q} \
	    ${HOST_SH} ${.CURDIR}/makeerrnos.sh \
	    ${DESTDIR}/usr/include/sys/errno.h \
	    ${DESTDIR}/usr/include/sys/signal.h misc

.include "${NETBSDSRCDIR}/usr.bin/kdump/Makefile.ioctl-c"
.include <bsd.prog.mk>

.PATH: ${NETBSDSRCDIR}/usr.bin/ktrace ${NETBSDSRCDIR}/usr.bin/kdump
@


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,v 1.23 2009/04/14 22:15:22 lukem Exp $
d12 1
@


1.21
log
@WFORMAT is no more...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2005/07/17 15:48:28 he Exp $
d22 1
a22 1
	CPP=${CPP:Q} CPPFLAGS=${CPPFLAGS:Q} \
@


1.20
log
@Make misc.h depend on makeerrnos.sh, to ease UPDATE builds after the
latest change to support WARNS=3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2005/07/17 09:45:50 he Exp $
a11 1
WFORMAT=1
@


1.19
log
@Make this build with WARNS=3, and enable it.
Renames local variable syscall to syscall_ent to placate -Wshadow,
and adds const to struct field initialized to string literals.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2004/07/10 12:12:49 tron Exp $
d20 1
a20 1
misc.h: ${DESTDIR}/usr/include/sys/errno.h \
@


1.18
log
@Add prefix "${PROG}-" to filename of automatically created list of
ioctl names. This makes sure that each program is built with its own
copy even if object directories are not used. This avoids build
failures when two or more make jobs are used in parallel.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2003/10/21 10:01:22 lukem Exp $
d13 1
@


1.17
log
@Rework how MAKEVERBOSE operates:

    *	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2003/10/19 04:25:18 lukem Exp $
d8 1
a8 1
SRCS=		ktrace.c dump.c subr.c ioctl.c misc.c setemul.c
d11 1
a11 1
CLEANFILES+=	misc.c misc.h ioctl.c
a26 3
# XXX It looks like .NOTPARALLEL doesn't work.
.NOTPARALLEL:

@


1.16
log
@support MAKEVERBOSE and use ${HOST_SH}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2003/02/11 10:43:29 drochner Exp $
d21 1
a21 2
	${_MKMSGCREATE}
	${_MKCMD}\
@


1.15
log
@fix typo in comment
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2002/09/19 11:31:22 lukem Exp $
d21 4
a24 1
	CPP=${CPP:Q} CPPFLAGS=${CPPFLAGS:Q} sh ${.CURDIR}/makeerrnos.sh \
@


1.14
log
@use NETBSDSRCDIR as appropriate
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2002/09/18 14:00:38 lukem Exp $
d25 1
a25 1
# XXX It looks like .NOTPARALLEL doesn't works.
@


1.13
log
@makefile delint. use NETBSDSRCDIR as appropriate
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2002/08/27 14:46:18 lukem Exp $
d5 1
a5 1
.include <bsd.own.mk>		# for MKDYNAMICROOT definition
d9 2
a10 2
CPPFLAGS+=	-I. -I${.CURDIR}/../ktrace -I${NETBSDSRCDIR}/sys \
		-I${.CURDIR}/../kdump -DKTRUSS
d28 1
a28 1
.include "${.CURDIR}/../kdump/Makefile.ioctl-c"
d31 1
a31 1
.PATH: ${.CURDIR}/../ktrace ${.CURDIR}/../kdump
@


1.12
log
@Implement MKDYNAMICROOT, which currently defaults to "no", but will
be changed in the future to "yes".

If MKDYNAMICROOT == "no", there is no change from existing behaviour
of a static /bin and /sbin (and a few programs in elsewhere).

If MKDYNAMICROOT == "yes", the following changes occur:
    in <bsd.own.mk>:
	SHLIBDIR?=     /lib
	SHLINKDIR?=	/lib
    in various Makefiles, the following entry is DISABLED.
	LDSTATIC?=-static
This results in all programs (except those "standalone" programs built
in sys/arch/*/stand) are linked dynamically, the shared linker is moved
from /usr/libexec to /lib (with a compat symlink), and the shared
libraries used by /bin and /sbin programs are moved from /usr/lib to
/lib (with compat symlinks).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2001/12/02 08:41:14 jmc Exp $
d9 1
a9 1
CPPFLAGS+=	-I. -I${.CURDIR}/../ktrace -I${.CURDIR}/../../sys \
@


1.11
log
@Force makeerrnos.sh to be run with sh instead of depending on it being
executable
@
text
@d1 5
a5 1
#	$NetBSD: Makefile,v 1.10 2001/01/16 02:46:25 cgd Exp $
a10 1
LDSTATIC?=-static
a11 1
MAN=
d13 5
@


1.10
log
@Pass CPP and CPPFLAGS to makerrnos.sh, and use them.  Default to cpp and
empty, respectively, if not provided.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2001/01/11 14:25:27 enami Exp $
d14 1
a14 1
	CPP=${CPP:Q} CPPFLAGS=${CPPFLAGS:Q} ${.CURDIR}/makeerrnos.sh \
@


1.9
log
@Add dummy dependency so that parallel make won't to make misc.c and misc.h
at the same time.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2000/12/30 14:54:40 sommerfeld Exp $
d14 1
a14 1
	${.CURDIR}/makeerrnos.sh \
@


1.8
log
@Let src/usr.bin build with recursive parallel make..
 - add .WAIT and .NOTPARALLEL in a few places
 - change ${MAKE} print-objdir to ${PRINTOBJDIR}
 - convert other ad-hoc forms to use ${PRINTOBJDIR}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2000/11/14 00:10:17 jdolecek Exp $
d11 2
a12 2
dump.c: misc.h
misc.c misc.h: ${DESTDIR}/usr/include/sys/errno.h \
d18 1
@


1.7
log
@back out previous change - this needs to be discussed first at least
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2000/11/13 21:48:34 jdolecek Exp $
d17 2
@


1.6
log
@don't link these static; if shared libraries are hosed, these utilities would
surely not save the situation, not help to recover from it
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2000/10/11 14:46:05 is Exp $
d7 1
@


1.5
log
@More format string cleanup by sommerfeld.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2000/04/10 09:42:37 jdolecek Exp $
a6 1
LDSTATIC?=	-static
@


1.4
log
@Convert to use setemul() stuff from kdump. This also fixes mapping to
syscalls names in dump when programs of different emulations are executed.

While here, convert to malloc/realloc power of 2 quantities.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 1999/07/28 01:56:06 enami Exp $
d10 1
a10 1

@


1.4.4.1
log
@Pullup usr.bin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2000/10/11 14:46:05 is Exp $
d10 1
a10 1
WFORMAT=1
@


1.3
log
@- remove duplicated setting for LDSTATIC in ktruss/Makefile.
- fix command name in SYNOPSIS section of man page.
- link ktrace man page to ktruss man page.
- add executable and man page for ktruss in distrib sets.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 1999/07/12 04:13:34 mrg Exp $
d4 3
a6 2
SRCS=		ktrace.c dump.c subr.c ioctl.c misc.c
CPPFLAGS+=	-I. -I${.CURDIR}/../ktrace -I${.CURDIR}/../../sys -DKTRUSS
@


1.2
log
@- build with obj dirs.
- use .PATH not broken links
- share the make fragment to build "ioctl.c"
- general clean up, RCSID, etc.

this is all happy now AFAICT.
@
text
@d1 1
a1 1
#	$NetBSD$
a4 1
LDSTATIC?=	-static
@


1.1
log
@import Makefile and dump.c required for building ktruss.
@
text
@d1 1
a1 2
#	from: @@(#)Makefile	8.1 (Berkeley) 6/6/93
#	$Id: Makefile,v 1.4 1994/12/06 14:54:50 deraadt Exp $
d3 6
a9 24
LDSTATIC?=-static
PROG=	ktruss
CFLAGS+=-g -I${.CURDIR}/../ktrace -I/sys -DKTRUSS
SRCS=	ktrace.c dump.c subr.c ioctl.c misc.c
CLEANFILES+=misc.c misc.h ktrace.c subr.c ioctl.c

ktruss: links

links: ktrace.c subr.c ioctl.c

ktrace.c: ../ktrace/ktrace.c
	rm -f ktrace.c
	ln -s ../ktrace/ktrace.c .

subr.c: ../ktrace/subr.c
	rm -f subr.c
	ln -s ../ktrace/subr.c .

ioctl.c: ../kdump/ioctl.c
	rm -f ioctl.c
	ln -s ../kdump/ioctl.c .

../kdump/ioctl.c: ../kdump/mkioctls
	(cd ../kdump; make ioctl.c )
d12 5
d18 2
a19 2
misc.c: /usr/include/sys/errno.h /usr/include/sys/signal.h
	./makeerrnos
d21 1
a21 4
misc.h: /usr/include/sys/errno.h /usr/include/sys/signal.h
	./makeerrnos

.include <bsd.prog.mk>
@

