NetBSD/tests/net/in_cksum/Makefile

28 lines
565 B
Makefile
Raw Normal View History

2015-01-06 06:41:42 +03:00
# $NetBSD: Makefile,v 1.7 2015/01/06 03:41:42 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)
.PATH.S: ${ADIR}
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
.endfor
2015-01-06 01:38:36 +03:00
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>