Makefile revision 1.13
11.13Sjmc#	$NetBSD: Makefile,v 1.13 2004/03/19 08:07:22 jmc Exp $
21.1Such#
31.1Such
41.12Slukem.include <bsd.sys.mk>		# for HOST_SH
51.12Slukem
61.9StvPROJECT_DIRS=	hpcboot libz libsa
71.1Such
81.13SjmcUUDECODE_FILES= binary/ARM/hpcboot.exe \
91.13Sjmc		binary/SH3/hpcboot.exe \
101.13Sjmc		binary/MIPS/hpcboot.exe \
111.13Sjmc		binary/SH4/hpcboot.exe
121.1Such
131.1Such#
141.1Such# generates project/work files for Embeded Visual C++ 3.0
151.1Such#
161.6Suchevc3:
171.1Such	cd dspgen && ${MAKE} evc3 || exit 1;
181.1Such	for d in ${PROJECT_DIRS}; do					\
191.12Slukem		${HOST_SH} dspgen/config.sh evc3 $$d;			\
201.1Such	done
211.12Slukem	${HOST_SH} dspgen/gen_workspace.sh evc3 hpc_stand.vcw $(PROJECT_DIRS)
221.1Such	cd dspgen && ${MAKE} clean;
231.1Such#
241.1Such# generates project/work files for Visual C++ 6.0 + Windows CE tool kit.
251.1Such#
261.6Suchvc6:
271.1Such	cd dspgen && ${MAKE} vc6 || exit 1;
281.1Such	for d in ${PROJECT_DIRS}; do					\
291.12Slukem		${HOST_SH} dspgen/config.sh vc6 $$d;			\
301.1Such	done
311.1Such	cd dspgen && ${MAKE} clean;
321.12Slukem	${HOST_SH} dspgen/gen_workspace.sh vc6 hpc_stand.dsw $(PROJECT_DIRS)
331.1Such
341.3Such#
351.3Such# generates project/work files for Visual C++ 5.0 Windows CE Embeded tool kit.
361.3Such# (WCE100/101/200 binary for MIPS, SH3)
371.3Such#
381.6Suchvc5:
391.3Such	cd dspgen && ${MAKE} vc5 || exit 1;
401.3Such	for d in ${PROJECT_DIRS}; do					\
411.12Slukem		${HOST_SH} dspgen/config.sh vc5 $$d;			\
421.3Such	done
431.3Such	cd dspgen && ${MAKE} clean;
441.12Slukem	${HOST_SH} dspgen/gen_workspace.sh vc5 hpc_stand.dsw $(PROJECT_DIRS)
451.3Such
461.1Suchclean:
471.5Such	rm -f hpcboot/opt_spec_platform.h
481.3Such# evc3 temporary files
491.1Such	rm -f hpc_stand.vcb hpc_stand.vcw hpc_stand.vco
501.1Such	find . -name "*.vcp" -print |xargs rm -f
511.1Such	rm -f hpcboot/hpcboot.vcl hpcboot/HPCBOOT.VCO hpcboot/HPCBOOT.VCW
521.1Such	rm -f hpcboot/HPCBOOT.vcb
531.3Such# vc6 temporary files
541.1Such	find . -name "*.dsp" -print |xargs rm -f
551.1Such	rm -f hpc_stand.dsw hpc_stand.ncb hpc_stand.opt
561.1Such	rm -f hpcboot/hpcboot.plg
571.3Such# compile directory
581.2Such	rm -rf compile/ARMDebug compile/ARMRelease			\
591.4Such	compile/SH*Debug compile/SH*Release				\
601.2Such	compile/MIPSDebug compile/MIPSRelease
611.1Such	find . -name "hpcboot.exe" -print |xargs rm -f
621.1Such
631.1Suchdistclean: clean
641.3Such	find binary -name "hpcboot*.exe*" -print | xargs rm -f;
651.1Such
661.3Such# WCE210 or later binary
671.1Suchinstall:
681.10Such	for a in SH3 SH4 ARM MIPS; do					\
691.1Such		file=`echo "compile/"$$a"Release/hpcboot.exe"`;		\
701.1Such		cp $$file binary/$$a/hpcboot.exe;			\
711.1Such	done
721.3Such# WCE200 or earlier binary
731.3Suchinstall1:
741.3Such	cp compile/MIPSRelease/hpcboot.exe binary/MIPS/hpcboot1.exe
751.3Such	cp compile/SHRelease/hpcboot.exe binary/SH3/hpcboot1.exe
761.3Such
771.1Suchuuencode:
781.3Such	find binary -name "hpcboot*.exe" -print | \
791.12Slukem	awk '{ print "uuencode", $$1, $$1, ">", $$1".uu ; rm -f", $$1 }' \
801.12Slukem	    | ${HOST_SH}
811.8Such	cp binary/build_number.h build_number.h
821.8Such	awk '{if (/HPCBOOT_BUILD_NUMBER/)				\
831.8Such		{ i = $$3 + 1;						\
841.8Such			printf("#define HPCBOOT_BUILD_NUMBER	%d\n", i);\
851.8Such		} else {						\
861.8Such			printf("%s\n", $$0);				\
871.8Such		}}' build_number.h > binary/build_number.h
881.8Such	rm -f build_number.h
891.13Sjmc
901.13Sjmc.include <bsd.files.mk>
91