1# $NetBSD: Makefile,v 1.25 2014/01/16 01:15:34 christos Exp $ 2# 3 4.include <bsd.own.mk> 5 6PROJECT_DIRS= hpcboot libz libsa 7 8UUDECODE_FILES= binary/ARM/hpcboot.exe \ 9 binary/SH3/hpcboot.exe \ 10 binary/MIPS/hpcboot.exe \ 11 binary/SH4/hpcboot.exe 12 13# 14# Generate project/work files for 15# "eMbedded Visual C++ 3.0" 16# 17evc3: 18 cd dspgen && ${MAKE} evc3 || exit 1 19 for d in ${PROJECT_DIRS}; do \ 20 ${HOST_SH} dspgen/config.sh evc3 $$d || exit 1; \ 21 done 22 ${HOST_SH} dspgen/gen_workspace.sh evc3 hpc_stand.vcw $(PROJECT_DIRS) 23 cd dspgen && ${MAKE} clean 24 25# 26# Generate project/work files for 27# "eMbedded Visual C++ 4.0" 28# (WCE300 binaries for SH3, SH4, ARMV4) 29# 30evc4: 31 cd dspgen && ${MAKE} evc4 || exit 1 32 for d in ${PROJECT_DIRS}; do \ 33 ${HOST_SH} dspgen/config.sh evc4 $$d || exit 1; \ 34 done 35 ${HOST_SH} dspgen/gen_workspace.sh evc4 hpc_stand.vcw $(PROJECT_DIRS) 36 cd dspgen && ${MAKE} clean 37 38# 39# 40# Generate project/work files for 41# "Windows CE Toolkit for Visual C++ 6.0" 42# 43vc6: 44 cd dspgen && ${MAKE} vc6 || exit 1 45 for d in ${PROJECT_DIRS}; do \ 46 ${HOST_SH} dspgen/config.sh vc6 $$d || exit 1; \ 47 done 48 cd dspgen && ${MAKE} clean 49 ${HOST_SH} dspgen/gen_workspace.sh vc6 hpc_stand.dsw $(PROJECT_DIRS) 50 51# 52# Generate project/work files for 53# "Windows CE Embedded Toolkit for Visual C++ 5.0" 54# (WCE100/101/200 binary for MIPS, SH3) 55# 56vc5: 57 cd dspgen && ${MAKE} vc5 || exit 1 58 for d in ${PROJECT_DIRS}; do \ 59 ${HOST_SH} dspgen/config.sh vc5 $$d || exit 1; \ 60 done 61 cd dspgen && ${MAKE} clean 62 ${HOST_SH} dspgen/gen_workspace.sh vc5 hpc_stand.dsw $(PROJECT_DIRS) 63 64clean: 65 rm -f hpcboot/opt_spec_platform.h 66# evc3 temporary files 67 rm -f hpc_stand.vcb hpc_stand.vcw hpc_stand.vco 68 rm -f hpcboot/HPCBOOT.vcb hpcboot/HPCBOOT.VCW hpcboot/HPCBOOT.VCO 69 find . -name "*.vcp" -print | xargs rm -f 70 find . -name "*.vcl" -print | xargs rm -f 71 find . -name "*.vcn" -print | xargs rm -f 72 find . -name "*.dep" -print | xargs rm -f 73 rm -f hpcboot/res/hpcmenu.aps 74# vc6 temporary files 75 find . -name "*.dsp" -print | xargs rm -f 76 rm -f hpc_stand.dsw hpc_stand.ncb hpc_stand.opt 77 rm -f hpcboot/hpcboot.plg 78# compile directory 79 -rm -rf compile/ARM*Debug compile/ARM*Release \ 80 compile/SH*Debug compile/SH*Release \ 81 compile/MIPSDebug compile/MIPSRelease 82 find . -name "hpcboot.exe" -print | xargs rm -f 83 84distclean: clean 85 find binary -name "hpcboot*.exe*" -print | xargs rm -f 86 87# WCE210 or later binary 88install: 89 for a in SH3 SH4 ARM MIPS; do \ 90 file=`echo "compile/"$$a"Release/hpcboot.exe"`; \ 91 cp $$file binary/$$a/hpcboot.exe; \ 92 done 93# WCE200 or earlier binary 94install200: 95 cp compile/SHRelease/hpcboot.exe binary/SH3/hpcboot200.exe 96 97install101: 98 cp compile/MIPSRelease/hpcboot.exe binary/MIPS/hpcboot101.exe 99 100uuencode: 101 find binary -name "hpcboot*.exe" -print | \ 102 ${TOOL_AWK} '{ print "uuencode", $$1, $$1, ">", $$1".uue ; rm -f", $$1 }' \ 103 | ${HOST_SH} 104 cp binary/build_number.h build_number.h 105 ${TOOL_AWK} '{if (/HPCBOOT_BUILD_NUMBER/) \ 106 { i = $$3 + 1; \ 107 printf("#define HPCBOOT_BUILD_NUMBER %d\n", i);\ 108 } else { \ 109 printf("%s\n", $$0); \ 110 }}' build_number.h > binary/build_number.h 111 rm -f build_number.h 112 113.include <bsd.files.mk> 114