Remove NO_OPENSSH variable functionality
[dragonfly.git] / sbin / route / Makefile
blob601289e84ca80021682592c6b55cf2d0603d9d9f
1 # @(#)Makefile 8.1 (Berkeley) 6/5/93
2 # $FreeBSD: src/sbin/route/Makefile,v 1.11.2.3 2002/12/04 14:05:42 ru Exp $
3 # $DragonFly: src/sbin/route/Makefile,v 1.7 2008/11/03 00:25:45 pavalos Exp $
5 PROG= route
6 MAN= route.8
7 SRCS= route.c show.c keywords.h keywords.c
8 CFLAGS+=-I.
9 CFLAGS+=-DINET6
10 CLEANFILES+=keywords.h keywords.c _keywords.tmp
11 NO_STRICT_ALIASING=
13 keywords.h:
14 echo -e "extern struct keytab {\n\tconst char\t*kt_cp;\n\tint\t\t kt_i;\n} keywords[];\n\n" > ${.TARGET}
15 sed -e '/^#/d' -e '/^$$/d' ${.CURDIR}/keywords > _keywords.tmp
16 tr a-z A-Z < _keywords.tmp | paste _keywords.tmp - | \
17 awk '{ \
18 if (NF > 1) \
19 printf "#define\tK_%s\t%d\n", $$2, NR }' \
20 >> ${.TARGET}
21 rm -f _keywords.tmp
23 keywords.c: keywords.h
24 echo -e "#include \"keywords.h\"\n\nstruct keytab keywords[] = {\n\n" \
25 > ${.TARGET}
26 sed -e '/^#/d' -e '/^$$/d' ${.CURDIR}/keywords > _keywords.tmp
27 tr a-z A-Z < _keywords.tmp | paste _keywords.tmp - | \
28 awk '{ \
29 if (NF > 1) \
30 printf "\t{\"%s\", K_%s},\n", $$1, $$2 }' \
31 >> ${.TARGET}
32 echo -e "\t{0, 0}\n};\n" >> ${.TARGET}
33 rm -f _keywords.tmp
35 .include <bsd.prog.mk>