mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 10:01:02 +01:00
51e16cb8fc
Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
41 lines
721 B
Makefile
41 lines
721 B
Makefile
|
|
.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.
|
|
|
|
.if ${MK_NETLINK_SUPPORT} != "no"
|
|
SRCS+= route_netlink.c
|
|
.else
|
|
CFLAGS+=-DWITHOUT_NETLINK
|
|
.endif
|
|
|
|
.if ${MK_JAIL} != "no" && !defined(RESCUE)
|
|
CFLAGS+= -DJAIL
|
|
LIBADD+= jail
|
|
.endif
|
|
|
|
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>
|