# $NetBSD: Makefile.booters,v 1.15 2008/03/28 16:41:37 tsutsui Exp $ NOMAN= # defined NOPIE= # defined .include # $S must correspond to the top of the 'sys' tree S?= ${.CURDIR}/../../../.. BINMODE?= 444 # XXX SHOULD NOT NEED TO DEFINE THESE! LIBCRT0= LIBC= LIBCRTBEGIN= LIBCRTEND= realall: ${PROG} .PATH: ${.CURDIR}/../common AFLAGS+= -D_LOCORE -D_KERNEL -mno-abicalls CPPFLAGS+= -nostdinc -D_STANDALONE -DNO_ABICALLS -I${.OBJDIR} -I${S} # compiler flags for smallest code size CFLAGS= -ffreestanding -Os -Wall -Werror -mno-abicalls -msoft-float -G 1024 CFLAGS+= -Wall -Werror CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith CFLAGS+= -Wno-pointer-sign LDBUG?= -T $S/arch/mips/conf/stand.ldscript CPPFLAGS+= -Dtsarmips -DTSAR # PROG set by parent. NOMAN= # defined VERSIONMACHINE=tsarmips .include "${S}/conf/newvers_stand.mk" NETBSD_VERS!= ${HOST_SH} ${S}/conf/osrelease.sh CPPFLAGS+= -DNETBSD_VERS='"${NETBSD_VERS}"' ### find out what to use for libkern KERN_AS= library .include "${S}/lib/libkern/Makefile.inc" LIBKERN= ${KERNLIB} ### find out what to use for libsa SA_AS= library .include "${S}/lib/libsa/Makefile.inc" LIBSA= ${SALIB} .if !make(obj) && !make(clean) && !make(cleandir) .BEGIN: @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine) @([ -h mips ] || ln -s ${S}/arch/mips/include mips) .NOPATH: machine mips .endif CLEANFILES+= machine mips LIBS= ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} .include