Makefile.inc revision 222417
150477Speter# $FreeBSD: head/sys/boot/common/Makefile.inc 222417 2011-05-28 08:50:38Z julian $
238465Smsmith
3163893SmarcelSRCS+=	boot.c commands.c console.c devopen.c interp.c 
4114379SpeterSRCS+=	interp_backslash.c interp_parse.c ls.c misc.c 
540834SmsmithSRCS+=	module.c panic.c
639178Smsmith
7211678Simp.if ${MACHINE} == "i386" || ${MACHINE_CPUARCH} == "amd64"
8136895SruSRCS+=	load_elf32.c load_elf32_obj.c reloc_elf32.c
9136895SruSRCS+=	load_elf64.c load_elf64_obj.c reloc_elf64.c
10219691Smarcel.elif ${MACHINE_CPUARCH} == "ia64"
11219691SmarcelSRCS+=	load_elf64.c load_elf64_obj.c reloc_elf64.c
12136895Sru.elif ${MACHINE} == "pc98"
13136895SruSRCS+=	load_elf32.c load_elf32_obj.c reloc_elf32.c
14211817Snwhitehorn.elif ${MACHINE_CPUARCH} == "arm"
15134458SiedowseSRCS+=	load_elf32.c reloc_elf32.c
16211678Simp.elif ${MACHINE_CPUARCH} == "powerpc"
17209920SnwhitehornSRCS+=	load_elf32.c reloc_elf32.c
18209920SnwhitehornSRCS+=	load_elf64.c reloc_elf64.c
19219691Smarcel.elif ${MACHINE_CPUARCH} == "sparc64"
20134458SiedowseSRCS+=	load_elf64.c reloc_elf64.c
21114379Speter.endif
22114379Speter
2368548Sbenno.if defined(LOADER_NET_SUPPORT)
2468548SbennoSRCS+=	dev_net.c
2568548Sbenno.endif
2668548Sbenno
27163893Smarcel.if defined(HAVE_BCACHE)
28163893SmarcelSRCS+=  bcache.c
29163893Smarcel.endif
30163893Smarcel
31200460Smarcel.if defined(MD_IMAGE_SIZE)
32200460SmarcelCFLAGS+= -DMD_IMAGE_SIZE=${MD_IMAGE_SIZE}
33200460SmarcelSRCS+=	md.c
34200460Smarcel.endif
35200460Smarcel
3639178Smsmith# Machine-independant ISA PnP
37125561Sru.if defined(HAVE_ISABUS)
3839178SmsmithSRCS+=	isapnp.c
3939178Smsmith.endif
40125561Sru.if defined(HAVE_PNP)
4139178SmsmithSRCS+=	pnp.c
4239178Smsmith.endif
4340875Smsmith
4440875Smsmith# Forth interpreter
45125561Sru.if defined(BOOT_FORTH)
4640875SmsmithSRCS+=	interp_forth.c
47222417SjulianMAN+=	../forth/beastie.4th.8
48222417SjulianMAN+=	../forth/brand.4th.8
49222417SjulianMAN+=	../forth/check-password.4th.8
50222417SjulianMAN+=	../forth/color.4th.8
51222417SjulianMAN+=	../forth/delay.4th.8
5274850SruMAN+=	../forth/loader.conf.5
5374850SruMAN+=	../forth/loader.4th.8
54222417SjulianMAN+=	../forth/menu.4th.8
55222417SjulianMAN+=	../forth/version.4th.8
5640875Smsmith.endif
5760704Sdcs
58199210Sattilio.if defined(BOOT_PROMPT_123)
59199210SattilioCFLAGS+=	-DBOOT_PROMPT_123
60199210Sattilio.endif
61199210Sattilio
6274850SruMAN+=	loader.8
63