Makefile revision 1.12
11.12Slukem# $NetBSD: Makefile,v 1.12 2003/10/26 07:25:36 lukem Exp $ 21.1Such# 31.1Such 41.12Slukem.include <bsd.sys.mk> # for HOST_SH 51.12Slukem 61.9StvPROJECT_DIRS= hpcboot libz libsa 71.1Such 81.1Suchall: 91.11Slukem find binary -name "hpcboot*.exe.uu" -exec ${TOOL_UUDECODE} {} \; 101.1Such 111.1Such# 121.1Such# generates project/work files for Embeded Visual C++ 3.0 131.1Such# 141.6Suchevc3: 151.1Such cd dspgen && ${MAKE} evc3 || exit 1; 161.1Such for d in ${PROJECT_DIRS}; do \ 171.12Slukem ${HOST_SH} dspgen/config.sh evc3 $$d; \ 181.1Such done 191.12Slukem ${HOST_SH} dspgen/gen_workspace.sh evc3 hpc_stand.vcw $(PROJECT_DIRS) 201.1Such cd dspgen && ${MAKE} clean; 211.1Such# 221.1Such# generates project/work files for Visual C++ 6.0 + Windows CE tool kit. 231.1Such# 241.6Suchvc6: 251.1Such cd dspgen && ${MAKE} vc6 || exit 1; 261.1Such for d in ${PROJECT_DIRS}; do \ 271.12Slukem ${HOST_SH} dspgen/config.sh vc6 $$d; \ 281.1Such done 291.1Such cd dspgen && ${MAKE} clean; 301.12Slukem ${HOST_SH} dspgen/gen_workspace.sh vc6 hpc_stand.dsw $(PROJECT_DIRS) 311.1Such 321.3Such# 331.3Such# generates project/work files for Visual C++ 5.0 Windows CE Embeded tool kit. 341.3Such# (WCE100/101/200 binary for MIPS, SH3) 351.3Such# 361.6Suchvc5: 371.3Such cd dspgen && ${MAKE} vc5 || exit 1; 381.3Such for d in ${PROJECT_DIRS}; do \ 391.12Slukem ${HOST_SH} dspgen/config.sh vc5 $$d; \ 401.3Such done 411.3Such cd dspgen && ${MAKE} clean; 421.12Slukem ${HOST_SH} dspgen/gen_workspace.sh vc5 hpc_stand.dsw $(PROJECT_DIRS) 431.3Such 441.1Suchclean: 451.5Such rm -f hpcboot/opt_spec_platform.h 461.3Such# evc3 temporary files 471.1Such rm -f hpc_stand.vcb hpc_stand.vcw hpc_stand.vco 481.1Such find . -name "*.vcp" -print |xargs rm -f 491.1Such rm -f hpcboot/hpcboot.vcl hpcboot/HPCBOOT.VCO hpcboot/HPCBOOT.VCW 501.1Such rm -f hpcboot/HPCBOOT.vcb 511.3Such# vc6 temporary files 521.1Such find . -name "*.dsp" -print |xargs rm -f 531.1Such rm -f hpc_stand.dsw hpc_stand.ncb hpc_stand.opt 541.1Such rm -f hpcboot/hpcboot.plg 551.3Such# compile directory 561.2Such rm -rf compile/ARMDebug compile/ARMRelease \ 571.4Such compile/SH*Debug compile/SH*Release \ 581.2Such compile/MIPSDebug compile/MIPSRelease 591.1Such find . -name "hpcboot.exe" -print |xargs rm -f 601.1Such 611.1Suchdistclean: clean 621.3Such find binary -name "hpcboot*.exe*" -print | xargs rm -f; 631.1Such 641.3Such# WCE210 or later binary 651.1Suchinstall: 661.10Such for a in SH3 SH4 ARM MIPS; do \ 671.1Such file=`echo "compile/"$$a"Release/hpcboot.exe"`; \ 681.1Such cp $$file binary/$$a/hpcboot.exe; \ 691.1Such done 701.3Such# WCE200 or earlier binary 711.3Suchinstall1: 721.3Such cp compile/MIPSRelease/hpcboot.exe binary/MIPS/hpcboot1.exe 731.3Such cp compile/SHRelease/hpcboot.exe binary/SH3/hpcboot1.exe 741.3Such 751.1Suchuuencode: 761.3Such find binary -name "hpcboot*.exe" -print | \ 771.12Slukem awk '{ print "uuencode", $$1, $$1, ">", $$1".uu ; rm -f", $$1 }' \ 781.12Slukem | ${HOST_SH} 791.8Such cp binary/build_number.h build_number.h 801.8Such awk '{if (/HPCBOOT_BUILD_NUMBER/) \ 811.8Such { i = $$3 + 1; \ 821.8Such printf("#define HPCBOOT_BUILD_NUMBER %d\n", i);\ 831.8Such } else { \ 841.8Such printf("%s\n", $$0); \ 851.8Such }}' build_number.h > binary/build_number.h 861.8Such rm -f build_number.h 87