3 SYSCALLS= cap_fcntls_limit cap_getmode cap_ioctls_limit
5 CFLAGS= -O2 -pipe -std=gnu99 -fstack-protector
6 CFLAGS+= -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter
7 CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type
8 CFLAGS+= -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter
9 CFLAGS+= -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls
10 CFLAGS+= -Wold-style-definition -Wno-pointer-sign
12 all: ${SYSCALLS} ${SYSCALLS:=.t}
14 .for SYSCALL in ${SYSCALLS}
16 ${SYSCALL}: ${SYSCALL}.c misc.c
17 ${CC} ${CFLAGS} ${@}.c misc.c -o $@
19 ${SYSCALL}.t: ${SYSCALL}
20 @printf "#!/bin/sh\n\n%s/%s\n" ${.CURDIR} ${@:.t=} > $@
28 rm -f ${SYSCALLS} ${SYSCALLS:=.t}