kernel: Clean up some module Makefiles.
[dragonfly.git] / sys / net / tun / Makefile
CommitLineData
984263bc
MD
1# $FreeBSD: src/sys/modules/if_tun/Makefile,v 1.19.2.1 2001/07/24 09:49:42 dd Exp $
2
984263bc 3KMOD= if_tun
07330435 4SRCS= if_tun.c opt_inet.h opt_inet6.h opt_ipx.h use_tun.h
984263bc 5
07330435 6NTUN?= 2
984263bc 7
07330435 8CLEANFILES= use_tun.h
984263bc 9
1b29ad66 10.if !defined(BUILDING_WITH_KERNEL)
984263bc 11opt_inet.h:
e3f58167 12 echo "#define INET 1" > ${.TARGET}
34582f11
JH
13
14opt_inet6.h:
e3f58167 15 echo "#define INET6 1" > ${.TARGET}
34582f11 16
34582f11 17opt_ipx.h:
e3f58167 18 echo "#define IPX 1" > ${.TARGET}
1b29ad66 19.endif
984263bc 20
07330435 21use_tun.h:
e3f58167 22 echo "#define NTUN ${NTUN}" > ${.TARGET}
07330435 23
984263bc 24.include <bsd.kmod.mk>