1 # $NetBSD: Makefile.bootprogs,v 1.2 2009/04/13 12:54:45 nonaka Exp $
3 S= ${.CURDIR}/../../../../..
10 PRIMARY_LOAD_ADDRESS?=0x8c201000
11 SECONDARY_LOAD_ADDRESS?=0x8ff00000
18 LIBCRTBEGIN= # nothing
24 COPTS= -m4-nofpu -Os -ffreestanding
27 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes
28 CPPFLAGS+= -nostdinc -D_STANDALONE
30 CPPFLAGS+= -I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../boot -I${S}
32 .if !make(obj) && !make(clean) && !make(cleandir)
35 ln -s ${S}/arch/${MACHINE}/include machine
36 -rm -f ${MACHINE_CPU} && \
37 ln -s ${S}/arch/${MACHINE_CPU}/include ${MACHINE_CPU}
39 -rm -f lib && ln -s ${LIBOBJ}/lib lib
40 mkdir -p ${LIBOBJ}/lib
44 ### find out what to use for libsa
46 .include "${S}/lib/libsa/Makefile.inc"
50 ### find out what to use for libkern
52 .include "${S}/lib/libkern/Makefile.inc"
55 ### find out what to use for libz
57 .include "${S}/lib/libz/Makefile.inc"
60 cleandir distclean: cleanlibdir