1994-05-26 06:35:07 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
1999-12-07 17:39:16 +00:00
|
|
|
# $FreeBSD$
|
1994-05-26 06:35:07 +00:00
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-07-27 13:26:29 +00:00
|
|
|
|
2016-02-09 20:19:31 +00:00
|
|
|
PACKAGE=runtime
|
1994-05-26 06:35:07 +00:00
|
|
|
PROG= route
|
2001-03-26 14:33:27 +00:00
|
|
|
MAN= route.8
|
1997-04-02 16:52:45 +00:00
|
|
|
SRCS= route.c keywords.h
|
2010-02-27 10:18:33 +00:00
|
|
|
WARNS?= 3
|
2013-07-17 13:47:13 +00:00
|
|
|
CLEANFILES+=keywords.h
|
1994-05-26 06:35:07 +00:00
|
|
|
|
2006-07-27 13:26:29 +00:00
|
|
|
CFLAGS+= -DNS
|
2013-07-17 14:05:20 +00:00
|
|
|
.if ${MK_INET_SUPPORT} != "no"
|
|
|
|
CFLAGS+= -DINET
|
|
|
|
.endif
|
2006-07-27 13:26:29 +00:00
|
|
|
.if ${MK_INET6_SUPPORT} != "no"
|
|
|
|
CFLAGS+= -DINET6
|
|
|
|
.endif
|
|
|
|
CFLAGS+= -I.
|
|
|
|
|
2023-03-26 09:13:50 +00:00
|
|
|
.if ${MK_NETLINK_SUPPORT} != "no"
|
|
|
|
SRCS+= route_netlink.c
|
|
|
|
.else
|
|
|
|
CFLAGS+=-DWITHOUT_NETLINK
|
|
|
|
.endif
|
|
|
|
|
2020-07-22 13:49:54 +00:00
|
|
|
HAS_TESTS=
|
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
|
1994-05-26 06:35:07 +00:00
|
|
|
keywords.h: keywords
|
2013-07-17 13:47:13 +00:00
|
|
|
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)
|
1994-05-26 06:35:07 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|