4 SRCS= main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_ARCH}-fbsd.c
5 .if ${MACHINE_ARCH} == "i386"
6 SRCS+= i386-linux.c linux_syscalls.h
9 CFLAGS+= -I${.CURDIR} -I.
10 CLEANFILES+=i386l-syscalls.master syscalls.master linux_syscalls.h \
15 i386l-syscalls.master: ${.CURDIR}/../../sys/i386/linux/syscalls.master
16 cat ${.ALLSRC} > i386l-syscalls.master
18 linux_syscalls.h: i386l-syscalls.master
19 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh i386l-syscalls.master \
20 ${.CURDIR}/i386linux.conf
22 syscalls.master: ${.CURDIR}/../../sys/kern/syscalls.master
23 cat ${.ALLSRC} > syscalls.master
25 syscalls.h: syscalls.master
26 /bin/sh ${.CURDIR}/../../sys/kern/makesyscalls.sh syscalls.master \
29 ioctl.c: ${.CURDIR}/../kdump/mkioctls
30 sh ${.CURDIR}/../kdump/mkioctls ${DESTDIR}/usr/include > ${.TARGET}
32 .include <bsd.prog.mk>