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