# $FreeBSD: head/tools/regression/capsicum/libcasper/Makefile 296047 2016-02-25 18:23:40Z oshogbo $ 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}