Makefile revision 211935
153152Smarcel# $FreeBSD: head/usr.bin/truss/Makefile 211935 2010-08-28 15:04:53Z nwhitehorn $ 253152Smarcel 3136910SruNO_WERROR= 431567SsefPROG= truss 5211935SnwhitehornSRCS= main.c setup.c syscalls.c syscalls.h ioctl.c 639908Ssef 7211935Snwhitehorn.if exists(${.CURDIR}/${MACHINE_ARCH}-fbsd.c) 8211935SnwhitehornSRCS+= ${MACHINE_ARCH}-fbsd.c 9211935Snwhitehorn.else 10211935SnwhitehornSRCS+= ${MACHINE_CPUARCH}-fbsd.c 11211935Snwhitehorn.endif 12211935Snwhitehorn 1332367SsefCFLAGS+= -I${.CURDIR} -I. 14179051SjhbCLEANFILES= syscalls.master syscalls.h ioctl.c 1531567Ssef 1631567Ssef.SUFFIXES: .master 1731567Ssef 1831567Ssefsyscalls.master: ${.CURDIR}/../../sys/kern/syscalls.master 19115886Smarcel cat ${.ALLSRC} > syscalls.master 2031567Ssef 2131567Ssefsyscalls.h: syscalls.master 2231567Ssef /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \ 2331567Ssef ${.CURDIR}/i386.conf 2431567Ssef 2594432Sruioctl.c: ${.CURDIR}/../kdump/mkioctls 2665849Sjkh sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET} 2731571Ssef 28211725Simp.if ${MACHINE_CPUARCH} == "i386" 29179051SjhbSRCS+= i386-linux.c linux_syscalls.h 30179051SjhbCLEANFILES+=i386l-syscalls.master linux_syscalls.h 31179051Sjhb 32179051Sjhbi386l-syscalls.master: ${.CURDIR}/../../sys/i386/linux/syscalls.master 33179051Sjhb cat ${.ALLSRC} > ${.TARGET} 34179051Sjhb 35179051Sjhblinux_syscalls.h: i386l-syscalls.master 36179051Sjhb /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \ 37179051Sjhb ${.CURDIR}/i386linux.conf 38179051Sjhb.endif 39179051Sjhb 40211725Simp.if ${MACHINE_CPUARCH} == "amd64" 41179051SjhbSRCS+= amd64-linux32.c linux32_syscalls.h 42179051SjhbCLEANFILES+=amd64l32-syscalls.master linux32_syscalls.h 43179051Sjhb 44179051Sjhbamd64l32-syscalls.master: ${.CURDIR}/../../sys/amd64/linux32/syscalls.master 45179051Sjhb cat ${.ALLSRC} > ${.TARGET} 46179051Sjhb 47179051Sjhblinux32_syscalls.h: amd64l32-syscalls.master 48179051Sjhb /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \ 49179051Sjhb ${.CURDIR}/amd64linux32.conf 50179051Sjhb 51179051SjhbSRCS+= amd64-fbsd32.c freebsd32_syscalls.h 52179051SjhbCLEANFILES+=fbsd32-syscalls.master freebsd32_syscalls.h 53179051Sjhb 54179051Sjhbfbsd32-syscalls.master: ${.CURDIR}/../../sys/compat/freebsd32/syscalls.master 55179051Sjhb cat ${.ALLSRC} > ${.TARGET} 56179051Sjhb 57179051Sjhbfreebsd32_syscalls.h: fbsd32-syscalls.master 58179051Sjhb /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \ 59179051Sjhb ${.CURDIR}/fbsd32.conf 60179051Sjhb.endif 61179051Sjhb 62211935Snwhitehorn.if ${MACHINE_ARCH} == "powerpc64" 63211935SnwhitehornSRCS+= powerpc-fbsd.c freebsd32_syscalls.h 64211935SnwhitehornCLEANFILES+=fbsd32-syscalls.master freebsd32_syscalls.h 65211935Snwhitehorn 66211935Snwhitehornfbsd32-syscalls.master: ${.CURDIR}/../../sys/compat/freebsd32/syscalls.master 67211935Snwhitehorn cat ${.ALLSRC} > ${.TARGET} 68211935Snwhitehorn 69211935Snwhitehornfreebsd32_syscalls.h: fbsd32-syscalls.master 70211935Snwhitehorn /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \ 71211935Snwhitehorn ${.CURDIR}/fbsd32.conf 72211935Snwhitehorn.endif 73211935Snwhitehorn 7431567Ssef.include <bsd.prog.mk> 75