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