diff options
author | rnordier <rnordier@FreeBSD.org> | 2000-11-04 13:03:52 +0000 |
---|---|---|
committer | rnordier <rnordier@FreeBSD.org> | 2000-11-04 13:03:52 +0000 |
commit | d72251aa8491e42caa0650766ac3a8bada13c466 (patch) | |
tree | d6a749eef4da41dec9995d1a13f28e263cda34bc /sys/boot/i386/kgzldr/Makefile | |
parent | 18e0fe6967f684c8adb8dd9db3a8cb24f70e7705 (diff) | |
download | FreeBSD-src-d72251aa8491e42caa0650766ac3a8bada13c466.zip FreeBSD-src-d72251aa8491e42caa0650766ac3a8bada13c466.tar.gz |
Support a.out: avoid (%dx) in in/out instructions, and use an m4
macro to supply underscores for externals.
Diffstat (limited to 'sys/boot/i386/kgzldr/Makefile')
-rw-r--r-- | sys/boot/i386/kgzldr/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/boot/i386/kgzldr/Makefile b/sys/boot/i386/kgzldr/Makefile index ea4e701..2a4513d 100644 --- a/sys/boot/i386/kgzldr/Makefile +++ b/sys/boot/i386/kgzldr/Makefile @@ -4,7 +4,12 @@ MAINTAINER= rnordier PROG= kgzldr.o SRCS= start.s boot.c inflate.c lib.c crt.s sio.s -CFLAGS= -fno-builtin -Os +CFLAGS= -fno-builtin +.if ${OBJFORMAT} == aout +CFLAGS+=-O2 +.else +CFLAGS+=-Os +.endif CFLAGS+=-DKZIP LDFLAGS=-nostdlib -static -r NOMAN= @@ -14,7 +19,7 @@ STRIP= .PATH: ${.CURDIR}/../../../kern M4?= m4 -M4FLAGS= +M4FLAGS=-DOBJFORMAT=${OBJFORMAT} BOOT_COMCONSOLE_PORT?= 0x3f8 M4FLAGS+=-DSIOPRT=${BOOT_COMCONSOLE_PORT} @@ -25,7 +30,7 @@ kgzldr.o: ${OBJS} ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} .s.o: - (cd ${.CURDIR}; ${M4} ${M4FLAGS} ${.IMPSRC}) |\ + (cd ${.CURDIR}; ${M4} ${M4FLAGS} kgzldr.m4 ${.IMPSRC}) |\ ${AS} ${AFLAGS} -o ${.TARGET} .include <bsd.prog.mk> |