1247606Spjd# $FreeBSD$ 2247606Spjd 3247606SpjdSYSCALLS= cap_fcntls_limit cap_getmode cap_ioctls_limit 4247606Spjd 5247606SpjdCFLAGS= -O2 -pipe -std=gnu99 -fstack-protector 6247606SpjdCFLAGS+= -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter 7247606SpjdCFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type 8247606SpjdCFLAGS+= -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter 9247606SpjdCFLAGS+= -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls 10247606SpjdCFLAGS+= -Wold-style-definition -Wno-pointer-sign 11247606Spjd 12247606Spjdall: ${SYSCALLS} ${SYSCALLS:=.t} 13247606Spjd 14247606Spjd.for SYSCALL in ${SYSCALLS} 15247606Spjd 16247606Spjd${SYSCALL}: ${SYSCALL}.c misc.c 17247606Spjd ${CC} ${CFLAGS} ${@}.c misc.c -o $@ 18247606Spjd 19247606Spjd${SYSCALL}.t: ${SYSCALL} 20247606Spjd @printf "#!/bin/sh\n\n%s/%s\n" ${.CURDIR} ${@:.t=} > $@ 21247606Spjd 22247606Spjd.endfor 23247606Spjd 24247606Spjdtest: all 25247606Spjd @prove -r ${.CURDIR} 26247606Spjd 27247606Spjdclean: 28247606Spjd rm -f ${SYSCALLS} ${SYSCALLS:=.t} 29