Expand PMF_FN_* macros.
[netbsd-mini2440.git] / sys / arch / rs6000 / stand / boot / Makefile
blobc75f77390a64be8d24b27e602f1b2ad80f66b07a
1 # $NetBSD: Makefile,v 1.1 2007/12/17 19:09:44 garbled Exp $
3 NOMAN= # defined
5 .include <bsd.own.mk>
7 COMMON= ${.CURDIR}/../common
8 COMMONOBJ!= cd ${COMMON} && ${PRINTOBJDIR}
10 .PATH: ${.CURDIR}/../boot ${COMMONOBJ}
12 S= ${.CURDIR}/../../../..
13 L= ${COMMONOBJ}/lib
15 MKBOOTIMAGE= ${.CURDIR}/../../../powerpc/stand/mkbootimage
17 BASE?= boot
18 PROG= ${BASE}
19 NEWVERSWHAT= "BOOT"
21 SRCS= srt0.s
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
25 SRCS+= iplcb.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
37 STRIPFLAG=
38 BINMODE= 444
40 # XXX SHOULD NOT NEED TO DEFINE THESE!
41 LIBCRT0=
42 LIBC=
43 LIBCRTBEGIN=
44 LIBCRTEND=
46 RELOC= 0x800000
47 #RELOC= 0x0
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
57 machine::
58 -rm -f $@
59 ln -s ${S}/arch/${MACHINE}/include $@
61 powerpc::
62 -rm -f $@
63 ln -s ${S}/arch/powerpc/include $@
64 .endif
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>