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
|
|
|
|
2004-10-24 12:18:11 +00:00
|
|
|
.if ${MACHINE} == "i386" || ${MACHINE_ARCH} == "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
|
2008-10-14 10:11:14 +00:00
|
|
|
.elif ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "arm"
|
2004-08-28 23:03:05 +00:00
|
|
|
SRCS+= load_elf32.c reloc_elf32.c
|
2006-05-12 04:09:53 +00:00
|
|
|
.elif ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "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
|
|
|
|
|
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
|
|
|
|
2001-03-27 11:59:22 +00:00
|
|
|
MAN+= loader.8
|