etc/protocols - sync with NetBSD-8
[minix.git] / tests / net / in_cksum / Makefile
blob68f8516acb81d6efe09b31c7983da4d1985b3d50
1 # $NetBSD: Makefile,v 1.9 2015/01/06 16:08:06 christos Exp $
3 .include <bsd.own.mk>
5 TESTSDIR= ${TESTSBASE}/net/in_cksum
7 TESTS_SH=t_in_cksum
9 CDIR=${NETBSDSRCDIR}/sys/netinet
11 .for i in ${MACHINE_CPU} ${MACHINE_ARCH} ${MACHINE}
12 ADIR:=${NETBSDSRCDIR}/sys/arch/${i}/${i}
13 .if exists(${ADIR}/cpu_in_cksum.S)
14 CPU_IN_CKSUM_DIR:=${ADIR}
15 .endif
16 .endfor
18 .if defined(CPU_IN_CKSUM_DIR)
19 .PATH.S: ${CPU_IN_CKSUM_DIR}
20 SRCS.in_cksum=cpu_in_cksum.S in_cksum.c
21 cpu_in_cksum.S: assym.h
22 CPPFLAGS+=-DHAVE_CPU_IN_CKSUM -I${.CURDIR}
23 .endif
25 PROGS=in_cksum
26 MAN.in_cksum= # empty
27 BINDIR.in_cksum= ${TESTSDIR}
29 CPPFLAGS+=-I${CDIR}
31 .include <bsd.test.mk>