Makefile revision 1.4
11.4Sigy# $NetBSD: Makefile,v 1.4 2003/08/09 08:01:42 igy Exp $ 21.1Sigy.include <bsd.own.mk> 31.1Sigy 41.2SigyROMICE?= no 51.1Sigy 61.1SigyS= ${.CURDIR}/../../../../ 71.1Sigy 81.1SigyPROG= lcboot.out 91.1SigySREC= lcboot.srec 101.1SigyMKMAN= no 111.1SigyWARNS= 1 121.4SigySRCS= start.S main.c com.c conf.c dev_flash.c dev_net.c \ 131.4Sigy devopen.c i28f128.c if_cs.c 141.1Sigy 151.4Sigy#CPPFLAGS+= -DDEBUG -DNET_DEBUG -DNETIF_DEBUG -DARP_DEBUG \ 161.4Sigy# -DETHER_DEBUG -DBOOTP_DEBUG 171.1Sigy 181.1SigySTARTOBJS= 191.1Sigy 201.1SigyNEWVERSWHAT= "L-Card+ Boot" 211.1SigyVERSIONFILE= ${S}/arch/hpcmips/stand/lcboot/version 221.1Sigy 231.1Sigy 241.1Sigy# Make sure we override any optimization options specified by the user. 251.1Sigy#COPTS= -Os 261.1SigyCOPTS= 271.1SigyDBG= 281.1Sigy 291.1SigyAFLAGS+= -D_LOCORE -D_KERNEL 301.1SigyAFLAGS+= -x assembler-with-cpp -traditional-cpp -mips2 -mno-abicalls 311.1SigyINCLUDES= -I${.OBJDIR} -I${S} -I${S}/arch 321.1SigyCPPFLAGS+= ${INCLUDES} -nostdinc -D_STANDALONE -DHEAP_LIMIT=0x8002ffff 331.3SmrgCFLAGS+= -mips2 -EL -mno-abicalls -ffreestanding -mmemcpy 341.3Smrg.if ${USE_TOOLS_TOOLCHAIN} == "yes" 351.3SmrgCFLAGS+= -mno-half-pic 361.3Smrg.endif 371.1SigyLD_SCRIPT= lcboot.ldscript 381.1Sigy 391.1Sigy.if defined(ROMICE) && (${ROMICE} == "yes") 401.1SigyCPPFLAGS+= -DROMICE 411.1Sigy.endif 421.1Sigy 431.1Sigy.if !make(obj) && !make(clean) && !make(cleandir) 441.1Sigy.BEGIN: 451.1Sigy @([ -h machine ] || ln -s ${S}/arch/${MACHINE}/include machine) 461.1Sigy @[ -h mips ] || ln -s ${S}/arch/mips/include mips 471.1Sigy.NOPATH: machine 481.1Sigy.endif 491.1SigyCLEANFILES+= machine mips 501.1Sigy 511.1Sigy${OBJS}: machine mips 521.1Sigy 531.1Sigy### find out what to use for libkern 541.1Sigy.include "${S}/lib/libkern/Makefile.inc" 551.1SigyLIBKERN= ${KERNLIB} 561.1Sigy 571.1Sigy### find out what to use for libz 581.1Sigy.include "${S}/lib/libz/Makefile.inc" 591.1SigyLIBZ= ${ZLIB} 601.1Sigy 611.1Sigy### find out what to use for libsa 621.1SigySAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes" 631.1SigySAMISCMAKEFLAGS+="SA_USE_CREAD=yes" 641.1Sigy.include "${S}/lib/libsa/Makefile.inc" 651.1SigyLIBSA= ${SALIB} 661.1Sigy 671.1SigyLIBLIST= ${LIBSA} ${LIBZ} ${LIBSA} ${LIBKERN} ${LIBSA} 681.1Sigy 691.1Sigy# if there is a 'version' file, add rule for vers.c and add it to SRCS 701.1Sigy# and CLEANFILES 711.1Sigy.if exists (${VERSIONFILE}) 721.1SigySRCS+= vers.c 731.1SigyCLEANFILES+= vers.c 741.1Sigy.PHONY: vers.c 751.1Sigyvers.c: ${VERSIONFILE} 761.1Sigy sh ${S}/conf/newvers_stand.sh ${.ALLSRC} 'hpcmips' ${NEWVERSWHAT} 771.1Sigy.endif 781.1Sigy 791.1SigyCLEANFILES+= ${PROG} 801.1Sigy${PROG}: ${OBJS} ${LIBKERN} ${LIBSA} ${LIBZ} 811.1Sigy ${LD} -o ${PROG} -T ${LD_SCRIPT} ${OBJS} ${LIBLIST} 821.1Sigy 831.1SigyCLEANFILES+= ${SREC} 841.1Sigyall: ${SREC} 851.1Sigy${SREC}: ${PROG} 861.1Sigy ${OBJCOPY} -S -O srec ${PROG} ${SREC} 871.1Sigy 881.1Sigy.include <bsd.prog.mk> 89