]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - sys/boot/common/Makefile.inc
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.git] / sys / boot / common / Makefile.inc
1 # $FreeBSD$
2
3 SRCS+=  boot.c commands.c console.c devopen.c disk.c interp.c 
4 SRCS+=  interp_backslash.c interp_parse.c ls.c misc.c 
5 SRCS+=  module.c panic.c
6
7 .if ${MACHINE} == "i386" || ${MACHINE_CPUARCH} == "amd64"
8 SRCS+=  load_elf32.c load_elf32_obj.c reloc_elf32.c
9 SRCS+=  load_elf64.c load_elf64_obj.c reloc_elf64.c
10 .elif ${MACHINE_CPUARCH} == "ia64"
11 SRCS+=  load_elf64.c load_elf64_obj.c reloc_elf64.c
12 .elif ${MACHINE} == "pc98"
13 SRCS+=  load_elf32.c load_elf32_obj.c reloc_elf32.c
14 .elif ${MACHINE_CPUARCH} == "arm"
15 SRCS+=  load_elf32.c reloc_elf32.c
16 .elif ${MACHINE_CPUARCH} == "powerpc"
17 SRCS+=  load_elf32.c reloc_elf32.c
18 SRCS+=  load_elf64.c reloc_elf64.c
19 .elif ${MACHINE_CPUARCH} == "sparc64"
20 SRCS+=  load_elf64.c reloc_elf64.c
21 .endif
22
23 .if defined(LOADER_NET_SUPPORT)
24 SRCS+=  dev_net.c
25 .endif
26
27 .if defined(HAVE_BCACHE)
28 SRCS+=  bcache.c
29 .endif
30
31 .if defined(MD_IMAGE_SIZE)
32 CFLAGS+= -DMD_IMAGE_SIZE=${MD_IMAGE_SIZE}
33 SRCS+=  md.c
34 .endif
35
36 # Machine-independant ISA PnP
37 .if defined(HAVE_ISABUS)
38 SRCS+=  isapnp.c
39 .endif
40 .if defined(HAVE_PNP)
41 SRCS+=  pnp.c
42 .endif
43
44 # Forth interpreter
45 .if defined(BOOT_FORTH)
46 SRCS+=  interp_forth.c
47 MAN+=   ../forth/beastie.4th.8
48 MAN+=   ../forth/brand.4th.8
49 MAN+=   ../forth/check-password.4th.8
50 MAN+=   ../forth/color.4th.8
51 MAN+=   ../forth/delay.4th.8
52 MAN+=   ../forth/loader.conf.5
53 MAN+=   ../forth/loader.4th.8
54 MAN+=   ../forth/menu.4th.8
55 MAN+=   ../forth/version.4th.8
56 .endif
57
58 .if defined(BOOT_PROMPT_123)
59 CFLAGS+=        -DBOOT_PROMPT_123
60 .endif
61
62 MAN+=   loader.8