Makefile.bootprogs revision 1.5 1 # $NetBSD: Makefile.bootprogs,v 1.5 2013/08/21 07:08:30 matt 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 LIBCRTBEGIN= # nothing
20 LIBCRTEND= # nothing
21 LIBC= # nothing
22
23 .PATH: ${.CURDIR}/..
24
25 COPTS= -m4-nofpu -Os -ffreestanding
26
27 LDFLAGS+= -N
28 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes
29 CPPFLAGS+= -nostdinc -D_STANDALONE
30 CPPFLAGS+= -DSH4
31 CPPFLAGS+= -I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../boot -I${S}
32
33 ### find out what to use for libsa
34 SA_AS= library
35 .include "${S}/lib/libsa/Makefile.inc"
36 LIBSA= ${SALIB}
37 CPPFLAGS+= -I$(SADIR)
38
39 ### find out what to use for libkern
40 KERN_AS= library
41 .include "${S}/lib/libkern/Makefile.inc"
42 LIBKERN= ${KERNLIB}
43
44 ### find out what to use for libz
45 Z_AS= library
46 .include "${S}/lib/libz/Makefile.inc"
47 LIBZ= ${ZLIB}
48
49 cleandir distclean: .WAIT cleanlibdir
50
51 cleanlibdir:
52 -rm -rf lib
53