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