Deleted Added
full compact
1# $FreeBSD: head/sys/boot/common/Makefile.inc 199210 2009-11-12 01:30:17Z attilio $
1# $FreeBSD: head/sys/boot/common/Makefile.inc 200460 2009-12-13 01:20:32Z marcel $
2
3SRCS+= 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} == "i386" || ${MACHINE_ARCH} == "amd64"
8SRCS+= load_elf32.c load_elf32_obj.c reloc_elf32.c
9SRCS+= load_elf64.c load_elf64_obj.c reloc_elf64.c
10.elif ${MACHINE} == "pc98"
11SRCS+= load_elf32.c load_elf32_obj.c reloc_elf32.c
12.elif ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "arm"
13SRCS+= load_elf32.c reloc_elf32.c
14.elif ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "ia64"
15SRCS+= load_elf64.c reloc_elf64.c
16.endif
17
18.if defined(LOADER_NET_SUPPORT)
19SRCS+= dev_net.c
20.endif
21
22.if defined(HAVE_BCACHE)
23SRCS+= bcache.c
24.endif
25
26.if defined(MD_IMAGE_SIZE)
27CFLAGS+= -DMD_IMAGE_SIZE=${MD_IMAGE_SIZE}
28SRCS+= md.c
29.endif
30
31# Machine-independant ISA PnP
32.if defined(HAVE_ISABUS)
33SRCS+= isapnp.c
34.endif
35.if defined(HAVE_PNP)
36SRCS+= pnp.c
37.endif
38
39# Forth interpreter
40.if defined(BOOT_FORTH)
41SRCS+= interp_forth.c
42MAN+= ../forth/loader.conf.5
43MAN+= ../forth/loader.4th.8
44.endif
45
46.if defined(BOOT_PROMPT_123)
47CFLAGS+= -DBOOT_PROMPT_123
48.endif
49
50MAN+= loader.8