]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - sys/modules/if_gif/Makefile
Fix LINT-NOINET kernels
[FreeBSD/stable/10.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 opt_inet.h opt_inet6.h opt_mrouting.h
9
10 .if !defined(KERNBUILDDIR)
11 .if ${MK_INET_SUPPORT} != "no"
12 opt_inet.h:
13         echo "#define INET 1" > ${.TARGET}
14 .endif
15 .else
16 OPT_INET!= cat ${KERNBUILDDIR}/opt_inet.h; echo
17 .if empty(OPT_INET)
18 MK_INET_SUPPORT= no
19 .endif
20
21 .if ${MK_INET6_SUPPORT} != "no"
22 opt_inet6.h:
23         echo "#define INET6 1" > ${.TARGET}
24 .endif
25
26 opt_mrouting.h:
27         echo "#define MROUTING 1" > ${.TARGET}
28 .else
29 OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h; echo
30 .if empty(OPT_INET6)
31 MK_INET6_SUPPORT= no
32 .endif
33 .endif
34
35 .if ${MK_INET_SUPPORT} != "no"
36 SRCS+=  in_gif.c
37 .endif
38
39 .if ${MK_INET6_SUPPORT} != "no"
40 SRCS+=  in6_gif.c
41 .endif
42
43 .include <bsd.kmod.mk>