1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1998-08-21 03:17:42 +00:00
|
|
|
|
2011-06-30 16:08:56 +00:00
|
|
|
SRCS+= boot.c commands.c console.c devopen.c disk.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
|
2010-10-26 02:34:47 +00:00
|
|
|
.elif ${MACHINE_CPUARCH} == "ia64"
|
2010-03-14 02:50:24 +00:00
|
|
|
SRCS+= load_elf64.c load_elf64_obj.c reloc_elf64.c
|
2004-10-24 12:32:41 +00:00
|
|
|
.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-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
|
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
|
2011-05-28 08:50:38 +00:00
|
|
|
MAN+= ../forth/beastie.4th.8
|
|
|
|
MAN+= ../forth/brand.4th.8
|
|
|
|
MAN+= ../forth/check-password.4th.8
|
|
|
|
MAN+= ../forth/color.4th.8
|
|
|
|
MAN+= ../forth/delay.4th.8
|
2001-03-27 11:59:22 +00:00
|
|
|
MAN+= ../forth/loader.conf.5
|
|
|
|
MAN+= ../forth/loader.4th.8
|
2011-05-28 08:50:38 +00:00
|
|
|
MAN+= ../forth/menu.4th.8
|
|
|
|
MAN+= ../forth/version.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
|