head	1.31;
access;
symbols
	RELENG_8_4:1.31.0.2
	RELENG_9_1_0_RELEASE:1.28.2.2.2.2
	RELENG_9_1:1.28.2.2.0.2
	RELENG_9_1_BP:1.28.2.2
	RELENG_8_3_0_RELEASE:1.25.2.1.8.1
	RELENG_8_3:1.25.2.1.0.8
	RELENG_8_3_BP:1.25.2.1
	RELENG_9_0_0_RELEASE:1.28.2.1.2.1
	RELENG_9_0:1.28.2.1.0.2
	RELENG_9_0_BP:1.28.2.1
	RELENG_9:1.28.0.2
	RELENG_9_BP:1.28
	RELENG_7_4_0_RELEASE:1.22.2.1.8.1
	RELENG_8_2_0_RELEASE:1.25.2.1.6.1
	RELENG_7_4:1.22.2.1.0.8
	RELENG_7_4_BP:1.22.2.1
	RELENG_8_2:1.25.2.1.0.6
	RELENG_8_2_BP:1.25.2.1
	RELENG_8_1_0_RELEASE:1.25.2.1.4.1
	RELENG_8_1:1.25.2.1.0.4
	RELENG_8_1_BP:1.25.2.1
	RELENG_7_3_0_RELEASE:1.22.2.1.6.1
	RELENG_7_3:1.22.2.1.0.6
	RELENG_7_3_BP:1.22.2.1
	RELENG_8_0_0_RELEASE:1.25.2.1.2.1
	RELENG_8_0:1.25.2.1.0.2
	RELENG_8_0_BP:1.25.2.1
	RELENG_8:1.25.0.2
	RELENG_8_BP:1.25
	RELENG_7_2_0_RELEASE:1.22.2.1.4.1
	RELENG_7_2:1.22.2.1.0.4
	RELENG_7_2_BP:1.22.2.1
	RELENG_7_1_0_RELEASE:1.22.2.1.2.1
	RELENG_6_4_0_RELEASE:1.21.2.1.2.1
	RELENG_7_1:1.22.2.1.0.2
	RELENG_7_1_BP:1.22.2.1
	RELENG_6_4:1.21.2.1.0.2
	RELENG_6_4_BP:1.21.2.1
	RELENG_7_0_0_RELEASE:1.22
	RELENG_6_3_0_RELEASE:1.21
	RELENG_7_0:1.22.0.4
	RELENG_7_0_BP:1.22
	RELENG_6_3:1.21.0.10
	RELENG_6_3_BP:1.21
	RELENG_7:1.22.0.2
	RELENG_7_BP:1.22
	RELENG_6_2_0_RELEASE:1.21
	RELENG_6_2:1.21.0.8
	RELENG_6_2_BP:1.21
	RELENG_5_5_0_RELEASE:1.20.2.1
	RELENG_5_5:1.20.2.1.0.4
	RELENG_5_5_BP:1.20.2.1
	RELENG_6_1_0_RELEASE:1.21
	RELENG_6_1:1.21.0.6
	RELENG_6_1_BP:1.21
	RELENG_6_0_0_RELEASE:1.21
	RELENG_6_0:1.21.0.4
	RELENG_6_0_BP:1.21
	RELENG_6:1.21.0.2
	RELENG_6_BP:1.21
	RELENG_5_4_0_RELEASE:1.20.2.1
	RELENG_5_4:1.20.2.1.0.2
	RELENG_5_4_BP:1.20.2.1
	RELENG_4_11_0_RELEASE:1.10.2.2
	RELENG_4_11:1.10.2.2.0.10
	RELENG_4_11_BP:1.10.2.2
	RELENG_5_3_0_RELEASE:1.20
	RELENG_5_3:1.20.0.4
	RELENG_5_3_BP:1.20
	RELENG_5:1.20.0.2
	RELENG_5_BP:1.20
	RELENG_4_10_0_RELEASE:1.10.2.2
	RELENG_4_10:1.10.2.2.0.8
	RELENG_4_10_BP:1.10.2.2
	RELENG_5_2_1_RELEASE:1.19
	RELENG_5_2_0_RELEASE:1.19
	RELENG_5_2:1.19.0.2
	RELENG_5_2_BP:1.19
	RELENG_4_9_0_RELEASE:1.10.2.2
	RELENG_4_9:1.10.2.2.0.6
	RELENG_4_9_BP:1.10.2.2
	RELENG_5_1_0_RELEASE:1.18
	RELENG_5_1:1.18.0.2
	RELENG_5_1_BP:1.18
	RELENG_4_8_0_RELEASE:1.10.2.2
	RELENG_4_8:1.10.2.2.0.4
	RELENG_4_8_BP:1.10.2.2
	RELENG_5_0_0_RELEASE:1.17
	RELENG_5_0:1.17.0.2
	RELENG_5_0_BP:1.17
	RELENG_4_7_0_RELEASE:1.10.2.2
	RELENG_4_7:1.10.2.2.0.2
	RELENG_4_7_BP:1.10.2.2
	RELENG_4_6_2_RELEASE:1.10.2.1
	RELENG_4_6_1_RELEASE:1.10.2.1
	RELENG_4_6_0_RELEASE:1.10.2.1
	RELENG_4_6:1.10.2.1.0.4
	RELENG_4_6_BP:1.10.2.1
	RELENG_4_5_0_RELEASE:1.10.2.1
	RELENG_4_5:1.10.2.1.0.2
	RELENG_4_5_BP:1.10.2.1
	RELENG_4_4_0_RELEASE:1.10
	RELENG_4_4:1.10.0.6
	RELENG_4_4_BP:1.10
	RELENG_4_3_0_RELEASE:1.10
	RELENG_4_3:1.10.0.4
	RELENG_4_3_BP:1.10
	RELENG_4_2_0_RELEASE:1.10
	RELENG_4_1_1_RELEASE:1.10
	PRE_SMPNG:1.11
	RELENG_4_1_0_RELEASE:1.10
	RELENG_3_5_0_RELEASE:1.8
	RELENG_4_0_0_RELEASE:1.10
	RELENG_4:1.10.0.2
	RELENG_4_BP:1.10
	RELENG_3_4_0_RELEASE:1.8
	RELENG_3_3_0_RELEASE:1.8
	RELENG_3_2_PAO:1.8.0.4
	RELENG_3_2_PAO_BP:1.8
	RELENG_3_2_0_RELEASE:1.8
	RELENG_3_1_0_RELEASE:1.8
	RELENG_3:1.8.0.2
	RELENG_3_BP:1.8
	RELENG_3_0_0_RELEASE:1.8;
locks; strict;
comment	@# @;


1.31
date	2012.11.17.01.54.32;	author svnexp;	state Exp;
branches
	1.31.2.1;
next	1.30;

1.30
date	2012.04.09.15.34.22;	author dim;	state Exp;
branches;
next	1.29;

1.29
date	2011.10.21.11.08.25;	author des;	state Exp;
branches;
next	1.28;

1.28
date	2010.08.28.15.04.53;	author nwhitehorn;	state Exp;
branches
	1.28.2.1;
next	1.27;

1.27
date	2010.08.23.22.24.11;	author imp;	state Exp;
branches;
next	1.26;

1.26
date	2010.01.02.10.27.05;	author ed;	state Exp;
branches;
next	1.25;

1.25
date	2008.05.16.15.34.06;	author jhb;	state Exp;
branches
	1.25.2.1;
next	1.24;

1.24
date	2008.02.05.08.52.36;	author des;	state Exp;
branches;
next	1.23;

1.23
date	2008.02.03.11.34.56;	author des;	state Exp;
branches;
next	1.22;

1.22
date	2007.04.10.04.03.34;	author delphij;	state Exp;
branches
	1.22.2.1;
next	1.21;

1.21
date	2004.10.24.15.33.00;	author ru;	state Exp;
branches
	1.21.2.1;
next	1.20;

1.20
date	2004.03.23.09.04.06;	author alfred;	state Exp;
branches
	1.20.2.1;
next	1.19;

1.19
date	2003.06.06.05.38.09;	author marcel;	state Exp;
branches;
next	1.18;

1.18
date	2003.02.20.15.09.52;	author ru;	state Exp;
branches;
next	1.17;

1.17
date	2002.08.04.17.57.01;	author jake;	state Exp;
branches;
next	1.16;

1.16
date	2002.04.11.14.49.32;	author ru;	state Exp;
branches;
next	1.15;

1.15
date	2002.02.08.23.07.35;	author markm;	state Exp;
branches;
next	1.14;

1.14
date	2001.12.11.23.34.02;	author markm;	state Exp;
branches;
next	1.13;

1.13
date	2000.09.14.18.53.08;	author jkh;	state Exp;
branches;
next	1.12;

1.12
date	2000.09.14.06.20.19;	author jkh;	state Exp;
branches;
next	1.11;

1.11
date	2000.08.01.10.21.13;	author ru;	state Exp;
branches;
next	1.10;

1.10
date	99.12.03.17.35.34;	author marcel;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	99.11.14.13.54.44;	author marcel;	state Exp;
branches;
next	1.8;

1.8
date	98.10.07.13.46.09;	author kato;	state Exp;
branches;
next	1.7;

1.7
date	98.10.03.00.43.05;	author sef;	state Exp;
branches;
next	1.6;

1.6
date	98.01.09.09.31.38;	author sef;	state Exp;
branches;
next	1.5;

1.5
date	98.01.09.00.39.04;	author sef;	state Exp;
branches;
next	1.4;

1.4
date	98.01.09.00.22.50;	author sef;	state Exp;
branches;
next	1.3;

1.3
date	98.01.07.06.19.49;	author jmg;	state Exp;
branches;
next	1.2;

1.2
date	97.12.06.06.51.13;	author sef;	state Exp;
branches;
next	1.1;

1.1
date	97.12.06.05.22.46;	author sef;	state Exp;
branches;
next	;

1.31.2.1
date	2012.11.17.01.54.32;	author svnexp;	state dead;
branches;
next	1.31.2.2;

1.31.2.2
date	2013.03.28.13.06.10;	author svnexp;	state Exp;
branches;
next	;

1.28.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.28.2.1.2.1;
next	1.28.2.2;

1.28.2.2
date	2012.04.18.20.32.07;	author dim;	state Exp;
branches
	1.28.2.2.2.1;
next	1.28.2.3;

1.28.2.3
date	2012.11.17.11.37.41;	author svnexp;	state Exp;
branches;
next	1.28.2.4;

1.28.2.4
date	2013.11.21.21.01.52;	author svnexp;	state Exp;
branches;
next	;

1.28.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.28.2.1.2.2;

1.28.2.1.2.2
date	2012.11.17.08.37.37;	author svnexp;	state Exp;
branches;
next	;

1.28.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.28.2.2.2.2;

1.28.2.2.2.2
date	2012.11.17.08.48.29;	author svnexp;	state Exp;
branches;
next	;

1.25.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.25.2.1.2.1
	1.25.2.1.4.1
	1.25.2.1.6.1
	1.25.2.1.8.1;
next	1.25.2.2;

1.25.2.2
date	2012.11.17.10.37.19;	author svnexp;	state Exp;
branches;
next	;

1.25.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.25.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.25.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.25.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.25.2.1.8.2;

1.25.2.1.8.2
date	2012.11.17.08.25.52;	author svnexp;	state Exp;
branches;
next	;

1.22.2.1
date	2008.05.23.20.04.20;	author jhb;	state Exp;
branches
	1.22.2.1.2.1
	1.22.2.1.4.1
	1.22.2.1.6.1
	1.22.2.1.8.1;
next	1.22.2.2;

1.22.2.2
date	2012.11.17.08.08.46;	author svnexp;	state Exp;
branches;
next	;

1.22.2.1.2.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.22.2.1.4.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.22.2.1.6.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.22.2.1.8.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.22.2.1.8.2;

1.22.2.1.8.2
date	2012.11.17.08.17.44;	author svnexp;	state Exp;
branches;
next	;

1.21.2.1
date	2008.05.23.20.04.55;	author jhb;	state Exp;
branches
	1.21.2.1.2.1;
next	1.21.2.2;

1.21.2.2
date	2012.11.17.07.45.59;	author svnexp;	state Exp;
branches;
next	;

1.21.2.1.2.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.20.2.1
date	2005.02.13.07.23.39;	author obrien;	state Exp;
branches;
next	;

1.10.2.1
date	2001.10.29.20.12.56;	author des;	state Exp;
branches;
next	1.10.2.2;

1.10.2.2
date	2002.07.23.09.18.30;	author ru;	state Exp;
branches;
next	1.10.2.3;

1.10.2.3
date	2012.11.17.07.27.53;	author svnexp;	state Exp;
branches;
next	;


desc
@@


1.31
log
@Switching exporter and resync
@
text
@# $FreeBSD: head/usr.bin/truss/Makefile 234060 2012-04-09 15:34:22Z dim $

NO_WERROR=
PROG=	truss
SRCS=	main.c setup.c syscalls.c syscalls.h ioctl.c

.if exists(${.CURDIR}/${MACHINE_ARCH}-fbsd.c)
SRCS+= ${MACHINE_ARCH}-fbsd.c
.else
SRCS+= ${MACHINE_CPUARCH}-fbsd.c
.endif

CFLAGS+= -I${.CURDIR} -I.
CLEANFILES= syscalls.master syscalls.h ioctl.c

.SUFFIXES: .master

syscalls.master:	${.CURDIR}/../../sys/kern/syscalls.master
	cat ${.ALLSRC} > syscalls.master

syscalls.h:	syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
		${.CURDIR}/i386.conf

ioctl.c: ${.CURDIR}/../kdump/mkioctls
	env MACHINE=${MACHINE} CPP="${CPP}" \
		/bin/sh ${.CURDIR}/../kdump/mkioctls return ${DESTDIR}/usr/include > ${.TARGET}

.if ${MACHINE_CPUARCH} == "i386"
SRCS+=	i386-linux.c linux_syscalls.h
CLEANFILES+=i386l-syscalls.master linux_syscalls.h

i386l-syscalls.master:	${.CURDIR}/../../sys/i386/linux/syscalls.master
	cat ${.ALLSRC} > ${.TARGET}

linux_syscalls.h:	i386l-syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
		${.CURDIR}/i386linux.conf
.endif

.if ${MACHINE_CPUARCH} == "amd64"
SRCS+=	amd64-linux32.c linux32_syscalls.h
CLEANFILES+=amd64l32-syscalls.master linux32_syscalls.h

amd64l32-syscalls.master: ${.CURDIR}/../../sys/amd64/linux32/syscalls.master
	cat ${.ALLSRC} > ${.TARGET}

linux32_syscalls.h:	amd64l32-syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
		${.CURDIR}/amd64linux32.conf

SRCS+=	amd64-fbsd32.c freebsd32_syscalls.h
CLEANFILES+=fbsd32-syscalls.master freebsd32_syscalls.h

fbsd32-syscalls.master: ${.CURDIR}/../../sys/compat/freebsd32/syscalls.master
	cat ${.ALLSRC} > ${.TARGET}

freebsd32_syscalls.h:	fbsd32-syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
		${.CURDIR}/fbsd32.conf
.endif

.if ${MACHINE_ARCH} == "powerpc64"
SRCS+=	powerpc-fbsd.c freebsd32_syscalls.h
CLEANFILES+=fbsd32-syscalls.master freebsd32_syscalls.h

fbsd32-syscalls.master: ${.CURDIR}/../../sys/compat/freebsd32/syscalls.master
	cat ${.ALLSRC} > ${.TARGET}

freebsd32_syscalls.h:	fbsd32-syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
		${.CURDIR}/fbsd32.conf
.endif

.include <bsd.prog.mk>
@


1.31.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:06:10 +0000
@
text
@d1 75
@


1.31.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 57
# $FreeBSD: releng/8.4/usr.bin/truss/Makefile 179051 2008-05-16 15:34:06Z jhb $

WARNS?= 6
NO_WERROR=
PROG=	truss
SRCS=	main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_ARCH}-fbsd.c

CFLAGS+= -I${.CURDIR} -I.
CLEANFILES= syscalls.master syscalls.h ioctl.c

.SUFFIXES: .master

syscalls.master:	${.CURDIR}/../../sys/kern/syscalls.master
	cat ${.ALLSRC} > syscalls.master

syscalls.h:	syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
		${.CURDIR}/i386.conf

ioctl.c: ${.CURDIR}/../kdump/mkioctls
	sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}

.if ${MACHINE_ARCH} == "i386"
SRCS+=	i386-linux.c linux_syscalls.h
CLEANFILES+=i386l-syscalls.master linux_syscalls.h

i386l-syscalls.master:	${.CURDIR}/../../sys/i386/linux/syscalls.master
	cat ${.ALLSRC} > ${.TARGET}

linux_syscalls.h:	i386l-syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
		${.CURDIR}/i386linux.conf
.endif

.if ${MACHINE_ARCH} == "amd64"
SRCS+=	amd64-linux32.c linux32_syscalls.h
CLEANFILES+=amd64l32-syscalls.master linux32_syscalls.h

amd64l32-syscalls.master: ${.CURDIR}/../../sys/amd64/linux32/syscalls.master
	cat ${.ALLSRC} > ${.TARGET}

linux32_syscalls.h:	amd64l32-syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
		${.CURDIR}/amd64linux32.conf

SRCS+=	amd64-fbsd32.c freebsd32_syscalls.h
CLEANFILES+=fbsd32-syscalls.master freebsd32_syscalls.h

fbsd32-syscalls.master: ${.CURDIR}/../../sys/compat/freebsd32/syscalls.master
	cat ${.ALLSRC} > ${.TARGET}

freebsd32_syscalls.h:	fbsd32-syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
		${.CURDIR}/fbsd32.conf
.endif

.include <bsd.prog.mk>
@


1.30
log
@SVN rev 234060 on 2012-04-09 15:34:22Z by dim

Since truss also uses kdump's mkioctls script, pass the value of ${CPP}
there too, similar to r234058.

MFC after:	1 week
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.29
log
@SVN rev 226608 on 2011-10-21 11:08:25Z by des

It turns out that truss also used kdump's mkioctls script, and expected
ioctlname() to return a pointer to the name rather than print it.  This did
not show up in testing because truss had its own prototype for ioctlname(),
so it would build fine and run fine as long as the program being traced did
not issue an ioctl.

Teach mkioctls to generate different versions of ioctlname() based on its
first command-line argument.

Pointed out by:	Garrett Cooper <yanegomi@@gmail.com>
@
text
@d26 1
a26 1
	env MACHINE=${MACHINE} \
@


1.28
log
@SVN rev 211935 on 2010-08-28 15:04:53Z by nwhitehorn

Fix breakage introduced in r211725 and improve functionality of truss on
64-bit powerpc by adding 32-bit compatibility features.
@
text
@d26 2
a27 1
	sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
@


1.28.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.28.2.2
log
@SVN rev 234444 on 2012-04-18 20:32:07Z by dim

MFC r234058:
  In kdump's mkioctls script, use '${CPP}' instead of hardcodedly using
  'gcc -E'.  This fixes building when WITH_CLANG_IS_CC is in effect.

  Report by:	Niclas Zeising <zeising@@daemonic.se>

MFC r234060:
  Since truss also uses kdump's mkioctls script, pass the value of ${CPP}
  there too, similar to r234058.
@
text
@d26 1
a26 2
	env CPP="${CPP}" \
	    sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
@


1.28.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/usr.bin/truss/Makefile 234444 2012-04-18 20:32:07Z dim $
@


1.28.2.4
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/258442
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/usr.bin/truss/Makefile 258442 2013-11-21 20:09:44Z jhb $
d26 2
a27 2
	env MACHINE=${MACHINE} CPP="${CPP}" \
		/bin/sh ${.CURDIR}/../kdump/mkioctls return ${DESTDIR}/usr/include > ${.TARGET}
@


1.28.2.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.28.2.2.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/usr.bin/truss/Makefile 234444 2012-04-18 20:32:07Z dim $
@


1.28.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.28.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/usr.bin/truss/Makefile 211935 2010-08-28 15:04:53Z nwhitehorn $
@


1.27
log
@SVN rev 211725 on 2010-08-23 22:24:11Z by imp

MFtbemd:

Prefer MACHNE_CPUARCH to MACHINE_ARCH in most contexts where you want
to test of all the CPUs of a given family conform.
@
text
@d5 7
a11 1
SRCS=	main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_CPUARCH}-fbsd.c
d62 12
@


1.26
log
@SVN rev 201386 on 2010-01-02 10:27:05Z by ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.
@
text
@d5 1
a5 1
SRCS=	main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_ARCH}-fbsd.c
d22 1
a22 1
.if ${MACHINE_ARCH} == "i386"
d34 1
a34 1
.if ${MACHINE_ARCH} == "amd64"
@


1.25
log
@Teach truss about 32-bit FreeBSD and Linux binaries on amd64.  Some
additional work is needed to handle ABI-specific syscall argument parsing,
but this gets the basic tracing working.

MFC after:	1 week
@
text
@a2 1
WARNS?= 6
@


1.25.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.25.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/usr.bin/truss/Makefile 179051 2008-05-16 15:34:06Z jhb $
@


1.25.2.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.25.2.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/usr.bin/truss/Makefile 179051 2008-05-16 15:34:06Z jhb $
@


1.25.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.25.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.25.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.24
log
@Revert CLEANDEPFILES commit per ru@@'s request; it does not really solve
the problem.  The correct fix will follow.
@
text
@a6 3
.if ${MACHINE_ARCH} == "i386"
SRCS+=	i386-linux.c linux_syscalls.h
.endif
d9 1
a9 2
CLEANFILES=i386l-syscalls.master syscalls.master linux_syscalls.h \
	syscalls.h ioctl.c
a12 7
i386l-syscalls.master:	${.CURDIR}/../../sys/i386/linux/syscalls.master
	cat ${.ALLSRC} > i386l-syscalls.master

linux_syscalls.h:	i386l-syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh i386l-syscalls.master \
		${.CURDIR}/i386linux.conf

d23 34
@


1.23
log
@Normally, when a header file is removed from the build (as i4b headers
were recently), a simple 'make cleandepend; make depend' is sufficient
to keep the tree buildable after a cvs update when doing incremental
builds.

However, kdump and truss use a script which searches for header files
that define ioctls, and generates C code that includes them.  This
script will usually not need updating when a header file is removed,
so the normal dependency mechanism will not realize that it needs to
be re-run.  One is therefore left with code that references dead files
but will only be removed by a full 'make clean', which defeats the
purpose of incremental builds.

To work around this, modify the cleandepend target in bsd.dep.mk to
also remove any files listed in a new variable named CLEANDEPFILES,
and modify kdump's and truss's Makefiles accordingly.

MFC after:	2 weeks
@
text
@d12 1
a12 1
CLEANDEPFILES=i386l-syscalls.master syscalls.master linux_syscalls.h \
a13 1
CLEANFILES+=${CLEANDEPFILES}
@


1.22
log
@Make use of ptrace(2) instead of procfs in truss(1), eliminating
yet another need of an available /proc/ mount.

Tested with:	make universe
Submitted by:	howardsu
Reviewed by:	alfred
@
text
@d3 1
a3 1
WARNS?= 6	
d12 1
a12 1
CLEANFILES+=i386l-syscalls.master syscalls.master linux_syscalls.h \
d14 1
@


1.22.2.1
log
@MFC: Teach truss about 32-bit FreeBSD and Linux binaries on amd64.
@
text
@d7 3
d12 2
a13 1
CLEANFILES= syscalls.master syscalls.h ioctl.c
d17 7
a33 34
.if ${MACHINE_ARCH} == "i386"
SRCS+=	i386-linux.c linux_syscalls.h
CLEANFILES+=i386l-syscalls.master linux_syscalls.h

i386l-syscalls.master:	${.CURDIR}/../../sys/i386/linux/syscalls.master
	cat ${.ALLSRC} > ${.TARGET}

linux_syscalls.h:	i386l-syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
		${.CURDIR}/i386linux.conf
.endif

.if ${MACHINE_ARCH} == "amd64"
SRCS+=	amd64-linux32.c linux32_syscalls.h
CLEANFILES+=amd64l32-syscalls.master linux32_syscalls.h

amd64l32-syscalls.master: ${.CURDIR}/../../sys/amd64/linux32/syscalls.master
	cat ${.ALLSRC} > ${.TARGET}

linux32_syscalls.h:	amd64l32-syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
		${.CURDIR}/amd64linux32.conf

SRCS+=	amd64-fbsd32.c freebsd32_syscalls.h
CLEANFILES+=fbsd32-syscalls.master freebsd32_syscalls.h

fbsd32-syscalls.master: ${.CURDIR}/../../sys/compat/freebsd32/syscalls.master
	cat ${.ALLSRC} > ${.TARGET}

freebsd32_syscalls.h:	fbsd32-syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
		${.CURDIR}/fbsd32.conf
.endif

@


1.22.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/usr.bin/truss/Makefile 179257 2008-05-23 20:04:55Z jhb $
@


1.22.2.1.8.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.22.2.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/usr.bin/truss/Makefile 179257 2008-05-23 20:04:55Z jhb $
@


1.22.2.1.6.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.22.2.1.4.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.22.2.1.2.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.21
log
@For variables that are only checked with defined(), don't provide
any fake value.
@
text
@d3 1
a3 1
WARNS?=	2
@


1.21.2.1
log
@MFC: Teach truss about 32-bit FreeBSD and Linux binaries on amd64.
@
text
@d7 3
d12 2
a13 1
CLEANFILES= syscalls.master syscalls.h ioctl.c
d17 7
a33 34
.if ${MACHINE_ARCH} == "i386"
SRCS+=	i386-linux.c linux_syscalls.h
CLEANFILES+=i386l-syscalls.master linux_syscalls.h

i386l-syscalls.master:	${.CURDIR}/../../sys/i386/linux/syscalls.master
	cat ${.ALLSRC} > ${.TARGET}

linux_syscalls.h:	i386l-syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
		${.CURDIR}/i386linux.conf
.endif

.if ${MACHINE_ARCH} == "amd64"
SRCS+=	amd64-linux32.c linux32_syscalls.h
CLEANFILES+=amd64l32-syscalls.master linux32_syscalls.h

amd64l32-syscalls.master: ${.CURDIR}/../../sys/amd64/linux32/syscalls.master
	cat ${.ALLSRC} > ${.TARGET}

linux32_syscalls.h:	amd64l32-syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
		${.CURDIR}/amd64linux32.conf

SRCS+=	amd64-fbsd32.c freebsd32_syscalls.h
CLEANFILES+=fbsd32-syscalls.master freebsd32_syscalls.h

fbsd32-syscalls.master: ${.CURDIR}/../../sys/compat/freebsd32/syscalls.master
	cat ${.ALLSRC} > ${.TARGET}

freebsd32_syscalls.h:	fbsd32-syscalls.master
	/bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
		${.CURDIR}/fbsd32.conf
.endif

@


1.21.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/usr.bin/truss/Makefile 179257 2008-05-23 20:04:55Z jhb $
@


1.21.2.1.2.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.20
log
@decode fcntl and mmap arguments.
@
text
@d4 1
a4 1
NO_WERROR=	yes
@


1.20.2.1
log
@MFC: For variables that are only checked with defined(), don't provide
     any fake value.
@
text
@d4 1
a4 1
NO_WERROR=
@


1.19
log
@Use cat(1) instead of cp(1) so as not to break -DNOCLEAN builds
when the file permissions of source files don't allow writing.
@
text
@d3 2
@


1.18
log
@Removed extra parentheses.
@
text
@d16 1
a16 1
	cp ${.ALLSRC} i386l-syscalls.master
d23 1
a23 1
	cp ${.ALLSRC} syscalls.master
@


1.17
log
@Ported to sparc64.
@
text
@d5 1
a5 1
.if (${MACHINE_ARCH} == "i386")
@


1.16
log
@I now don't seem to be able to reproduce the -DNOCLEAN buildworld
breakage with ioctl.c.  The .depend file should track dependencies
just fine, and the worst we can have is to miss new ioctls.

But I still think it's a good idea to have -DNOCLEAN build produce
the same ioctl.c as it would without -DNOCLEAN.

Prodded for a long time by:	bde
@
text
@d4 3
a6 5
SRCS=	main.c setup.c syscalls.c syscalls.h ioctl.c
.if (${MACHINE_ARCH} == "alpha")
SRCS+=	alpha-fbsd.c
.elif (${MACHINE_ARCH} == "i386")
SRCS+=	i386-fbsd.c i386-linux.c linux_syscalls.h
@


1.15
log
@Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3.
@
text
@d31 1
a31 5
.if make(depend)
ioctl.c:	.PHONY
.else
ioctl.c:	${.CURDIR}/../kdump/mkioctls
.endif
@


1.14
log
@Partial WARNS=1 fizes with NO_WERROR set to prevent world breakage.
Use __FBSDID().
@
text
@a10 3
WARNS?=	1
NO_WERROR=yes

@


1.13
log
@cc -O -pipe -I/usr/src/usr.bin/kdump/../ktrace -I/usr/src/usr.bin/kdump/../..   Fix ioctl.c creation to deal with the depend case more properly.

Submitted by:   Ruslan Ermilov <ru@@sunbay.com>
@
text
@d1 1
a1 1
# $FreeBSD: src/usr.bin/truss/Makefile,v 1.12 2000/09/14 06:20:19 jkh Exp $
d10 3
@


1.12
log
@remove .PHONY to avoid gratuitous rebuild of ioctl.c each time.

Approved by:	sef
@
text
@d1 1
a1 1
# $FreeBSD: src/usr.bin/truss/Makefile,v 1.11 2000/08/01 10:21:13 ru Exp $
d31 6
a36 2
ioctl.c:
	sh ${.CURDIR}/../../usr.bin/kdump/mkioctls ${DESTDIR}/usr/include > ioctl.c
@


1.11
log
@Make auto-generated ioctl.c to be always considered out of date
since it could potentially depend on any ${DESTDIR}/usr/include
preprocessor file.  This fixes the broken -DNOCLEAN world build
I experienced yesterday.
@
text
@d1 1
a1 1
# $FreeBSD: src/usr.bin/truss/Makefile,v 1.10 1999/12/03 17:35:34 marcel Exp $
d31 1
a31 1
ioctl.c:	.PHONY
@


1.10
log
@Fix for the new usage of mkioctls
@
text
@d1 1
a1 1
# $FreeBSD: src/usr.bin/truss/Makefile,v 1.9 1999/11/14 13:54:44 marcel Exp $
d31 1
a31 1
ioctl.c:	${.CURDIR}/../../usr.bin/kdump/mkioctls
@


1.10.2.1
log
@MFC: synch with -HEAD (teach truss about struct sockaddr, #include reorg)
@
text
@d1 1
a1 1
# $FreeBSD$
d31 2
a32 6
.if make(depend)
ioctl.c:	.PHONY
.else
ioctl.c:	${.CURDIR}/../kdump/mkioctls
.endif
	sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
@


1.10.2.2
log
@MFC: Replaced .depend generation hacks with a cleaner one.
@
text
@d31 5
a35 1
ioctl.c: ${.CURDIR}/../kdump/mkioctls
@


1.10.2.3
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/usr.bin/truss/Makefile 100561 2002-07-23 09:18:30Z ru $
@


1.9
log
@${MACHINE} -> ${MACHINE_ARCH}

All Makefiles now use MACHINE_ARCH for the target architecture.
Unification is required for cross-building.

Tags added to:
	sys/boot/Makefile
	sys/boot/arc/loader/Makefile
	sys/kern/Makefile
	usr.bin/cpp/Makefile
	usr.bin/gcore/Makefile
	usr.bin/truss/Makefile

usr.bin/gcore/Makefile:
	fixed typo: MACHINDE -> MACHINE_ARCH
@
text
@d1 1
a1 1
# $FreeBSD$
d32 1
a32 1
	/bin/sh ${.CURDIR}/../../usr.bin/kdump/mkioctls > ioctl.c
@


1.8
log
@Use MACHINE_ARCH instead of MACHINE to detect x86 arch.

Pointed out by:	Akio Morita <amorita@@meadow.scphys.kyoto-u.ac.jp>
@
text
@d1 2
d5 1
a5 1
.if (${MACHINE} == "alpha")
@


1.7
log
@Alpha support for truss.  I tested this on both bento and beast (thanks,
Jordan, for pointing me at beast!).  There should be no change for the
i386 version.
@
text
@d5 1
a5 1
.elif (${MACHINE} == "i386")
@


1.6
log
@Revert the changes yet again, after some email from Bruce.  Sorry.
@
text
@d2 7
a8 2
SRCS=	main.c setup.c i386-fbsd.c i386-linux.c \
	syscalls.c linux_syscalls.h syscalls.h ioctl.c
@


1.5
log
@Proper way to do the previous mis-commit.  Still not quite right, because
some header files (e.g., <err.h>) include <machine/something.h>, and this
will not pick up the right header files, so it may be removed eventually
anyway.  But some people who are not willing to build the right way
apparantly want this, so this is for them.
@
text
@d4 1
a4 1
CFLAGS+= -I${.CURDIR} -I. -I${.CUDIR}/../../sys
@


1.4
log
@Get rid of the bogus include -- it is incomplete (as it doesn't handle
anything other than <sys/*.h>), and unnecessary in most cases.  (The
situations where it is necesary can be dealt with by manually-made symlinks,
which is acceptable since they should only occur during testing.  Remember:
the tree does not compile well if you do not have matching header files
installed.  Half-baked -I directives don't cover enough of the cases.)
@
text
@d4 1
a4 1
CFLAGS+= -I${.CURDIR} -I.
@


1.3
log
@include sys so it builds on 2.2.x
also, fix misspelling of -1 (as EOF for getopt)
@
text
@d4 1
a4 1
CFLAGS+= -I${.CURDIR} -I. -I${.CURDIR}/../../sys
@


1.2
log
@First cut at printing out ioctl names intelligently.  Note that this doesn't
handle linux ioctls (yet?).  This uses the mkioctl script from kdump,
bless its little heart.

Reviewed by:	Mike Smith
@
text
@d4 1
a4 1
CFLAGS+= -I${.CURDIR} -I.
@


1.1
log
@Truss program.  Requires procfs.
@
text
@d3 1
a3 1
	syscalls.c linux_syscalls.h syscalls.h
d5 2
a6 1
CLEANFILES+=i386l-syscalls.master syscalls.master linux_syscalls.h syscalls.h
d23 3
@
