1 1.3.2.2 bouyer # $NetBSD: Makefile.booters,v 1.3.2.2 2000/11/20 20:15:27 bouyer Exp $ 2 1.3.2.2 bouyer 3 1.3.2.2 bouyer S?= ${.CURDIR}/../../../.. 4 1.3.2.2 bouyer MDEC_DIR?= /usr/mdec 5 1.3.2.2 bouyer RELOC?= 0x3F0000 6 1.3.2.2 bouyer COPTS?= -O2 -Wall -Wno-main -Wmissing-prototypes -Wstrict-prototypes 7 1.3.2.2 bouyer DEFS?= 8 1.3.2.2 bouyer STRIPFLAG?= 9 1.3.2.2 bouyer 10 1.3.2.2 bouyer NOMAN= 1 11 1.3.2.2 bouyer MKMAN= no 12 1.3.2.2 bouyer NOLINT= 1 13 1.3.2.2 bouyer MKLINT= no 14 1.3.2.2 bouyer MKPIC= no 15 1.3.2.2 bouyer MKPROFILE=no 16 1.3.2.2 bouyer MKLINT=no 17 1.3.2.2 bouyer 18 1.3.2.2 bouyer INCPATH=-I${.OBJDIR} -I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \ 19 1.3.2.2 bouyer -I${.CURDIR}/../../include -I${S} -I${S}/lib/libsa 20 1.3.2.2 bouyer CFLAGS= -nostdinc -D_STANDALONE ${INCPATH} ${DEFS} 21 1.3.2.2 bouyer BINDIR= ${MDEC_DIR} 22 1.3.2.2 bouyer 23 1.3.2.2 bouyer .if exists(${.CURDIR}/version) 24 1.3.2.2 bouyer SRCS+= vers.c 25 1.3.2.2 bouyer CLEANFILES+= vers.c 26 1.3.2.2 bouyer 27 1.3.2.2 bouyer vers.c: version 28 1.3.2.2 bouyer sh ${S}/conf/newvers_stand.sh -DM ${.CURDIR}/version "mvme68k" 29 1.3.2.2 bouyer .endif 30 1.3.2.2 bouyer 31 1.3.2.2 bouyer CLEANFILES+= machine m68k 32 1.3.2.2 bouyer 33 1.3.2.2 bouyer machine : 34 1.3.2.2 bouyer -rm -f ${.TARGET} 35 1.3.2.2 bouyer ln -s $S/arch/mvme68k/include machine 36 1.3.2.2 bouyer 37 1.3.2.2 bouyer m68k : 38 1.3.2.2 bouyer -rm -f ${.TARGET} 39 1.3.2.2 bouyer ln -s $S/arch/m68k/include m68k 40 1.3.2.2 bouyer 41 1.3.2.2 bouyer .if defined(LIB) 42 1.3.2.2 bouyer 43 1.3.2.2 bouyer lib${LIB}.a:: machine m68k ${OBJS} 44 1.3.2.2 bouyer beforedepend: machine m68k 45 1.3.2.2 bouyer 46 1.3.2.2 bouyer .else 47 1.3.2.2 bouyer 48 1.3.2.2 bouyer ${PROG}: machine m68k ${OBJS} ${LIBS} ${BUGCRT} ${SRTOBJ} 49 1.3.2.2 bouyer ${LD} -N -T ${RELOC} -o $@ ${BUGCRT} ${SRTOBJ} ${OBJS} ${LIBS} 50 1.3.2.2 bouyer 51 1.3.2.2 bouyer LIB_SA_DIR= ${.CURDIR}/../libsa 52 1.3.2.2 bouyer LIBSA_DIR!=cd ${LIB_SA_DIR}; \ 53 1.3.2.2 bouyer printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f- 54 1.3.2.2 bouyer LIBSA=${LIBSA_DIR}/libsa.a 55 1.3.2.2 bouyer 56 1.3.2.2 bouyer .PHONY: ${LIBSA} 57 1.3.2.2 bouyer ${LIBSA}: 58 1.3.2.2 bouyer @echo making sure the libsa is up to date... 59 1.3.2.2 bouyer @cd ${LIB_SA_DIR} && ${MAKE} 60 1.3.2.2 bouyer 61 1.3.2.2 bouyer SRTOBJ?= ${LIBSA_DIR}/SRT0.o 62 1.3.2.2 bouyer .PHONY: ${SRTOBJ} 63 1.3.2.2 bouyer ${SRTOBJ}: 64 1.3.2.2 bouyer @echo making sure the libsa is up to date... 65 1.3.2.2 bouyer @cd ${LIB_SA_DIR} && ${MAKE} SRT0.o 66 1.3.2.2 bouyer 67 1.3.2.2 bouyer LIB_BUG_DIR= ${.CURDIR}/../libbug 68 1.3.2.2 bouyer LIBBUG_DIR!=cd ${LIB_BUG_DIR}; \ 69 1.3.2.2 bouyer printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f- 70 1.3.2.2 bouyer LIBBUG=${LIBBUG_DIR}/libbug.a 71 1.3.2.2 bouyer 72 1.3.2.2 bouyer .PHONY: ${LIBBUG} 73 1.3.2.2 bouyer ${LIBBUG}: 74 1.3.2.2 bouyer @echo making sure the libbug is up to date... 75 1.3.2.2 bouyer @(cd ${LIB_BUG_DIR}; ${MAKE}) 76 1.3.2.2 bouyer 77 1.3.2.2 bouyer BUGCRT=${LIBBUG_DIR}/bugcrt.o 78 1.3.2.2 bouyer 79 1.3.2.2 bouyer .PHONY: ${BUGCRT} 80 1.3.2.2 bouyer $(BUGCRT): 81 1.3.2.2 bouyer @echo making sure the bugcrt is up to date... 82 1.3.2.2 bouyer @(cd ${LIB_BUG_DIR}; ${MAKE} bugcrt.o) 83 1.3.2.2 bouyer 84 1.3.2.2 bouyer WRTVID_BOOT_DIR= ${.CURDIR}/../wrtvid 85 1.3.2.2 bouyer WRTVID_DIR!=cd ${WRTVID_BOOT_DIR}; \ 86 1.3.2.2 bouyer printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}\n" | ${MAKE} -s -f- 87 1.3.2.2 bouyer WRTVID=${WRTVID_DIR}/wrtvid 88 1.3.2.2 bouyer 89 1.3.2.2 bouyer .PHONY: ${WRTVID} 90 1.3.2.2 bouyer ${WRTVID}: 91 1.3.2.2 bouyer @echo making sure the wrtvid is up to date... 92 1.3.2.2 bouyer @(cd ${WRTVID_BOOT_DIR}; ${MAKE}) 93 1.3.2.2 bouyer 94 1.3.2.2 bouyer .endif 95