diff options
author | Peter Wemm <peter@FreeBSD.org> | 2003-05-01 03:56:30 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2003-05-01 03:56:30 +0000 |
commit | 48a0b96a508aece7c0260b0ba4e98b47c206af44 (patch) | |
tree | 3ceb596207b6bc027473320fe17af905c4acd162 /sys/boot/common/Makefile.inc | |
parent | ab7b0ae578c4ced40414f23fa55badeea27a350d (diff) | |
download | src-48a0b96a508aece7c0260b0ba4e98b47c206af44.tar.gz src-48a0b96a508aece7c0260b0ba4e98b47c206af44.zip |
Notes
Diffstat (limited to 'sys/boot/common/Makefile.inc')
-rw-r--r-- | sys/boot/common/Makefile.inc | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/boot/common/Makefile.inc b/sys/boot/common/Makefile.inc index 3f6c91078128..c72d09ea7e4b 100644 --- a/sys/boot/common/Makefile.inc +++ b/sys/boot/common/Makefile.inc @@ -1,9 +1,19 @@ # $FreeBSD$ SRCS+= bcache.c boot.c commands.c console.c devopen.c interp.c -SRCS+= interp_backslash.c interp_parse.c load_elf.c ls.c misc.c +SRCS+= interp_backslash.c interp_parse.c ls.c misc.c SRCS+= module.c panic.c +.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" +SRCS+= load_elf32.c load_elf64.c +.endif +.if ${MACHINE_ARCH} == "powerpc" +SRCS+= load_elf32.c +.endif +.if ${MACHINE_ARCH} == "sparc64" || ${MACHINE_ARCH} == "ia64" || ${MACHINE_ARCH} == "alpha" +SRCS+= load_elf64.c +.endif + .if defined(LOADER_NET_SUPPORT) SRCS+= dev_net.c .endif @@ -25,3 +35,6 @@ MAN+= ../forth/loader.4th.8 MAN+= loader.8 +.if ${MACHINE_ARCH} == "amd64" +CFLAGS+= -m32 +.endif |