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