Changeset View
Changeset View
Standalone View
Standalone View
tools/regression/capsicum/libcasper/Makefile
- This file was added.
# $FreeBSD$ | |||||
SERVICES= dns | |||||
SERVICES+= grp | |||||
SERVICES+= pwd | |||||
SERVICES+= sysctl | |||||
CFLAGS= -O2 -pipe -std=gnu99 -fstack-protector | |||||
CFLAGS+= -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter | |||||
CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type | |||||
CFLAGS+= -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter | |||||
CFLAGS+= -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls | |||||
CFLAGS+= -Wold-style-definition -Wno-pointer-sign | |||||
CFLAGS+= -ggdb | |||||
SERVTEST= ${SERVICES:=.t} | |||||
all: ${SERVTEST} | |||||
.for SERVICE in ${SERVICES} | |||||
${SERVICE}.t: ${SERVICE}.c | |||||
${CC} ${CFLAGS} ${@:.t=.c} -o $@ -lnv -lcasper -lcap_${@:.t=} | |||||
.endfor | |||||
test: all | |||||
@prove -r ${.CURDIR} | |||||
clean: | |||||
rm -f ${SERVTEST} |