Add support for building modules with configured kernel options,
[dragonfly.git] / sys / net / gre / Makefile
1 # $FreeBSD$
2 # $DragonFly: src/sys/net/gre/Makefile,v 1.2 2005/02/18 11:41:42 corecode Exp $
3
4 .PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet 
5
6 KMOD=   if_gre
7 SRCS=   if_gre.c ip_gre.c opt_inet.h opt_ns.h opt_atalk.h
8
9 .if !defined(BUILDING_WITH_KERNEL)
10 opt_inet.h:
11         echo "#define INET 1" > ${.TARGET}
12
13 opt_ns.h:
14         echo "#define NS 1" > ${.TARGET}
15
16 opt_atalk.h:
17         echo "#define NETATALK 1" > ${.TARGET}
18 .endif
19
20 .include <bsd.kmod.mk>