summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-06-02 02:37:27 +0000
committerobrien <obrien@FreeBSD.org>2003-06-02 02:37:27 +0000
commitbfafa48e01d906b20e59864014f4f724cdfd32e3 (patch)
tree989290d64820f53afb0f587c6c92cffb902652d4 /sys/boot
parente6934e172effd643511edd39993accbab2773b05 (diff)
downloadFreeBSD-src-bfafa48e01d906b20e59864014f4f724cdfd32e3.zip
FreeBSD-src-bfafa48e01d906b20e59864014f4f724cdfd32e3.tar.gz
Don't use a C compiler to assemble a pure asm file.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/i386/libi386/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/boot/i386/libi386/Makefile b/sys/boot/i386/libi386/Makefile
index b7cb2cc..22ee1e5 100644
--- a/sys/boot/i386/libi386/Makefile
+++ b/sys/boot/i386/libi386/Makefile
@@ -7,7 +7,7 @@ SRCS= biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \
biospci.c biossmap.c bootinfo.c bootinfo32.c bootinfo64.c \
comconsole.c devicename.c elf32_freebsd.c \
elf64_freebsd.c gatea20.c \
- i386_copy.c i386_module.c nullconsole.c pxe.c pxetramp.s \
+ i386_copy.c i386_module.c nullconsole.c pxe.c \
time.c vidconsole.c amd64_tramp.S
CFLAGS+= -ffreestanding
@@ -39,11 +39,14 @@ ${SRCS:M*.c:R:S/$/.o/g}: machine
.if exists(${.CURDIR}/../../../i386/include)
beforedepend ${OBJS}: machine
+CLEANFILES+= machine
machine:
ln -sf ${.CURDIR}/../../../i386/include machine
.endif
-CLEANFILES+= machine
+OBJS+= pxetramp.o
+pxetramp.o: pxetramp.s
+ as -o ${.TARGET} ${.ALLSRC:M*pxetramp*}
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud