Sync usage with man page.
[netbsd-mini2440.git] / sys / arch / landisk / stand / Makefile.bootprogs
blobfb1a929fc10177eed7f8111448b00dcd46540488
1 # $NetBSD: Makefile.bootprogs,v 1.2 2009/04/13 12:54:45 nonaka Exp $
3 S=              ${.CURDIR}/../../../../..
5 NOMAN=          # defined
7 BINDIR=         /usr/mdec
8 BINMODE=        0444
10 PRIMARY_LOAD_ADDRESS?=0x8c201000
11 SECONDARY_LOAD_ADDRESS?=0x8ff00000
13 .include <bsd.own.mk>
15 STRIPFLAG=      # override
17 LIBCRT0=        # nothing
18 LIBCRTBEGIN=    # nothing
19 LIBCRTEND=      # nothing
20 LIBC=           # nothing
22 .PATH:  ${.CURDIR}/..
24 COPTS=          -m4-nofpu -Os -ffreestanding
26 LDFLAGS+=       -N
27 CFLAGS+=        -Wall -Wmissing-prototypes -Wstrict-prototypes
28 CPPFLAGS+=      -nostdinc -D_STANDALONE
29 CPPFLAGS+=      -DSH4
30 CPPFLAGS+=      -I${.OBJDIR} -I${.CURDIR}/.. -I${.CURDIR}/../../boot -I${S}
32 .if !make(obj) && !make(clean) && !make(cleandir)
33 .BEGIN:
34         -rm -f machine && \
35             ln -s ${S}/arch/${MACHINE}/include machine
36         -rm -f ${MACHINE_CPU} && \
37             ln -s ${S}/arch/${MACHINE_CPU}/include ${MACHINE_CPU}
38 .ifdef LIBOBJ
39         -rm -f lib && ln -s ${LIBOBJ}/lib lib
40         mkdir -p ${LIBOBJ}/lib
41 .endif
42 .endif
44 ### find out what to use for libsa
45 SA_AS= library
46 .include "${S}/lib/libsa/Makefile.inc"
47 LIBSA= ${SALIB}
48 CPPFLAGS+=      -I$(SADIR)
50 ### find out what to use for libkern
51 KERN_AS= library
52 .include "${S}/lib/libkern/Makefile.inc"
53 LIBKERN= ${KERNLIB}
55 ### find out what to use for libz
56 Z_AS= library
57 .include "${S}/lib/libz/Makefile.inc"
58 LIBZ= ${ZLIB}
60 cleandir distclean: cleanlibdir
62 cleanlibdir:
63         -rm -rf lib