1# $NetBSD: Makefile.bootprogs,v 1.5 2013/08/21 07:08:30 matt Exp $ 2 3S= ${.CURDIR}/../../../../.. 4 5NOMAN= # defined 6 7BINDIR= /usr/mdec 8BINMODE= 0444 9 10PRIMARY_LOAD_ADDRESS?=0x8c201000 11SECONDARY_LOAD_ADDRESS?=0x8ff00000 12 13.include <bsd.own.mk> 14.include <bsd.klinks.mk> 15 16STRIPFLAG= # override 17 18LIBCRT0= # nothing 19LIBCRTBEGIN= # nothing 20LIBCRTEND= # nothing 21LIBC= # nothing 22 23.PATH: ${.CURDIR}/.. 24 25COPTS= -m4-nofpu -Os -ffreestanding 26 27LDFLAGS+= -N 28CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes 29CPPFLAGS+= -nostdinc -D_STANDALONE 30CPPFLAGS+= -DSH4 31CPPFLAGS+= -I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../boot -I${S} 32 33### find out what to use for libsa 34SA_AS= library 35.include "${S}/lib/libsa/Makefile.inc" 36LIBSA= ${SALIB} 37CPPFLAGS+= -I$(SADIR) 38 39### find out what to use for libkern 40KERN_AS= library 41.include "${S}/lib/libkern/Makefile.inc" 42LIBKERN= ${KERNLIB} 43 44### find out what to use for libz 45Z_AS= library 46.include "${S}/lib/libz/Makefile.inc" 47LIBZ= ${ZLIB} 48 49cleandir distclean: .WAIT cleanlibdir 50 51cleanlibdir: 52 -rm -rf lib 53