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