]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - sys/modules/if_gre/Makefile
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / sys / modules / if_gre / Makefile
1 # $FreeBSD$
2 .include <bsd.own.mk>
3
4 .PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
5
6 KMOD=   if_gre
7 SRCS=   if_gre.c opt_inet.h opt_inet6.h
8
9 .if !defined(KERNBUILDDIR)
10 opt_inet.h:
11         echo "#define INET 1" > ${.TARGET}
12
13 .if ${MK_INET6_SUPPORT} != "no"
14 opt_inet6.h:
15         echo "#define INET6 1" > ${.TARGET}
16 .endif
17 .else
18 OPT_INET!= cat ${KERNBUILDDIR}/opt_inet.h; echo
19 .if empty(OPT_INET)
20 MK_INET_SUPPORT=no
21 .endif
22 OPT_INET6!= cat ${KERNBUILDDIR}/opt_inet6.h; echo
23 .if empty(OPT_INET6)
24 MK_INET6_SUPPORT=no
25 .endif
26 .endif
27
28 .if ${MK_INET_SUPPORT} != "no"
29 SRCS+=  ip_gre.c
30 .endif
31
32 .if ${MK_INET6_SUPPORT} != "no"
33 SRCS+=  ip6_gre.c
34 .endif
35
36 .include <bsd.kmod.mk>