aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/if_gif/Makefile
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2014-08-11 14:50:49 +0000
committerWarner Losh <imp@FreeBSD.org>2014-08-11 14:50:49 +0000
commitdf3394b3de0c40cae69e46b795dc794db3a80c2e (patch)
tree9d88e8f28d5de749b45ce092697cd9a893979088 /sys/modules/if_gif/Makefile
parentfd162ebf382f18579d97fab0c77e04f34c9e8dde (diff)
downloadsrc-df3394b3de0c40cae69e46b795dc794db3a80c2e.tar.gz
src-df3394b3de0c40cae69e46b795dc794db3a80c2e.zip
Remove dependence on source tree options. Move all kernel module
options into kern.opts.mk and change all the places where we use src.opts.mk to pull in the options. Conditionally define SYSDIR and use SYSDIR/conf/kern.opts.mk instead of a CURDIR path. Replace all instances of CURDIR/../../etc with STSDIR, but only in the affected files. As a special compatibility hack, include bsd.owm.mk at the top of kern.opts.mk to allow the bare build of sys/modules to work on older systems. If the defaults ever change between 9.x, 10.x and current for these options, however, you'll wind up with the host OS' defaults rather than the -current defaults. This hack will be removed when we no longer need to support this build scenario. Reviewed by: jhb Differential Revision: https://phabric.freebsd.org/D529
Notes
Notes: svn path=/head/; revision=269812
Diffstat (limited to 'sys/modules/if_gif/Makefile')
-rw-r--r--sys/modules/if_gif/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/modules/if_gif/Makefile b/sys/modules/if_gif/Makefile
index 6702de59fc78..fd1ace27ebb0 100644
--- a/sys/modules/if_gif/Makefile
+++ b/sys/modules/if_gif/Makefile
@@ -1,8 +1,9 @@
# $FreeBSD$
-.include <src.opts.mk>
+SYSDIR?=${.CURDIR}/../..
+.include "${SYSDIR}/conf/kern.opts.mk"
-.PATH: ${.CURDIR}/../../net ${.CURDIR}/../../netinet ${.CURDIR}/../../netinet6
+.PATH: ${SYSDIR}/net ${SYSDIR}/netinet ${SYSDIR}/netinet6
KMOD= if_gif
SRCS= if_gif.c in_gif.c opt_inet.h opt_inet6.h opt_mrouting.h