Makefile.inc revision 114379
1# $FreeBSD: head/sys/boot/common/Makefile.inc 114379 2003-05-01 03:56:30Z peter $
2
3SRCS+=	bcache.c boot.c commands.c console.c devopen.c interp.c 
4SRCS+=	interp_backslash.c interp_parse.c ls.c misc.c 
5SRCS+=	module.c panic.c
6
7.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
8SRCS+=	load_elf32.c load_elf64.c
9.endif
10.if ${MACHINE_ARCH} == "powerpc"
11SRCS+=	load_elf32.c
12.endif
13.if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "alpha"
14SRCS+=	load_elf64.c
15.endif
16
17.if defined(LOADER_NET_SUPPORT)
18SRCS+=	dev_net.c
19.endif
20
21# Machine-independant ISA PnP
22.if HAVE_ISABUS
23SRCS+=	isapnp.c
24.endif
25.if HAVE_PNP
26SRCS+=	pnp.c
27.endif
28
29# Forth interpreter
30.if BOOT_FORTH
31SRCS+=	interp_forth.c
32MAN+=	../forth/loader.conf.5
33MAN+=	../forth/loader.4th.8
34.endif
35
36MAN+=	loader.8
37
38.if ${MACHINE_ARCH} == "amd64"
39CFLAGS+= -m32
40.endif
41