This is FreeBSD 5.x's code to dump the kernel's identifier through
[dragonfly.git] / sys / Makefile
CommitLineData
984263bc 1# $FreeBSD: src/sys/Makefile,v 1.20.2.1 2000/07/10 08:22:34 obrien Exp $
5a5c6af6 2# $DragonFly: src/sys/Makefile,v 1.7 2003/10/20 04:47:30 dillon Exp $
984263bc
MD
3
4# This is the old aout only boot loader.
5.if exists(${.CURDIR}/${MACHINE_ARCH}/boot) && ${OBJFORMAT} == "aout"
6SUBDIR= ${MACHINE_ARCH}/boot
7.elif exists(${.CURDIR}/boot) && ${MACHINE_ARCH} == "i386" && ${OBJFORMAT} == "elf"
8SUBDIR= boot
9.endif
10
11.if exists(${.CURDIR}/boot) && ${MACHINE_ARCH} == "alpha"
12SUBDIR= boot
13.endif
14
15# KLD modules build for both a.out and ELF
53b3c2d0 16# note: emulation must come before dev (for arch_svr4 softlink)
984263bc 17.if defined(MODULES_WITH_WORLD)
5a5c6af6 18SUBDIR+=bus checkpt crypto emulation dev kern net netgraph netproto vfs
984263bc
MD
19.endif
20
21HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
22
23.include <bsd.subdir.mk>
2fb326c0
MD
24
25all_sysent:
53b3c2d0
MD
26 (cd ${.CURDIR}/kern; ${MAKE} sysent)
27 (cd ${.CURDIR}/emulation/svr4; ${MAKE} sysent)
28 (cd ${.CURDIR}/emulation/linux/i386; ${MAKE} sysent)
29 (cd ${.CURDIR}/emulation/ibcs2/i386; ${MAKE} sysent)
30
31# XXX this may be temporary, should the module build be incorporated
32# into the default build (make the SUBDIR additions above non-conditional)?
33#
34modules:
35 cd ${.CURDIR} && ${MAKE} -f Makefile.modules
36
37mobj:
38 cd ${.CURDIR} && ${MAKE} -f Makefile.modules obj
39
40mclean:
41 cd ${.CURDIR} && ${MAKE} -f Makefile.modules clean
42
43mcleanobj:
44 cd ${.CURDIR} && ${MAKE} -f Makefile.modules cleanobj
45
46minstall:
47 cd ${.CURDIR} && ${MAKE} -f Makefile.modules install
48