1 1.10 frueauf # $NetBSD: Makefile.buildboot,v 1.10 1999/12/21 21:06:33 frueauf Exp $ 2 1.1 thorpej 3 1.1 thorpej S= ${.CURDIR}/../../../.. 4 1.1 thorpej 5 1.1 thorpej .PATH: ${.CURDIR}/../common 6 1.1 thorpej 7 1.1 thorpej PROG= ${PROGAOUT}.lif 8 1.1 thorpej 9 1.1 thorpej SRCS= ${COMMONSOURCE} ${DRIVERSOURCE} ${PROGSOURCE} 10 1.5 lukem MKMAN= no 11 1.3 thorpej STRIPFLAG= 12 1.1 thorpej BINMODE= 444 13 1.1 thorpej 14 1.10 frueauf .PHONY: machine-links 15 1.10 frueauf beforedepend: machine-links 16 1.10 frueauf # ${MACHINE} then ${MACHINE_ARCH} 17 1.10 frueauf machine-links: 18 1.10 frueauf -rm -f machine && \ 19 1.10 frueauf ln -s $S/arch/hp300/include machine 20 1.10 frueauf -rm -f hp300 && \ 21 1.10 frueauf ln -s $S/arch/hp300/include hp300 22 1.10 frueauf CLEANFILES+=machine hp300 23 1.10 frueauf 24 1.10 frueauf all: machine-links ${PROG} 25 1.10 frueauf 26 1.1 thorpej CLEANFILES+= ${PROGAOUT} vers.c vers.o 27 1.1 thorpej 28 1.10 frueauf CPPFLAGS+= -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. -I${.OBJDIR} 29 1.9 thorpej CFLAGS= -Os -msoft-float 30 1.1 thorpej 31 1.8 thorpej CPPFLAGS+= -DBOOT_AOUT 32 1.8 thorpej #CPPFLAGS+= -DBOOT_ELF 33 1.8 thorpej 34 1.1 thorpej ${PROG}: ${PROGAOUT} ${MKBOOT_PROG} 35 1.1 thorpej ${MKBOOT_PROG} ${PROGAOUT} ${PROG} 36 1.1 thorpej 37 1.1 thorpej .include <bsd.prog.mk> 38 1.1 thorpej 39 1.7 thorpej ### find out what to use for libkern 40 1.7 thorpej KERN_AS= library 41 1.7 thorpej .include "${S}/lib/libkern/Makefile.inc" 42 1.7 thorpej LIBKERN= ${KERNLIB} 43 1.7 thorpej 44 1.2 thorpej ### find out what to use for libz 45 1.2 thorpej Z_AS= library 46 1.2 thorpej .include "${S}/lib/libz/Makefile.inc" 47 1.2 thorpej LIBZ= ${ZLIB} 48 1.2 thorpej 49 1.1 thorpej ### find out what to use for libsa 50 1.1 thorpej SA_AS= library 51 1.8 thorpej SAMISCMAKEFLAGS+="SA_USE_CREAD=yes" 52 1.8 thorpej SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes" 53 1.1 thorpej .include "${S}/lib/libsa/Makefile.inc" 54 1.1 thorpej LIBSA= ${SALIB} 55 1.1 thorpej 56 1.7 thorpej ${PROGAOUT}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} 57 1.1 thorpej sh ${.CURDIR}/../common/newvers.sh ${.CURDIR}/version ${NEWVERSWHAT} 58 1.1 thorpej ${COMPILE.c} vers.c 59 1.1 thorpej ${LD} -N -T ${RELOC} -e begin -o ${PROGAOUT} \ 60 1.7 thorpej ${OBJS} vers.o ${LIBSA} ${LIBZ} ${LIBKERN} 61 1.1 thorpej @size ${PROGAOUT} 62 1.1 thorpej @echo ${PROGAOUT} total size should not exceed 1044480 bytes 63