1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1998-08-21 03:17:42 +00:00
|
|
|
|
2012-08-05 12:15:15 +00:00
|
|
|
SRCS+= boot.c commands.c console.c devopen.c interp.c
|
2003-05-01 03:56:30 +00:00
|
|
|
SRCS+= interp_backslash.c interp_parse.c ls.c misc.c
|
1998-11-02 23:28:11 +00:00
|
|
|
SRCS+= module.c panic.c
|
1998-09-14 18:27:06 +00:00
|
|
|
|
2010-08-23 01:43:47 +00:00
|
|
|
.if ${MACHINE} == "i386" || ${MACHINE_CPUARCH} == "amd64"
|
2004-10-24 12:32:41 +00:00
|
|
|
SRCS+= load_elf32.c load_elf32_obj.c reloc_elf32.c
|
|
|
|
SRCS+= load_elf64.c load_elf64_obj.c reloc_elf64.c
|
|
|
|
.elif ${MACHINE} == "pc98"
|
|
|
|
SRCS+= load_elf32.c load_elf32_obj.c reloc_elf32.c
|
2015-04-14 13:55:01 +00:00
|
|
|
.elif ${MACHINE_CPUARCH} == "aarch64"
|
|
|
|
SRCS+= load_elf64.c reloc_elf64.c
|
2010-08-25 16:23:50 +00:00
|
|
|
.elif ${MACHINE_CPUARCH} == "arm"
|
2004-08-28 23:03:05 +00:00
|
|
|
SRCS+= load_elf32.c reloc_elf32.c
|
2010-08-23 01:43:47 +00:00
|
|
|
.elif ${MACHINE_CPUARCH} == "powerpc"
|
2010-07-12 00:49:22 +00:00
|
|
|
SRCS+= load_elf32.c reloc_elf32.c
|
|
|
|
SRCS+= load_elf64.c reloc_elf64.c
|
2010-10-26 02:34:47 +00:00
|
|
|
.elif ${MACHINE_CPUARCH} == "sparc64"
|
2004-08-28 23:03:05 +00:00
|
|
|
SRCS+= load_elf64.c reloc_elf64.c
|
2014-02-24 18:44:03 +00:00
|
|
|
.elif ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el"
|
2014-02-23 22:11:26 +00:00
|
|
|
SRCS+= load_elf64.c reloc_elf64.c
|
2003-05-01 03:56:30 +00:00
|
|
|
.endif
|
|
|
|
|
2000-11-10 06:39:58 +00:00
|
|
|
.if defined(LOADER_NET_SUPPORT)
|
|
|
|
SRCS+= dev_net.c
|
|
|
|
.endif
|
|
|
|
|
2012-08-05 12:15:15 +00:00
|
|
|
.if !defined(LOADER_NO_DISK_SUPPORT)
|
|
|
|
SRCS+= disk.c part.c
|
|
|
|
CFLAGS+= -DLOADER_DISK_SUPPORT
|
|
|
|
.if !defined(LOADER_NO_GPT_SUPPORT)
|
|
|
|
SRCS+= crc32.c
|
|
|
|
CFLAGS+= -DLOADER_GPT_SUPPORT
|
|
|
|
.endif
|
|
|
|
.if !defined(LOADER_NO_MBR_SUPPORT)
|
|
|
|
CFLAGS+= -DLOADER_MBR_SUPPORT
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2006-11-02 00:26:45 +00:00
|
|
|
.if defined(HAVE_BCACHE)
|
|
|
|
SRCS+= bcache.c
|
|
|
|
.endif
|
|
|
|
|
2009-12-13 01:20:32 +00:00
|
|
|
.if defined(MD_IMAGE_SIZE)
|
|
|
|
CFLAGS+= -DMD_IMAGE_SIZE=${MD_IMAGE_SIZE}
|
|
|
|
SRCS+= md.c
|
|
|
|
.endif
|
|
|
|
|
1998-09-14 18:27:06 +00:00
|
|
|
# Machine-independant ISA PnP
|
2004-02-07 11:05:10 +00:00
|
|
|
.if defined(HAVE_ISABUS)
|
1998-09-14 18:27:06 +00:00
|
|
|
SRCS+= isapnp.c
|
|
|
|
.endif
|
2004-02-07 11:05:10 +00:00
|
|
|
.if defined(HAVE_PNP)
|
1998-09-14 18:27:06 +00:00
|
|
|
SRCS+= pnp.c
|
|
|
|
.endif
|
1998-11-04 00:29:01 +00:00
|
|
|
|
|
|
|
# Forth interpreter
|
2004-02-07 11:05:10 +00:00
|
|
|
.if defined(BOOT_FORTH)
|
1998-11-04 00:29:01 +00:00
|
|
|
SRCS+= interp_forth.c
|
|
|
|
.endif
|
2000-05-19 08:52:16 +00:00
|
|
|
|
2009-11-12 01:30:17 +00:00
|
|
|
.if defined(BOOT_PROMPT_123)
|
|
|
|
CFLAGS+= -DBOOT_PROMPT_123
|
|
|
|
.endif
|
|
|
|
|
2014-08-06 00:36:04 +00:00
|
|
|
.if defined(LOADER_INSTALL_SUPPORT)
|
|
|
|
SRCS+= install.c
|
|
|
|
CFLAGS+=-I${.CURDIR}/../../../../lib/libstand
|
|
|
|
.endif
|