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
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} == "pc98"
11 SRCS+= load_elf32.c load_elf32_obj.c reloc_elf32.c
12 .elif ${MACHINE_CPUARCH} == "aarch64"
13 SRCS+= load_elf64.c reloc_elf64.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 .elif ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el"
22 SRCS+= load_elf64.c reloc_elf64.c
25 .if defined(LOADER_NET_SUPPORT)
29 .if !defined(LOADER_NO_DISK_SUPPORT)
31 CFLAGS+= -DLOADER_DISK_SUPPORT
32 .if !defined(LOADER_NO_GPT_SUPPORT)
34 CFLAGS+= -DLOADER_GPT_SUPPORT
36 .if !defined(LOADER_NO_MBR_SUPPORT)
37 CFLAGS+= -DLOADER_MBR_SUPPORT
41 .if defined(HAVE_BCACHE)
45 .if defined(MD_IMAGE_SIZE)
46 CFLAGS+= -DMD_IMAGE_SIZE=${MD_IMAGE_SIZE}
50 # Machine-independant ISA PnP
51 .if defined(HAVE_ISABUS)
59 .if defined(BOOT_FORTH)
63 .if defined(BOOT_PROMPT_123)
64 CFLAGS+= -DBOOT_PROMPT_123
67 .if defined(LOADER_INSTALL_SUPPORT)
69 CFLAGS+=-I${.CURDIR}/../../../../lib/libstand