]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - sys/modules/if_gif/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.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_mrouting.h
9
10 .if !defined(KERNBUILDDIR)
11 opt_inet.h:
12         echo "#define INET 1" > ${.TARGET}
13
14 .if ${MK_INET6_SUPPORT} != "no"
15 opt_inet6.h:
16         echo "#define INET6 1" > ${.TARGET}
17 .endif
18
19 opt_mrouting.h:
20         echo "#define MROUTING 1" > ${.TARGET}
21 .else
22 OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h
23 .if empty(OPT_INET6)
24 MK_INET6_SUPPORT= no
25 .endif
26 .endif
27
28 .if ${MK_INET6_SUPPORT} != "no"
29 SRCS+=  in6_gif.c
30 .endif
31
32 .include <bsd.kmod.mk>