3b01bf881c
Add tests to cover "add", "change" and "delete" functionality of /sbin/route for ipv4 and ipv6. These tests for the existing route tool are the first step towards creating libroute. Submitted by: Ahsan Barkati Sponsored by: Google, Inc. (GSoC 2020) Reviewed by: kp, thj Approved by: bz (mentor) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D25220
32 lines
592 B
Makefile
32 lines
592 B
Makefile
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
|
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PACKAGE=runtime
|
|
PROG= route
|
|
MAN= route.8
|
|
SRCS= route.c keywords.h
|
|
WARNS?= 3
|
|
CLEANFILES+=keywords.h
|
|
|
|
CFLAGS+= -DNS
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
CFLAGS+= -DINET
|
|
.endif
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
CFLAGS+= -DINET6
|
|
.endif
|
|
CFLAGS+= -I.
|
|
|
|
HAS_TESTS=
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
keywords.h: keywords
|
|
LC_ALL=C awk '!/^#|^$$/ { \
|
|
printf "#define\tK_%s\t%d\n\t{\"%s\", K_%s},\n", \
|
|
toupper($$1), ++L, $$1, toupper($$1); \
|
|
}' < ${.CURDIR}/keywords > ${.TARGET} || (rm -f ${.TARGET}; false)
|
|
|
|
.include <bsd.prog.mk>
|