Makefile revision 181847
1# $FreeBSD: head/tools/regression/bpf/bpf_filter/Makefile 181847 2008-08-18 19:01:58Z jkim $ 2 3TEST_CASES= test0001 test0002 test0003 test0004 \ 4 test0005 test0006 test0007 test0008 \ 5 test0009 test0010 test0011 test0012 \ 6 test0013 test0014 test0015 test0016 \ 7 test0017 test0018 test0019 test0020 \ 8 test0021 test0022 test0023 test0024 \ 9 test0025 test0026 test0027 test0028 \ 10 test0029 test0030 test0031 test0032 \ 11 test0033 test0034 test0035 test0036 \ 12 test0037 test0038 test0039 test0040 \ 13 test0041 test0042 test0043 test0044 \ 14 test0045 test0046 test0047 test0048 \ 15 test0049 test0050 test0051 test0052 \ 16 test0053 test0054 test0055 test0056 \ 17 test0057 test0058 test0059 test0060 \ 18 test0061 test0062 test0063 test0064 \ 19 test0065 test0066 test0067 test0068 \ 20 test0069 test0070 test0071 test0072 \ 21 test0073 22 23SYSDIR?= ${.CURDIR}/../../../../sys 24 25SRCS= ${.CURDIR}/bpf_test.c 26 27CFLAGS+= -g -fno-builtin-abort -I${.CURDIR}/tests 28 29.if defined(LOG_LEVEL) 30CFLAGS+= -DLOG_LEVEL="${LOG_LEVEL}" 31.endif 32 33.if defined(BPF_VALIDATE) 34CFLAGS+= -DBPF_VALIDATE 35.endif 36 37.if (${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386") && defined(BPF_JIT) 38SRCS+= ${SYSDIR}/${MACHINE_ARCH}/${MACHINE_ARCH}/bpf_jit_machdep.c 39CFLAGS+= -I${SYSDIR} -DBPF_JIT_COMPILER 40WARNS?= 6 41.else 42SRCS+= ${SYSDIR}/net/bpf_filter.c 43WARNS?= 1 44.endif 45 46.for TEST in ${TEST_CASES} 47${TEST}: ${.CURDIR}/tests/${TEST}.h ${SRCS} 48 @${CC} ${CFLAGS} -DBPF_TEST_H=\"${TEST}.h\" -o ${.CURDIR}/${TEST} ${SRCS} 49.endfor 50 51all: ${TEST_CASES} 52.for TEST in ${TEST_CASES} 53.if !defined(LOG_LEVEL) || (${LOG_LEVEL} > 0) 54 @${ECHO} -n "${TEST}: " 55.endif 56 @-${.CURDIR}/${TEST} 57 @rm -f ${.CURDIR}/${TEST} 58.endfor 59 60clean: 61.for TEST in ${TEST_CASES} 62 @rm -f ${.CURDIR}/${TEST} 63.endfor 64 65.include <bsd.prog.mk> 66