freebsd-dev/sbin/route/Makefile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
689 B
Makefile
Raw Normal View History

# @(#)Makefile 8.1 (Berkeley) 6/5/93
# $FreeBSD$
.include <src.opts.mk>
PACKAGE=runtime
PROG= route
MAN= route.8
1997-04-02 16:52:45 +00:00
SRCS= route.c keywords.h
WARNS?= 3
2013-07-17 13:47:13 +00:00
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
HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
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)
.include <bsd.prog.mk>