diff options
author | obrien <obrien@FreeBSD.org> | 2003-06-07 08:03:19 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2003-06-07 08:03:19 +0000 |
commit | 9af6eaa8ec9459dced47ea84ff6ded7516777822 (patch) | |
tree | 5cb5248ee119e8c52597428caaeb2698a03f30ff | |
parent | f5de8effa14f6b53ce0257c51c2201235ab63773 (diff) | |
download | FreeBSD-src-9af6eaa8ec9459dced47ea84ff6ded7516777822.zip FreeBSD-src-9af6eaa8ec9459dced47ea84ff6ded7516777822.tar.gz |
Don't use a C compiler to assemble a pure asm file.
-rw-r--r-- | sys/boot/i386/kgzldr/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/boot/i386/kgzldr/Makefile b/sys/boot/i386/kgzldr/Makefile index 08c3081..fff828b 100644 --- a/sys/boot/i386/kgzldr/Makefile +++ b/sys/boot/i386/kgzldr/Makefile @@ -1,6 +1,6 @@ # $FreeBSD$ -SRCS= start.s boot.c inflate.c lib.c crt.s sio.s +SRCS= boot.c inflate.c lib.c OBJS= ${SRCS:N*.h:R:S/$/.o/g} CFLAGS= -ffreestanding CFLAGS+=-Os @@ -8,6 +8,12 @@ CFLAGS+=-DKZIP LDFLAGS=-nostdlib -static -r .PATH: ${.CURDIR}/../../../kern +.for asm in start crt sio +OBJS+= ${asm}.o +${asm}.o: ${asm}.s + as -o ${.TARGET} ${.ALLSRC:M*${asm}*} +.endfor + CLEANFILES=kgzldr.o BOOT_COMCONSOLE_PORT?= 0x3f8 |