32 lines
641 B
Makefile
32 lines
641 B
Makefile
# $NetBSD: Makefile,v 1.9 2015/01/06 16:08:06 christos Exp $
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
TESTSDIR= ${TESTSBASE}/net/in_cksum
|
|
|
|
TESTS_SH=t_in_cksum
|
|
|
|
CDIR=${NETBSDSRCDIR}/sys/netinet
|
|
|
|
.for i in ${MACHINE_CPU} ${MACHINE_ARCH} ${MACHINE}
|
|
ADIR:=${NETBSDSRCDIR}/sys/arch/${i}/${i}
|
|
.if exists(${ADIR}/cpu_in_cksum.S)
|
|
CPU_IN_CKSUM_DIR:=${ADIR}
|
|
.endif
|
|
.endfor
|
|
|
|
.if defined(CPU_IN_CKSUM_DIR)
|
|
.PATH.S: ${CPU_IN_CKSUM_DIR}
|
|
SRCS.in_cksum=cpu_in_cksum.S in_cksum.c
|
|
cpu_in_cksum.S: assym.h
|
|
CPPFLAGS+=-DHAVE_CPU_IN_CKSUM -I${.CURDIR}
|
|
.endif
|
|
|
|
PROGS=in_cksum
|
|
MAN.in_cksum= # empty
|
|
BINDIR.in_cksum= ${TESTSDIR}
|
|
|
|
CPPFLAGS+=-I${CDIR}
|
|
|
|
.include <bsd.test.mk>
|