1 # $NetBSD: Makefile.booters,v 1.9 2009/12/13 08:32:57 tsutsui Exp $
3 S?= ${.CURDIR}/../../../..
6 COPTS?= -O2 -Wall -Wno-main -Wmissing-prototypes -Wstrict-prototypes
18 INCPATH=-I${.OBJDIR} -I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \
19 -I${.CURDIR}/../../include -I${S} -I${S}/lib/libsa
20 CFLAGS= -nostdinc -ffreestanding
21 CPPFLAGS= -D_STANDALONE ${INCPATH} ${DEFS}
24 # XXX SHOULD NOT NEED TO DEFINE THESE!
30 .if exists(${.CURDIR}/version)
35 ${HOST_SH} ${S}/conf/newvers_stand.sh -DM ${.CURDIR}/version "mvmeppc"
38 .include <bsd.klinks.mk>
46 PROGDEPENDS?= ${SRTOBJ} ${OBJS} ${LIBS}
47 PROGLINKOBJS?= ${PROGDEPENDS}
49 ${PROG}: machine powerpc ${PROGDEPENDS}
50 ${LD} -N -Ttext ${RELOC} -o $@ ${PROGLINKOBJS}
54 LIB_SA_DIR= ${.CURDIR}/../libsa
55 LIBSA_DIR!= cd ${LIB_SA_DIR} && ${PRINTOBJDIR}
56 LIBSA=${LIBSA_DIR}/libsa.a
60 @echo making sure libsa is up to date...
61 @cd ${LIB_SA_DIR} && ${MAKE}
63 SRTOBJ?= ${LIBSA_DIR}/srt0.o
66 @echo making sure srt0 is up to date...
67 @cd ${LIB_SA_DIR} && ${MAKE} srt0.o
69 #WRTVID_BOOT_DIR= ${.CURDIR}/../wrtvid
70 #WRTVID_DIR!= cd ${WRTVID_BOOT_DIR} && ${PRINTOBJDIR}
71 #WRTVID=${WRTVID_DIR}/wrtvid
75 # @echo making sure the wrtvid is up to date...
76 # @(cd ${WRTVID_BOOT_DIR}; ${MAKE} dependall)