Merge remote-tracking branch 'origin/vendor/LDNS'
[dragonfly.git] / sys / Makefile
1 # $FreeBSD: src/sys/Makefile,v 1.20.2.1 2000/07/10 08:22:34 obrien Exp $
2
3 # The boot loader
4 .if     exists(${.CURDIR}/boot)
5 SUBDIR= boot
6 .endif
7
8 # Loadable kernel modules
9 #
10 .if defined(MODULES_WITH_WORLD)
11 .if defined(MODULES_OVERRIDE)
12 SUBDIR+=${MODULES_OVERRIDE}
13 .else
14 SUBDIR+=bus crypto dev emulation gnu kern net netbt netproto vfs
15 .if defined(WANT_NETGRAPH7)
16 SUBDIR+=netgraph7
17 .else
18 SUBDIR+=netgraph
19 .endif
20 SUBDIR+=libiconv
21 .endif
22 .endif
23
24 .include <bsd.subdir.mk>
25
26 all_sysent:
27         (cd ${.CURDIR}/kern; ${MAKE} sysent)
28
29 # XXX this may be temporary, should the module build be incorporated
30 # into the default build (make the SUBDIR additions above non-conditional)?
31 #
32 modules:
33         cd ${.CURDIR} && ${MAKE} -f Makefile.modules
34
35 mobj:
36         cd ${.CURDIR} && ${MAKE} -f Makefile.modules obj
37
38 mclean:
39         cd ${.CURDIR} && ${MAKE} -f Makefile.modules clean
40
41 mcleanobj:
42         cd ${.CURDIR} && ${MAKE} -f Makefile.modules cleanobj
43
44 minstall:
45         cd ${.CURDIR} && ${MAKE} -f Makefile.modules install
46