1 # $FreeBSD: releng/10.3/sys/modules/if_gre/Makefile 284066 2015-06-06 12:44:42Z ae $
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>
Cache object: b990273ca4bc41de5aa21b6a17e26edb
|