No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / mvmeppc / stand / Makefile.booters
blob68a0e2314c21fae97a49653d61a8a994b2e9aee9
1 #       $NetBSD: Makefile.booters,v 1.9 2009/12/13 08:32:57 tsutsui Exp $
3 S?=             ${.CURDIR}/../../../..
4 MDEC_DIR?=      /usr/mdec
5 RELOC?=         0x3F0000
6 COPTS?=         -O2 -Wall -Wno-main -Wmissing-prototypes -Wstrict-prototypes
7 DEFS?= 
8 STRIPFLAG?=
10 NOMAN=  # defined
11 NOMAN=  # defined
12 NOLINT= # defined
13 NOLINT= # defined
14 NOPIC=  # defined
15 NOPROFILE=# defined
16 NOLINT=# defined
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}
22 BINDIR= ${MDEC_DIR}
24 # XXX SHOULD NOT NEED TO DEFINE THESE!
25 LIBCRT0=
26 LIBC=
27 LIBCRTBEGIN=
28 LIBCRTEND=
30 .if exists(${.CURDIR}/version)
31 SRCS+= vers.c
32 CLEANFILES+= vers.c
34 vers.c: version
35         ${HOST_SH} ${S}/conf/newvers_stand.sh -DM ${.CURDIR}/version "mvmeppc"
36 .endif
38 .include <bsd.klinks.mk>
40 .if defined(LIB)
42 lib${LIB}.a:: ${OBJS}
44 .else
46 PROGDEPENDS?=   ${SRTOBJ} ${OBJS} ${LIBS}
47 PROGLINKOBJS?=  ${PROGDEPENDS}
49 ${PROG}: machine powerpc ${PROGDEPENDS}
50         ${LD} -N -Ttext ${RELOC} -o $@ ${PROGLINKOBJS}
52 .include <bsd.own.mk>
54 LIB_SA_DIR=     ${.CURDIR}/../libsa
55 LIBSA_DIR!=     cd ${LIB_SA_DIR} && ${PRINTOBJDIR}
56 LIBSA=${LIBSA_DIR}/libsa.a
58 .PHONY: ${LIBSA}
59 ${LIBSA}:
60         @echo making sure libsa is up to date...
61         @cd ${LIB_SA_DIR} && ${MAKE}
63 SRTOBJ?= ${LIBSA_DIR}/srt0.o
64 .PHONY: ${SRTOBJ}
65 ${SRTOBJ}:
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
73 #.PHONY: ${WRTVID}
74 #${WRTVID}:
75 #       @echo making sure the wrtvid is up to date...
76 #       @(cd ${WRTVID_BOOT_DIR}; ${MAKE} dependall)
78 .endif