Makefile.boot revision 1.4
11.4Sjoerg# $NetBSD: Makefile.boot,v 1.4 2011/01/22 19:19:19 joerg Exp $ 21.1Suwe 31.1SuwePROG?= boot 41.1Suwe 51.1SuweNEWVERSWHAT?= "Boot" 61.1SuweVERSIONFILE?= ${.CURDIR}/../version 71.1Suwe 81.1SuweSRCS= boot.S boot2.c bootinfo.c conf.c devopen.c monitor.c 91.1SuweSRCS+= delay.c getsecs.c 101.1SuweSRCS+= bios.S 111.1SuweSRCS+= biosdisk.c biosdisk_ll.c 121.1SuweSRCS+= scifcons.c cons.c prf.c 131.1Suwe.if !make(depend) 141.1SuweSRCS+= vers.c 151.1Suwe.endif 161.1Suwe 171.1SuweLDFLAGS+= -e boot_start 181.1Suwe 191.1SuweCFLAGS= 201.2StsutsuiCPPFLAGS= -DSUPPORT_FFSv1 211.2StsutsuiCPPFLAGS+= -DSUPPORT_FFSv2 221.1SuweCPPFLAGS+= -DSUPPORT_DOSFS 231.3StsutsuiCPPFLAGS+= -DSUPPORT_USTARFS 241.1SuweCPPFLAGS+= -DDBMONITOR 251.1Suwe#CPPFLAGS+= -DDEBUG 261.1Suwe 271.1SuweSAMISCMAKEFLAGS+="SA_USE_CREAD=yes" 281.1SuweSAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes" 291.1Suwe 301.1Suwe.include "../Makefile.bootprogs" 311.1Suwe 321.1SuweLIBLIST= ${LIBSA} ${LIBZ} ${LIBKERN} 331.1Suwe 341.1SuweCLEANFILES+= ${PROG}.sym ${PROG}.map vers.c 351.1Suwe 361.1Suwevers.c: ${VERSIONFILE} ${SOURCES} ${.CURDIR}/../Makefile.boot 371.4Sjoerg ${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == "yes" :?:-D} \ 381.4Sjoerg ${VERSIONFILE} ${MACHINE} ${NEWVERSWHAT} 391.1Suwe 401.1Suwe${PROG}: ${OBJS} ${LIBLIST} 411.1Suwe ${LD} -o ${PROG}.sym ${LDFLAGS} -Ttext ${SECONDARY_LOAD_ADDRESS} \ 421.1Suwe -Map ${PROG}.map -cref ${OBJS} ${LIBLIST} 431.1Suwe ${OBJCOPY} -O binary ${PROG}.sym ${PROG} 441.1Suwe 451.1Suwe.include <bsd.prog.mk> 46