1 1.1.2.3 nathanw # $NetBSD: Makefile.booters,v 1.1.2.3 2002/06/20 03:40:06 nathanw Exp $ 2 1.1.2.2 nathanw 3 1.1.2.2 nathanw S?= ${.CURDIR}/../../../.. 4 1.1.2.2 nathanw MDEC_DIR?= /usr/mdec 5 1.1.2.2 nathanw RELOC?= 0x3F0000 6 1.1.2.2 nathanw COPTS?= -O2 -Wall -Wno-main -Wmissing-prototypes -Wstrict-prototypes 7 1.1.2.2 nathanw DEFS?= 8 1.1.2.2 nathanw STRIPFLAG?= 9 1.1.2.2 nathanw 10 1.1.2.2 nathanw NOMAN= # defined 11 1.1.2.2 nathanw NOMAN= # defined 12 1.1.2.2 nathanw NOLINT= # defined 13 1.1.2.2 nathanw NOLINT= # defined 14 1.1.2.2 nathanw NOPIC= # defined 15 1.1.2.2 nathanw NOPROFILE=# defined 16 1.1.2.2 nathanw NOLINT=# defined 17 1.1.2.2 nathanw 18 1.1.2.2 nathanw INCPATH=-I${.OBJDIR} -I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \ 19 1.1.2.2 nathanw -I${.CURDIR}/../../include -I${S} -I${S}/lib/libsa 20 1.1.2.2 nathanw CFLAGS= -nostdinc -D_STANDALONE \ 21 1.1.2.2 nathanw -DLIBSA_USE_MEMSET -DLIBSA_USE_MEMCPY ${INCPATH} ${DEFS} 22 1.1.2.2 nathanw BINDIR= ${MDEC_DIR} 23 1.1.2.2 nathanw 24 1.1.2.2 nathanw .if exists(${.CURDIR}/version) 25 1.1.2.2 nathanw SRCS+= vers.c 26 1.1.2.2 nathanw CLEANFILES+= vers.c 27 1.1.2.2 nathanw 28 1.1.2.2 nathanw vers.c: version 29 1.1.2.2 nathanw sh ${S}/conf/newvers_stand.sh -DM ${.CURDIR}/version "mvmeppc" 30 1.1.2.2 nathanw .endif 31 1.1.2.2 nathanw 32 1.1.2.2 nathanw CLEANFILES+= machine powerpc 33 1.1.2.2 nathanw 34 1.1.2.2 nathanw machine : 35 1.1.2.2 nathanw -rm -f ${.TARGET} 36 1.1.2.2 nathanw ln -s $S/arch/mvmeppc/include machine 37 1.1.2.2 nathanw 38 1.1.2.2 nathanw powerpc : 39 1.1.2.2 nathanw -rm -f ${.TARGET} 40 1.1.2.2 nathanw ln -s $S/arch/powerpc/include powerpc 41 1.1.2.2 nathanw 42 1.1.2.2 nathanw .if defined(LIB) 43 1.1.2.2 nathanw 44 1.1.2.2 nathanw lib${LIB}.a:: machine powerpc ${OBJS} 45 1.1.2.2 nathanw beforedepend: machine powerpc 46 1.1.2.2 nathanw 47 1.1.2.2 nathanw .else 48 1.1.2.2 nathanw 49 1.1.2.2 nathanw PROGDEPENDS?= ${SRTOBJ} ${OBJS} ${LIBS} 50 1.1.2.2 nathanw PROGLINKOBJS?= ${PROGDEPENDS} 51 1.1.2.2 nathanw 52 1.1.2.2 nathanw ${PROG}: machine powerpc ${PROGDEPENDS} 53 1.1.2.2 nathanw ${LD} -N -Ttext ${RELOC} -o $@ ${PROGLINKOBJS} 54 1.1.2.2 nathanw 55 1.1.2.3 nathanw .include <bsd.own.mk> 56 1.1.2.3 nathanw 57 1.1.2.2 nathanw LIB_SA_DIR= ${.CURDIR}/../libsa 58 1.1.2.3 nathanw LIBSA_DIR!= cd ${LIB_SA_DIR} && ${PRINTOBJDIR} 59 1.1.2.2 nathanw LIBSA=${LIBSA_DIR}/libsa.a 60 1.1.2.2 nathanw 61 1.1.2.2 nathanw .PHONY: ${LIBSA} 62 1.1.2.2 nathanw ${LIBSA}: 63 1.1.2.2 nathanw @echo making sure libsa is up to date... 64 1.1.2.2 nathanw @cd ${LIB_SA_DIR} && ${MAKE} 65 1.1.2.2 nathanw 66 1.1.2.2 nathanw SRTOBJ?= ${LIBSA_DIR}/srt0.o 67 1.1.2.2 nathanw .PHONY: ${SRTOBJ} 68 1.1.2.2 nathanw ${SRTOBJ}: 69 1.1.2.2 nathanw @echo making sure srt0 is up to date... 70 1.1.2.2 nathanw @cd ${LIB_SA_DIR} && ${MAKE} srt0.o 71 1.1.2.2 nathanw 72 1.1.2.2 nathanw #WRTVID_BOOT_DIR= ${.CURDIR}/../wrtvid 73 1.1.2.3 nathanw #WRTVID_DIR!= cd ${WRTVID_BOOT_DIR} && ${PRINTOBJDIR} 74 1.1.2.2 nathanw #WRTVID=${WRTVID_DIR}/wrtvid 75 1.1.2.2 nathanw # 76 1.1.2.2 nathanw #.PHONY: ${WRTVID} 77 1.1.2.2 nathanw #${WRTVID}: 78 1.1.2.2 nathanw # @echo making sure the wrtvid is up to date... 79 1.1.2.2 nathanw # @(cd ${WRTVID_BOOT_DIR}; ${MAKE} dependall) 80 1.1.2.2 nathanw # 81 1.1.2.2 nathanw .endif 82