]> CyberLeo.Net >> Repos - FreeBSD/releng/10.3.git/blob - sys/modules/if_gif/Makefile
- Copy stable/10@296371 to releng/10.3 in preparation for 10.3-RC1
[FreeBSD/releng/10.3.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 .endif
21
22 .if !defined(KERNBUILDDIR)
23 .if ${MK_INET6_SUPPORT} != "no"
24 opt_inet6.h:
25         echo "#define INET6 1" > ${.TARGET}
26 .endif
27
28 opt_mrouting.h:
29         echo "#define MROUTING 1" > ${.TARGET}
30 .else
31 OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h; echo
32 .if empty(OPT_INET6)
33 MK_INET6_SUPPORT= no
34 .endif
35 .endif
36
37 .if ${MK_INET_SUPPORT} != "no"
38 SRCS+=  in_gif.c
39 .endif
40
41 .if ${MK_INET6_SUPPORT} != "no"
42 SRCS+=  in6_gif.c
43 .endif
44
45 .include <bsd.kmod.mk>