Makefile revision 1.5
11.5Such#	$NetBSD: Makefile,v 1.5 2001/04/23 18:07:57 uch Exp $
21.1Such#
31.1Such
41.1SuchPROJECT_DIRS	= hpcboot libz libsa
51.1SuchMAKE	= make
61.1Such
71.1Suchall:
81.3Such	find binary -name "hpcboot*.exe.uu" -exec uudecode {} \;
91.1Such
101.1Such#
111.1Such# generates project/work files for Embeded Visual C++ 3.0
121.1Such#
131.5Suchmake_option:
141.5Such	echo "/* option \`SPEC_PLATFORM' not defined */" >		\
151.5Such	hpcboot/opt_spec_platform.h
161.5Such
171.5Suchevc3: make_option
181.1Such	cd dspgen && ${MAKE} evc3 || exit 1;
191.1Such	for d in ${PROJECT_DIRS}; do					\
201.1Such		sh dspgen/config.sh evc3 $$d;				\
211.1Such	done
221.1Such	sh dspgen/gen_workspace.sh evc3 hpc_stand.vcw $(PROJECT_DIRS)
231.1Such	cd dspgen && ${MAKE} clean;
241.1Such#
251.1Such# generates project/work files for Visual C++ 6.0 + Windows CE tool kit.
261.1Such#
271.5Suchvc6: make_option
281.1Such	cd dspgen && ${MAKE} vc6 || exit 1;
291.1Such	for d in ${PROJECT_DIRS}; do					\
301.1Such		sh dspgen/config.sh vc6 $$d;				\
311.1Such	done
321.1Such	cd dspgen && ${MAKE} clean;
331.1Such	sh dspgen/gen_workspace.sh vc6 hpc_stand.dsw $(PROJECT_DIRS)
341.1Such
351.3Such#
361.3Such# generates project/work files for Visual C++ 5.0 Windows CE Embeded tool kit.
371.3Such# (WCE100/101/200 binary for MIPS, SH3)
381.3Such#
391.5Suchvc5: make_option
401.3Such	cd dspgen && ${MAKE} vc5 || exit 1;
411.3Such	for d in ${PROJECT_DIRS}; do					\
421.3Such		sh dspgen/config.sh vc5 $$d;				\
431.3Such	done
441.3Such	cd dspgen && ${MAKE} clean;
451.3Such	sh dspgen/gen_workspace.sh vc5 hpc_stand.dsw $(PROJECT_DIRS)
461.3Such
471.1Suchclean:
481.5Such	rm -f hpcboot/opt_spec_platform.h
491.3Such# evc3 temporary files
501.1Such	rm -f hpc_stand.vcb hpc_stand.vcw hpc_stand.vco
511.1Such	find . -name "*.vcp" -print |xargs rm -f
521.1Such	rm -f hpcboot/hpcboot.vcl hpcboot/HPCBOOT.VCO hpcboot/HPCBOOT.VCW
531.1Such	rm -f hpcboot/HPCBOOT.vcb
541.3Such# vc6 temporary files
551.1Such	find . -name "*.dsp" -print |xargs rm -f
561.1Such	rm -f hpc_stand.dsw hpc_stand.ncb hpc_stand.opt
571.1Such	rm -f hpcboot/hpcboot.plg
581.3Such# compile directory
591.2Such	rm -rf compile/ARMDebug compile/ARMRelease			\
601.4Such	compile/SH*Debug compile/SH*Release				\
611.2Such	compile/MIPSDebug compile/MIPSRelease
621.1Such	find . -name "hpcboot.exe" -print |xargs rm -f
631.1Such
641.1Suchdistclean: clean
651.3Such	find binary -name "hpcboot*.exe*" -print | xargs rm -f;
661.1Such
671.3Such# WCE210 or later binary
681.1Suchinstall:
691.4Such	for a in SH3 SH4 ARM MIPS; do					\
701.1Such		file=`echo "compile/"$$a"Release/hpcboot.exe"`;		\
711.1Such		cp $$file binary/$$a/hpcboot.exe;			\
721.1Such	done
731.3Such# WCE200 or earlier binary
741.3Suchinstall1:
751.3Such	cp compile/MIPSRelease/hpcboot.exe binary/MIPS/hpcboot1.exe
761.3Such	cp compile/SHRelease/hpcboot.exe binary/SH3/hpcboot1.exe
771.3Such
781.1Suchuuencode:
791.3Such	find binary -name "hpcboot*.exe" -print | \
801.1Such	awk '{ print "uuencode", $$1, $$1, ">", $$1".uu ; rm -f", $$1 }' | sh
811.1Such
821.1Such
831.1Such
84