NetBSD/tests/net/in_cksum/Makefile

32 lines
641 B
Makefile
Raw Normal View History

2015-01-06 19:08:06 +03:00
# $NetBSD: Makefile,v 1.9 2015/01/06 16:08:06 christos Exp $
2015-01-06 01:38:36 +03:00
.include <bsd.own.mk>
2015-01-06 06:20:24 +03:00
TESTSDIR= ${TESTSBASE}/net/in_cksum
2015-01-06 01:38:36 +03:00
TESTS_SH=t_in_cksum
CDIR=${NETBSDSRCDIR}/sys/netinet
.for i in ${MACHINE_CPU} ${MACHINE_ARCH} ${MACHINE}
ADIR:=${NETBSDSRCDIR}/sys/arch/${i}/${i}
2015-01-06 01:38:36 +03:00
.if exists(${ADIR}/cpu_in_cksum.S)
2015-01-06 19:08:06 +03:00
CPU_IN_CKSUM_DIR:=${ADIR}
2015-01-06 19:04:58 +03:00
.endif
.endfor
.if defined(CPU_IN_CKSUM_DIR)
.PATH.S: ${CPU_IN_CKSUM_DIR}
2015-01-06 02:48:46 +03:00
SRCS.in_cksum=cpu_in_cksum.S in_cksum.c
cpu_in_cksum.S: assym.h
2015-01-06 05:49:21 +03:00
CPPFLAGS+=-DHAVE_CPU_IN_CKSUM -I${.CURDIR}
2015-01-06 01:38:36 +03:00
.endif
PROGS=in_cksum
2015-01-06 06:41:42 +03:00
MAN.in_cksum= # empty
BINDIR.in_cksum= ${TESTSDIR}
2015-01-06 01:38:36 +03:00
CPPFLAGS+=-I${CDIR}
.include <bsd.test.mk>