1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1998-08-21 03:17:42 +00:00
|
|
|
|
2006-11-02 00:26:45 +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
|
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-08-23 01:43:47 +00:00
|
|
|
.elif ${MACHINE_CPUARCH} == "sparc64" || ${MACHINE_CPUARCH} == "ia64"
|
2004-08-28 23:03:05 +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
|
|
|
|
|
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
|
2001-03-27 11:59:22 +00:00
|
|
|
MAN+= ../forth/loader.conf.5
|
|
|
|
MAN+= ../forth/loader.4th.8
|
1998-11-04 00:29:01 +00:00
|
|
|
.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
|
|
|
|
|
2001-03-27 11:59:22 +00:00
|
|
|
MAN+= loader.8
|