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