66422f5b7a
under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha
22 lines
412 B
Makefile
22 lines
412 B
Makefile
# $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= -ffreestanding
|
|
CFLAGS+=-Os
|
|
CFLAGS+=-DKZIP
|
|
LDFLAGS=-nostdlib -static -r
|
|
BINDIR= /usr/lib
|
|
.PATH: ${.CURDIR}/../../../kern
|
|
|
|
CLEANFILES=${FILES}
|
|
|
|
BOOT_COMCONSOLE_PORT?= 0x3f8
|
|
M4FLAGS+=-DSIOPRT=${BOOT_COMCONSOLE_PORT}
|
|
|
|
kgzldr.o: ${OBJS}
|
|
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS}
|
|
|
|
.include <bsd.prog.mk>
|