Makefile revision 1.21
11.21Suwe# $NetBSD: Makefile,v 1.21 2006/10/18 02:18:27 uwe 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.13SjmcUUDECODE_FILES= binary/ARM/hpcboot.exe \ 91.13Sjmc binary/SH3/hpcboot.exe \ 101.13Sjmc binary/MIPS/hpcboot.exe \ 111.13Sjmc binary/SH4/hpcboot.exe 121.1Such 131.1Such# 141.18Suwe# Generate project/work files for 151.18Suwe# "eMbedded Visual C++ 3.0" 161.1Such# 171.6Suchevc3: 181.19Suwe cd dspgen && ${MAKE} evc3 || exit 1 191.1Such for d in ${PROJECT_DIRS}; do \ 201.12Slukem ${HOST_SH} dspgen/config.sh evc3 $$d; \ 211.1Such done 221.12Slukem ${HOST_SH} dspgen/gen_workspace.sh evc3 hpc_stand.vcw $(PROJECT_DIRS) 231.19Suwe cd dspgen && ${MAKE} clean 241.18Suwe 251.1Such# 261.18Suwe# Generate project/work files for 271.18Suwe# "Windows CE Toolkit for Visual C++ 6.0" 281.1Such# 291.6Suchvc6: 301.19Suwe cd dspgen && ${MAKE} vc6 || exit 1 311.1Such for d in ${PROJECT_DIRS}; do \ 321.12Slukem ${HOST_SH} dspgen/config.sh vc6 $$d; \ 331.1Such done 341.19Suwe cd dspgen && ${MAKE} clean 351.12Slukem ${HOST_SH} dspgen/gen_workspace.sh vc6 hpc_stand.dsw $(PROJECT_DIRS) 361.1Such 371.3Such# 381.19Suwe# Generate project/work files for 391.18Suwe# "Windows CE Embedded Toolkit for Visual C++ 5.0" 401.3Such# (WCE100/101/200 binary for MIPS, SH3) 411.3Such# 421.6Suchvc5: 431.19Suwe cd dspgen && ${MAKE} vc5 || exit 1 441.3Such for d in ${PROJECT_DIRS}; do \ 451.12Slukem ${HOST_SH} dspgen/config.sh vc5 $$d; \ 461.3Such done 471.19Suwe cd dspgen && ${MAKE} clean 481.12Slukem ${HOST_SH} dspgen/gen_workspace.sh vc5 hpc_stand.dsw $(PROJECT_DIRS) 491.3Such 501.1Suchclean: 511.5Such rm -f hpcboot/opt_spec_platform.h 521.3Such# evc3 temporary files 531.1Such rm -f hpc_stand.vcb hpc_stand.vcw hpc_stand.vco 541.21Suwe rm -f hpcboot/HPCBOOT.vcb hpcboot/HPCBOOT.VCW hpcboot/HPCBOOT.VCO 551.19Suwe find . -name "*.vcp" -print | xargs rm -f 561.21Suwe find . -name "*.vcl" -print | xargs rm -f 571.21Suwe find . -name "*.vcn" -print | xargs rm -f 581.21Suwe find . -name "*.dep" -print | xargs rm -f 591.17Suwe rm -f hpcboot/res/hpcmenu.aps 601.3Such# vc6 temporary files 611.19Suwe find . -name "*.dsp" -print | xargs rm -f 621.1Such rm -f hpc_stand.dsw hpc_stand.ncb hpc_stand.opt 631.1Such rm -f hpcboot/hpcboot.plg 641.3Such# compile directory 651.15Sjmc -rm -rf compile/ARMDebug compile/ARMRelease \ 661.19Suwe compile/SH*Debug compile/SH*Release \ 671.19Suwe compile/MIPSDebug compile/MIPSRelease 681.19Suwe find . -name "hpcboot.exe" -print | xargs rm -f 691.1Such 701.1Suchdistclean: clean 711.19Suwe find binary -name "hpcboot*.exe*" -print | xargs rm -f 721.1Such 731.3Such# WCE210 or later binary 741.1Suchinstall: 751.10Such for a in SH3 SH4 ARM MIPS; do \ 761.1Such file=`echo "compile/"$$a"Release/hpcboot.exe"`; \ 771.1Such cp $$file binary/$$a/hpcboot.exe; \ 781.1Such done 791.3Such# WCE200 or earlier binary 801.16Suchinstall200: 811.16Such cp compile/SHRelease/hpcboot.exe binary/SH3/hpcboot200.exe 821.16Such 831.16Suchinstall101: 841.16Such cp compile/MIPSRelease/hpcboot.exe binary/MIPS/hpcboot101.exe 851.3Such 861.1Suchuuencode: 871.3Such find binary -name "hpcboot*.exe" -print | \ 881.14Such awk '{ print "uuencode", $$1, $$1, ">", $$1".uue ; rm -f", $$1 }' \ 891.12Slukem | ${HOST_SH} 901.8Such cp binary/build_number.h build_number.h 911.8Such awk '{if (/HPCBOOT_BUILD_NUMBER/) \ 921.8Such { i = $$3 + 1; \ 931.8Such printf("#define HPCBOOT_BUILD_NUMBER %d\n", i);\ 941.8Such } else { \ 951.8Such printf("%s\n", $$0); \ 961.8Such }}' build_number.h > binary/build_number.h 971.8Such rm -f build_number.h 981.13Sjmc 991.13Sjmc.include <bsd.files.mk> 100