No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / hp700 / stand / Makefile.buildboot
blob62d7bcc957b0fb1e8ed807fccaf87bf73a39d617
1 #       $NetBSD: Makefile.buildboot,v 1.12 2008/06/12 14:08:29 skrll Exp $
3 RELOC=  120000
4 HEAP_LIMIT=0x1c0000
5 #DEBUGFLAGS=-DDEBUG
6 #DEBUGFLAGS+=-DDEBUGBUG
7 #DEBUGFLAGS+=-DPDCDEBUG
8 #DEBUGFLAGS+=-DLIFDEBUG
9 #DEBUGFLAGS+=-DEXEC_DEBUG
10 #DEBUGFLAGS+=-DALLOC_TRACE
11 #DEBUGLIBS=     no
13 LIBCRT0=        # nothing
14 LIBCRTBEGIN=    # nothing
15 LIBCRTEND=      # nothing
16 LIBC=           # nothing
18 S=              ${.CURDIR}/../../../..
20 .PATH: ${.CURDIR}/../common
22 SRCS=           ${PROGSOURCE} ${COMMONSOURCE} ${DRIVERSOURCE}
23 NOMAN=          
24 STRIPFLAG=
25 BINMODE=        444
27 CPPFLAGS+=      -nostdinc -I${.CURDIR}/../../.. -I${.CURDIR}/../../../.. \
28                 -I${.OBJDIR}
29 CFLAGS+=        -Os -msoft-float -Wno-main
30 CFLAGS+=        -fno-builtin
31 CFLAGS+=        -mdisable-fpregs -mfast-indirect-calls -mpa-risc-1-0
33 SRCS+=          vers.c
34 CLEANFILES+=    vers.c
36 vers.c: ${.CURDIR}/version
37         ${HOST_SH} ${S}/conf/newvers_stand.sh ${.CURDIR}/version \
38                 hp700 ${NEWVERSWHAT}
40 CPPFLAGS+=              -D_STANDALONE -Dhp700 ${DEBUGFLAGS}
41 CPPFLAGS+=              -DRELOC=0x${RELOC} -DHEAP_LIMIT=${HEAP_LIMIT}
42 CPPFLAGS+=              -DNO_NET
44 COMMONSOURCE=           cons.c dev_hppa.c dk.c itecons.c \
45                         machdep.c milli_tiny.S pdc.c time.c
46 DRIVERSOURCE=           
48 ### find out what to use for libkern
49 KERN_AS=        library
50 .include "${S}/lib/libkern/Makefile.inc"
51 LIBKERN=        ${KERNLIB}
53 ### find out what to use for libz
54 Z_AS=           library
55 .include "${S}/lib/libz/Makefile.inc"
56 LIBZ=           ${ZLIB}
58 ### find out what to use for libsa
59 SA_AS=          library
60 SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
61 .include "${S}/lib/libsa/Makefile.inc"
62 LIBSA=          ${SALIB}
64 LDFLAGS+=       -static -nostdlib -Wl,-N -Wl,-Ttext,$(RELOC)
65 LDFLAGS+=       -Wl,-T,${.CURDIR}/ld.script -Wl,-Map,${PROG}.map
67 ${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
68         ${CC} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
69         @${SIZE} ${PROG}
70         @echo ${PROG} total size should not exceed XXXX bytes
72 .include <bsd.prog.mk>
73 .include <bsd.klinks.mk>