Changeset View
Changeset View
Standalone View
Standalone View
tools/regression/capsicum/syscalls/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
SYSCALLS= cap_fcntls_limit cap_getmode cap_ioctls_limit | SYSCALLS= cap_fcntls_limit cap_getmode cap_ioctls_limit | ||||
CFLAGS= -O2 -pipe -std=gnu99 -fstack-protector | CFLAGS= -O2 -pipe -std=gnu99 -fstack-protector | ||||
jhb: I wonder how stale these warning flags are and why this isn't just using bsd.prog.mk. Not a… | |||||
CFLAGS+= -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter | CFLAGS+= -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter | ||||
CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type | CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type | ||||
CFLAGS+= -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter | CFLAGS+= -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter | ||||
CFLAGS+= -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls | CFLAGS+= -Wcast-align -Wchar-subscripts -Wnested-externs -Wredundant-decls | ||||
CFLAGS+= -Wold-style-definition -Wno-pointer-sign | CFLAGS+= -Wold-style-definition -Wno-pointer-sign | ||||
all: ${SYSCALLS} ${SYSCALLS:=.t} | all: ${SYSCALLS} ${SYSCALLS:=.t} | ||||
.for SYSCALL in ${SYSCALLS} | .for SYSCALL in ${SYSCALLS} | ||||
${SYSCALL}: ${SYSCALL}.c misc.c | ${SYSCALL}: ${SYSCALL}.c misc.c | ||||
${CC} ${CFLAGS} ${@}.c misc.c -o $@ | ${CC} ${CFLAGS} ${@}.c misc.c -o $@ | ||||
Show All 11 Lines |
I wonder how stale these warning flags are and why this isn't just using bsd.prog.mk. Not a problem for this review to solve though.