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.
10 SRCS
= in_cksum.c portable.c cpu_in_cksum.S
14 CPPFLAGS.portable.c
= -Dcpu_in_cksum
=portable_cpu_in_cksum
15 CLEANFILES
+= portable.c
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
$@
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} \
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
>