Makefile.inc revision 281843
1# $FreeBSD: stable/10/sys/boot/common/Makefile.inc 281843 2015-04-22 01:08:40Z dteske $
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_CPUARCH} == "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_CPUARCH} == "ia64"
11SRCS+=	load_elf64.c load_elf64_obj.c reloc_elf64.c
12.elif ${MACHINE} == "pc98"
13SRCS+=	load_elf32.c load_elf32_obj.c reloc_elf32.c
14.elif ${MACHINE_CPUARCH} == "arm"
15SRCS+=	load_elf32.c reloc_elf32.c
16.elif ${MACHINE_CPUARCH} == "powerpc"
17SRCS+=	load_elf32.c reloc_elf32.c
18SRCS+=	load_elf64.c reloc_elf64.c
19.elif ${MACHINE_CPUARCH} == "sparc64"
20SRCS+=	load_elf64.c reloc_elf64.c
21.endif
22
23.if defined(LOADER_NET_SUPPORT)
24SRCS+=	dev_net.c
25.endif
26
27.if !defined(LOADER_NO_DISK_SUPPORT)
28SRCS+=	disk.c part.c
29CFLAGS+= -DLOADER_DISK_SUPPORT
30.if !defined(LOADER_NO_GPT_SUPPORT)
31SRCS+=	crc32.c
32CFLAGS+= -DLOADER_GPT_SUPPORT
33.endif
34.if !defined(LOADER_NO_MBR_SUPPORT)
35CFLAGS+= -DLOADER_MBR_SUPPORT
36.endif
37.endif
38
39.if defined(HAVE_BCACHE)
40SRCS+=  bcache.c
41.endif
42
43.if defined(MD_IMAGE_SIZE)
44CFLAGS+= -DMD_IMAGE_SIZE=${MD_IMAGE_SIZE}
45SRCS+=	md.c
46.endif
47
48# Machine-independant ISA PnP
49.if defined(HAVE_ISABUS)
50SRCS+=	isapnp.c
51.endif
52.if defined(HAVE_PNP)
53SRCS+=	pnp.c
54.endif
55
56# Forth interpreter
57.if defined(BOOT_FORTH)
58SRCS+=	interp_forth.c
59.endif
60
61.if defined(BOOT_PROMPT_123)
62CFLAGS+=	-DBOOT_PROMPT_123
63.endif
64
65MAN+=	loader.8
66.if ${MK_ZFS} != "no"
67MAN+=	zfsloader.8
68.endif
69