5 SRCS= main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_ARCH}-fbsd.c
7 CFLAGS+= -I${.CURDIR} -I.
8 CLEANFILES= syscalls.master syscalls.h ioctl.c
12 syscalls.master: ${.CURDIR}/../../sys/kern/syscalls.master
13 cat ${.ALLSRC} > syscalls.master
15 syscalls.h: syscalls.master
16 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
19 ioctl.c: ${.CURDIR}/../kdump/mkioctls
20 sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
22 .if ${MACHINE_ARCH} == "i386"
23 SRCS+= i386-linux.c linux_syscalls.h
24 CLEANFILES+=i386l-syscalls.master linux_syscalls.h
26 i386l-syscalls.master: ${.CURDIR}/../../sys/i386/linux/syscalls.master
27 cat ${.ALLSRC} > ${.TARGET}
29 linux_syscalls.h: i386l-syscalls.master
30 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
31 ${.CURDIR}/i386linux.conf
34 .if ${MACHINE_ARCH} == "amd64"
35 SRCS+= amd64-linux32.c linux32_syscalls.h
36 CLEANFILES+=amd64l32-syscalls.master linux32_syscalls.h
38 amd64l32-syscalls.master: ${.CURDIR}/../../sys/amd64/linux32/syscalls.master
39 cat ${.ALLSRC} > ${.TARGET}
41 linux32_syscalls.h: amd64l32-syscalls.master
42 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
43 ${.CURDIR}/amd64linux32.conf
45 SRCS+= amd64-fbsd32.c freebsd32_syscalls.h
46 CLEANFILES+=fbsd32-syscalls.master freebsd32_syscalls.h
48 fbsd32-syscalls.master: ${.CURDIR}/../../sys/compat/freebsd32/syscalls.master
49 cat ${.ALLSRC} > ${.TARGET}
51 freebsd32_syscalls.h: fbsd32-syscalls.master
52 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh ${.ALLSRC} \
53 ${.CURDIR}/fbsd32.conf
56 .include <bsd.prog.mk>