]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - sys/modules/if_gif/Makefile
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / sys / modules / if_gif / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 .PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
6
7 KMOD=   if_gif
8 SRCS=   if_gif.c in_gif.c opt_inet.h opt_inet6.h opt_mac.h \
9         opt_mrouting.h
10
11 .if !defined(KERNBUILDDIR)
12 opt_inet.h:
13         echo "#define INET 1" > ${.TARGET}
14
15 .if ${MK_INET6_SUPPORT} != "no"
16 opt_inet6.h:
17         echo "#define INET6 1" > ${.TARGET}
18 .endif
19
20 opt_mrouting.h:
21         echo "#define MROUTING 1" > ${.TARGET}
22 .else
23 OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h
24 .if empty(OPT_INET6)
25 MK_INET6_SUPPORT= no
26 .endif
27 .endif
28
29 .if ${MK_INET6_SUPPORT} != "no"
30 SRCS+=  in6_gif.c
31 .endif
32
33 .include <bsd.kmod.mk>