Makefile.bootprogs revision 1.2
1# $NetBSD: Makefile.bootprogs,v 1.2 2009/04/13 12:54:45 nonaka 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 15STRIPFLAG= # override 16 17LIBCRT0= # nothing 18LIBCRTBEGIN= # nothing 19LIBCRTEND= # nothing 20LIBC= # nothing 21 22.PATH: ${.CURDIR}/.. 23 24COPTS= -m4-nofpu -Os -ffreestanding 25 26LDFLAGS+= -N 27CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes 28CPPFLAGS+= -nostdinc -D_STANDALONE 29CPPFLAGS+= -DSH4 30CPPFLAGS+= -I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../boot -I${S} 31 32.include <bsd.klinks.mk> 33 34lib: 35.ifdef LIBOBJ 36 -rm -f $@ 37 ln -s ${LIBOBJ}/lib . 38 [ -d ${LIBOBJ}/lib ] || mkdir ${LIBOBJ}/lib 39.else 40 mkdir lib 41.endif 42 43### find out what to use for libsa 44SA_AS= library 45.include "${S}/lib/libsa/Makefile.inc" 46LIBSA= ${SALIB} 47CPPFLAGS+= -I$(SADIR) 48 49### find out what to use for libkern 50KERN_AS= library 51.include "${S}/lib/libkern/Makefile.inc" 52LIBKERN= ${KERNLIB} 53 54### find out what to use for libz 55Z_AS= library 56.include "${S}/lib/libz/Makefile.inc" 57LIBZ= ${ZLIB} 58 59realdepend realall: lib 60 61cleandir distclean: cleanlibdir 62 63cleanlibdir: 64 -rm -rf lib 65