diff options
| author | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2010-08-28 15:04:53 +0000 |
|---|---|---|
| committer | Nathan Whitehorn <nwhitehorn@FreeBSD.org> | 2010-08-28 15:04:53 +0000 |
| commit | 4e5833219ab708ca2c6b6e626ee2079f2edcf9a3 (patch) | |
| tree | 48159755ed56c871fcb86434177d84535c9443f0 /usr.bin/truss/Makefile | |
| parent | b12277d1d4e4c21e5d7c96841948fd0c802ecd1b (diff) | |
Notes
Diffstat (limited to 'usr.bin/truss/Makefile')
| -rw-r--r-- | usr.bin/truss/Makefile | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/usr.bin/truss/Makefile b/usr.bin/truss/Makefile index ca0ce9234a219..f80ac0367ea68 100644 --- a/usr.bin/truss/Makefile +++ b/usr.bin/truss/Makefile @@ -2,7 +2,13 @@ NO_WERROR= PROG= truss -SRCS= main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_CPUARCH}-fbsd.c +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 @@ -53,4 +59,16 @@ freebsd32_syscalls.h: fbsd32-syscalls.master ${.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> |
