diff --git a/sys/boot/pc98/kgzldr/Makefile b/sys/boot/pc98/kgzldr/Makefile index 09c9f5e1fc22..c0820c14b0e4 100644 --- a/sys/boot/pc98/kgzldr/Makefile +++ b/sys/boot/pc98/kgzldr/Makefile @@ -1,5 +1,6 @@ # $FreeBSD$ +FILES= kgzldr.o SRCS= start.s boot.c inflate.c lib.c crt.s sio.s OBJS= ${SRCS:N*.h:R:S/$/.o/g} CFLAGS= -fno-builtin @@ -10,23 +11,20 @@ CFLAGS+=-Os .endif CFLAGS+=-DKZIP LDFLAGS=-nostdlib -static -r -NOMAN= BINDIR= /usr/lib -BINMODE=444 -STRIP= .PATH: ${.CURDIR}/../../../kern .PATH: ${.CURDIR}/../../i386/kgzldr AFLAGS+=--defsym PC98=1 +CLEANFILES=${FILES} + M4?= m4 M4FLAGS=-DOBJFORMAT=${OBJFORMAT} BOOT_COMCONSOLE_PORT?= 0x238 M4FLAGS+=-DSIOPRT=${BOOT_COMCONSOLE_PORT} -all: kgzldr.o - kgzldr.o: ${OBJS} ${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}