initial commit
[freebsd-arm:freebsd-arm.git] / boot / common / Makefile.inc
1 # $FreeBSD$
2
3 SRCS+=  boot.c commands.c console.c devopen.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_ARCH} == "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} == "pc98"
11 SRCS+=  load_elf32.c load_elf32_obj.c reloc_elf32.c
12 .elif ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "arm"
13 SRCS+=  load_elf32.c reloc_elf32.c
14 .elif ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "ia64"
15 SRCS+=  load_elf64.c reloc_elf64.c
16 .endif
17
18 .if defined(LOADER_NET_SUPPORT)
19 SRCS+=  dev_net.c
20 .endif
21
22 .if defined(HAVE_BCACHE)
23 SRCS+=  bcache.c
24 .endif
25
26 .if defined(MD_IMAGE_SIZE)
27 CFLAGS+= -DMD_IMAGE_SIZE=${MD_IMAGE_SIZE}
28 SRCS+=  md.c
29 .endif
30
31 # Machine-independant ISA PnP
32 .if defined(HAVE_ISABUS)
33 SRCS+=  isapnp.c
34 .endif
35 .if defined(HAVE_PNP)
36 SRCS+=  pnp.c
37 .endif
38
39 # Forth interpreter
40 .if defined(BOOT_FORTH)
41 SRCS+=  interp_forth.c
42 MAN+=   ../forth/loader.conf.5
43 MAN+=   ../forth/loader.4th.8
44 .endif
45
46 .if defined(BOOT_PROMPT_123)
47 CFLAGS+=        -DBOOT_PROMPT_123
48 .endif
49
50 MAN+=   loader.8