1 # $NetBSD: Makefile,v 1.12 2003/10/26 07:25:36 lukem Exp $ 2 # 3 4 .include <bsd.sys.mk> # for HOST_SH 5 6 PROJECT_DIRS= hpcboot libz libsa 7 8 all: 9 find binary -name "hpcboot*.exe.uu" -exec ${TOOL_UUDECODE} {} \; 10 11 # 12 # generates project/work files for Embeded Visual C++ 3.0 13 # 14 evc3: 15 cd dspgen && ${MAKE} evc3 || exit 1; 16 for d in ${PROJECT_DIRS}; do \ 17 ${HOST_SH} dspgen/config.sh evc3 $$d; \ 18 done 19 ${HOST_SH} dspgen/gen_workspace.sh evc3 hpc_stand.vcw $(PROJECT_DIRS) 20 cd dspgen && ${MAKE} clean; 21 # 22 # generates project/work files for Visual C++ 6.0 + Windows CE tool kit. 23 # 24 vc6: 25 cd dspgen && ${MAKE} vc6 || exit 1; 26 for d in ${PROJECT_DIRS}; do \ 27 ${HOST_SH} dspgen/config.sh vc6 $$d; \ 28 done 29 cd dspgen && ${MAKE} clean; 30 ${HOST_SH} dspgen/gen_workspace.sh vc6 hpc_stand.dsw $(PROJECT_DIRS) 31 32 # 33 # generates project/work files for Visual C++ 5.0 Windows CE Embeded tool kit. 34 # (WCE100/101/200 binary for MIPS, SH3) 35 # 36 vc5: 37 cd dspgen && ${MAKE} vc5 || exit 1; 38 for d in ${PROJECT_DIRS}; do \ 39 ${HOST_SH} dspgen/config.sh vc5 $$d; \ 40 done 41 cd dspgen && ${MAKE} clean; 42 ${HOST_SH} dspgen/gen_workspace.sh vc5 hpc_stand.dsw $(PROJECT_DIRS) 43 44 clean: 45 rm -f hpcboot/opt_spec_platform.h 46 # evc3 temporary files 47 rm -f hpc_stand.vcb hpc_stand.vcw hpc_stand.vco 48 find . -name "*.vcp" -print |xargs rm -f 49 rm -f hpcboot/hpcboot.vcl hpcboot/HPCBOOT.VCO hpcboot/HPCBOOT.VCW 50 rm -f hpcboot/HPCBOOT.vcb 51 # vc6 temporary files 52 find . -name "*.dsp" -print |xargs rm -f 53 rm -f hpc_stand.dsw hpc_stand.ncb hpc_stand.opt 54 rm -f hpcboot/hpcboot.plg 55 # compile directory 56 rm -rf compile/ARMDebug compile/ARMRelease \ 57 compile/SH*Debug compile/SH*Release \ 58 compile/MIPSDebug compile/MIPSRelease 59 find . -name "hpcboot.exe" -print |xargs rm -f 60 61 distclean: clean 62 find binary -name "hpcboot*.exe*" -print | xargs rm -f; 63 64 # WCE210 or later binary 65 install: 66 for a in SH3 SH4 ARM MIPS; do \ 67 file=`echo "compile/"$$a"Release/hpcboot.exe"`; \ 68 cp $$file binary/$$a/hpcboot.exe; \ 69 done 70 # WCE200 or earlier binary 71 install1: 72 cp compile/MIPSRelease/hpcboot.exe binary/MIPS/hpcboot1.exe 73 cp compile/SHRelease/hpcboot.exe binary/SH3/hpcboot1.exe 74 75 uuencode: 76 find binary -name "hpcboot*.exe" -print | \ 77 awk '{ print "uuencode", $$1, $$1, ">", $$1".uu ; rm -f", $$1 }' \ 78 | ${HOST_SH} 79 cp binary/build_number.h build_number.h 80 awk '{if (/HPCBOOT_BUILD_NUMBER/) \ 81 { i = $$3 + 1; \ 82 printf("#define HPCBOOT_BUILD_NUMBER %d\n", i);\ 83 } else { \ 84 printf("%s\n", $$0); \ 85 }}' build_number.h > binary/build_number.h 86 rm -f build_number.h 87