1 # $NetBSD: Makefile,v 1.1 2007/12/17 19:09:44 garbled Exp $
7 COMMON
= ${.CURDIR
}/..
/common
8 COMMONOBJ
!= cd
${COMMON} && ${PRINTOBJDIR}
10 .PATH
: ${.CURDIR
}/..
/boot
${COMMONOBJ}
12 S
= ${.CURDIR
}/..
/..
/..
/..
15 MKBOOTIMAGE
= ${.CURDIR
}/..
/..
/..
/powerpc
/stand
/mkbootimage
22 SRCS
+= boot.c clock.c com.c conf.c cons.c devopen.c
23 SRCS
+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c
24 SRCS
+= ns16550.c vers.c
27 CFLAGS
= -Os
-mmultiple
-ffreestanding
28 CFLAGS
+= -Werror
-Wall
-Wstrict-prototypes
-Wmissing-prototypes
29 AFLAGS
= -x assembler-with-cpp
-traditional-cpp
31 CPPFLAGS
= -nostdinc
-I
${.OBJDIR
} -I
${MKBOOTIMAGE} -I
${S}
32 CPPFLAGS
+= -D_STANDALONE
-DRELOC
=${RELOC} -DUSE_SCAN
33 CPPFLAGS
+= -D__daddr_t
=int32_t
34 #CPPFLAGS+= -DDBMONITOR
35 CPPFLAGS
+= -DCONS_SERIAL
-DCOMSPEED
=9600 -DCOMPORT
=0x30
40 # XXX SHOULD NOT NEED TO DEFINE THESE!
49 CLEANFILES
+= vers.c machine powerpc
51 LIBS
= ${L}/sa
/libsa.a
${L}/kern
/libkern.a
${L}/z
/libz.a
53 .if
!make
(obj
) && !make
(clean) && !make
(cleandir
)
54 .BEGIN
: machine powerpc
55 .NOPATH
: machine powerpc
59 ln
-s
${S}/arch
/${MACHINE}/include $@
63 ln
-s
${S}/arch
/powerpc
/include $@
66 vers.c
: ${.CURDIR
}/..
/boot
/version
67 ${HOST_SH} ${S}/conf
/newvers_stand.sh
${.CURDIR
}/..
/boot
/version
"rs6000" ${NEWVERSWHAT}
69 ${PROG}: ${OBJS} ${LIBS}
70 ${LD} -o
${PROG} -s
-N
-T
${.CURDIR
}/..
/boot
/ld.script \
71 -Ttext
${RELOC} ${OBJS} ${LIBS}
73 .
include <bsd.prog.mk
>