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