11.28Srin# $NetBSD: Makefile.booters,v 1.28 2021/05/06 13:23:36 rin Exp $ 21.1Sjdolecek 31.1SjdolecekS?= ${.CURDIR}/../../../.. 41.1SjdolecekMDEC_DIR?= /usr/mdec 51.1SjdolecekRELOC?= 0x3F0000 61.18SscwCOPTS?= -Os -Wall -Wno-main -Wmissing-prototypes -Wstrict-prototypes \ 71.27Smrg -ffreestanding -fomit-frame-pointer -fno-unwind-tables \ 81.27Smrg -fcommon 91.1SjdolecekDEFS?= 101.1SjdolecekSTRIPFLAG?= 111.1Sjdolecek 121.8StvNOMAN= # defined 131.8StvNOMAN= # defined 141.8StvNOLINT= # defined 151.8StvNOLINT= # defined 161.8StvNOPIC= # defined 171.8StvNOPROFILE=# defined 181.8StvNOLINT=# defined 191.1Sjdolecek 201.1SjdolecekINCPATH=-I${.OBJDIR} -I${.CURDIR} -I${.CURDIR}/../libsa -I${.CURDIR}/../libbug \ 211.1Sjdolecek -I${.CURDIR}/../../include -I${S} -I${S}/lib/libsa 221.14StsutsuiCFLAGS= -nostdinc -m68020-60 -Wa,-m68030 231.14StsutsuiCPPFLAGS+= -D__daddr_t=int32_t 241.17StsutsuiCPPFLAGS+= -D_STANDALONE 251.14StsutsuiCPPFLAGS+= ${INCPATH} ${DEFS} 261.1SjdolecekBINDIR= ${MDEC_DIR} 271.1Sjdolecek 281.15Stsutsui# XXX SHOULD NOT NEED TO DEFINE THESE! 291.15StsutsuiLIBCRT0= 301.25StsutsuiLIBCRTI= 311.15StsutsuiLIBC= 321.15StsutsuiLIBCRTBEGIN= 331.15StsutsuiLIBCRTEND= 341.15Stsutsui 351.26Schristos.include "${S}/conf/newvers_stand.mk" 361.1Sjdolecek 371.20Stsutsui.include <bsd.klinks.mk> 381.1Sjdolecek 391.1Sjdolecek.if defined(LIB) 401.1Sjdolecek 411.19Stsutsuilib${LIB}.a:: ${OBJS} 421.1Sjdolecek 431.1Sjdolecek.else 441.1Sjdolecek 451.5SscwPROGDEPENDS?= ${SRTOBJ} ${BUGCRT} ${OBJS} ${LIBS} 461.5SscwPROGLINKOBJS?= ${PROGDEPENDS} 471.5Sscw 481.5Sscw${PROG}: machine m68k ${PROGDEPENDS} 491.5Sscw ${LD} -N -Ttext ${RELOC} -o $@ ${PROGLINKOBJS} 501.1Sjdolecek 511.9Sbjh21.include <bsd.own.mk> 521.9Sbjh21 531.1SjdolecekLIB_SA_DIR= ${.CURDIR}/../libsa 541.9Sbjh21LIBSA_DIR!= cd ${LIB_SA_DIR} && ${PRINTOBJDIR} 551.21StsutsuiLIBSA= ${LIBSA_DIR}/lib/sa/libsa.a 561.21StsutsuiLIBKERN= ${LIBSA_DIR}/lib/kern/libkern.a 571.1Sjdolecek 581.24StsutsuiSRTOBJ?= ${LIBSA_DIR}/SRT0.o 591.24Stsutsui 601.1SjdolecekLIB_BUG_DIR= ${.CURDIR}/../libbug 611.9Sbjh21LIBBUG_DIR!= cd ${LIB_BUG_DIR} && ${PRINTOBJDIR} 621.1SjdolecekLIBBUG=${LIBBUG_DIR}/libbug.a 631.1Sjdolecek 641.1Sjdolecek.PHONY: ${LIBBUG} 651.1Sjdolecek${LIBBUG}: 661.1Sjdolecek @echo making sure the libbug is up to date... 671.1Sjdolecek @(cd ${LIB_BUG_DIR}; ${MAKE}) 681.1Sjdolecek 691.6SscwBUGCRT=${LIBBUG_DIR}/bugstart.o 701.1Sjdolecek 711.1Sjdolecek.PHONY: ${BUGCRT} 721.1Sjdolecek$(BUGCRT): 731.1Sjdolecek @echo making sure the bugcrt is up to date... 741.6Sscw @(cd ${LIB_BUG_DIR}; ${MAKE} bugstart.o) 751.1Sjdolecek 761.28SrinWRTVID= ${TOOL_MVME68KWRTVID} 771.1Sjdolecek 781.1Sjdolecek.endif 79