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