1# $FreeBSD: src/sys/Makefile,v 1.20.2.1 2000/07/10 08:22:34 obrien Exp $ 2# $DragonFly: src/sys/Makefile,v 1.16 2007/12/30 20:02:56 hasso Exp $ 3 4# This is the old aout only boot loader. 5.if exists(${.CURDIR}/boot) 6SUBDIR= boot 7.endif 8 9# KLD modules build for both a.out and ELF 10# 11.if defined(MODULES_WITH_WORLD) 12.if defined(MODULES_OVERRIDE) 13SUBDIR+=${MODULES_OVERRIDE} 14.else 15SUBDIR+=bus crypto dev emulation gnu kern net netbt netproto vfs 16.if defined(WANT_NETGRAPH7) 17SUBDIR+=netgraph7 18.else 19SUBDIR+=netgraph 20.endif 21SUBDIR+=libiconv 22.endif 23.endif 24 25HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh` 26 27.include <bsd.subdir.mk> 28 29all_sysent: 30 (cd ${.CURDIR}/kern; ${MAKE} sysent) 31 32# XXX this may be temporary, should the module build be incorporated 33# into the default build (make the SUBDIR additions above non-conditional)? 34# 35modules: 36 cd ${.CURDIR} && ${MAKE} -f Makefile.modules 37 38mobj: 39 cd ${.CURDIR} && ${MAKE} -f Makefile.modules obj 40 41mclean: 42 cd ${.CURDIR} && ${MAKE} -f Makefile.modules clean 43 44mcleanobj: 45 cd ${.CURDIR} && ${MAKE} -f Makefile.modules cleanobj 46 47minstall: 48 cd ${.CURDIR} && ${MAKE} -f Makefile.modules install 49 50