Kernel tree reorganization stage 2: Major cvs repository work.
[dragonfly.git] / sys / Makefile
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.5 2003/08/07 21:16:41 dillon Exp $
3
4 # This is the old aout only boot loader.
5 .if     exists(${.CURDIR}/${MACHINE_ARCH}/boot) && ${OBJFORMAT} == "aout"
6 SUBDIR= ${MACHINE_ARCH}/boot
7 .elif   exists(${.CURDIR}/boot) && ${MACHINE_ARCH} == "i386" && ${OBJFORMAT} == "elf"
8 SUBDIR= boot
9 .endif
10
11 .if     exists(${.CURDIR}/boot) && ${MACHINE_ARCH} == "alpha"
12 SUBDIR= boot
13 .endif
14
15 # KLD modules build for both a.out and ELF
16 .if defined(MODULES_WITH_WORLD)
17 SUBDIR+=modules
18 .endif
19
20 HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
21
22 .include <bsd.subdir.mk>
23
24 all_sysent:
25         (cd ${.CURDIR}/kern; ${MAKE} init_sysent.c) 
26         (cd ${.CURDIR}/emulation/svr4; ${MAKE} svr4_sysent.c) 
27         (cd ${.CURDIR}/emulation/linux/i386; ${MAKE} linux_sysent.c) 
28         (cd ${.CURDIR}/emulation/ibcs2/i386; ${MAKE} ibcs2_sysent.c) 
29         (cd ${.CURDIR}/emulation/ibcs2/i386; ${MAKE} ibcs2_isc_sysent.c) 
30         (cd ${.CURDIR}/emulation/ibcs2/i386; ${MAKE} ibcs2_xenix_sysent.c)