Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / regress / sys / net / in_cksum / Makefile
blob2da0b1aa7b9c5d6ade368eb9395f48cf32a750ca
1 # $NetBSD: Makefile,v 1.3 2008/01/26 04:56:45 simonb Exp $
3 # To use this, copy / link the cpu_in_cksum.S from the arch subdirectory
4 # and copy assym.h from the build directory of a kernel.
7 NOMAN= # defined
9 PROG= in_cksum
10 SRCS= in_cksum.c portable.c cpu_in_cksum.S
11 WARNS= 3
12 AFLAGS= -g -D_LOCORE
14 CPPFLAGS.portable.c= -Dcpu_in_cksum=portable_cpu_in_cksum
15 CLEANFILES+= portable.c
17 .include <bsd.own.mk>
19 cpu_in_cksum.o: assym.h
21 portable.c: ${NETBSDSRCDIR}/sys/netinet/cpu_in_cksum.c
22 cp ${NETBSDSRCDIR}/sys/netinet/cpu_in_cksum.c $@
24 TIMING_LOOPS= 10000
26 test:
27 ./in_cksum 16 1 ${TIMING_LOOPS} \
28 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
29 ./in_cksum 16 1 ${TIMING_LOOPS} \
30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 \
31 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
32 ./in_cksum 64 1 ${TIMING_LOOPS} \
33 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 \
34 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
35 ./in_cksum 16 1 ${TIMING_LOOPS} \
36 1 3 1 3 1 3 1
37 ./in_cksum 16 1 ${TIMING_LOOPS} 40
38 ./in_cksum 16 1 ${TIMING_LOOPS} 1536
39 ./in_cksum 16 1 ${TIMING_LOOPS} 576
40 ./in_cksum 16 1 ${TIMING_LOOPS} 1536 1536 1536 1536 1536 640
41 ./in_cksum 16 0 ${TIMING_LOOPS} 2048
42 ./in_cksum 16 0 ${TIMING_LOOPS} 40
43 ./in_cksum 16 0 ${TIMING_LOOPS} 1536
44 ./in_cksum 16 0 ${TIMING_LOOPS} 576
45 ./in_cksum 16 0 ${TIMING_LOOPS} 1536 1536 1536 1536 1536 640
47 .include <bsd.prog.mk>