Makefile revision 1.17
11.17Suwe#	$NetBSD: Makefile,v 1.17 2005/05/11 15:00:49 uwe 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.17Suwe	rm -f hpcboot/res/hpcmenu.aps
541.17Suwe	rm -f libsa/libsa.vcl libz/libz.vcl
551.3Such# vc6 temporary files
561.1Such	find . -name "*.dsp" -print |xargs rm -f
571.1Such	rm -f hpc_stand.dsw hpc_stand.ncb hpc_stand.opt
581.1Such	rm -f hpcboot/hpcboot.plg
591.3Such# compile directory
601.15Sjmc	-rm -rf compile/ARMDebug compile/ARMRelease			\
611.4Such	compile/SH*Debug compile/SH*Release				\
621.2Such	compile/MIPSDebug compile/MIPSRelease
631.1Such	find . -name "hpcboot.exe" -print |xargs rm -f
641.1Such
651.1Suchdistclean: clean
661.3Such	find binary -name "hpcboot*.exe*" -print | xargs rm -f;
671.1Such
681.3Such# WCE210 or later binary
691.1Suchinstall:
701.10Such	for a in SH3 SH4 ARM MIPS; do					\
711.1Such		file=`echo "compile/"$$a"Release/hpcboot.exe"`;		\
721.1Such		cp $$file binary/$$a/hpcboot.exe;			\
731.1Such	done
741.3Such# WCE200 or earlier binary
751.16Suchinstall200:
761.16Such	cp compile/SHRelease/hpcboot.exe binary/SH3/hpcboot200.exe
771.16Such
781.16Suchinstall101:
791.16Such	cp compile/MIPSRelease/hpcboot.exe binary/MIPS/hpcboot101.exe
801.3Such
811.1Suchuuencode:
821.3Such	find binary -name "hpcboot*.exe" -print | \
831.14Such	awk '{ print "uuencode", $$1, $$1, ">", $$1".uue ; rm -f", $$1 }' \
841.12Slukem	    | ${HOST_SH}
851.8Such	cp binary/build_number.h build_number.h
861.8Such	awk '{if (/HPCBOOT_BUILD_NUMBER/)				\
871.8Such		{ i = $$3 + 1;						\
881.8Such			printf("#define HPCBOOT_BUILD_NUMBER	%d\n", i);\
891.8Such		} else {						\
901.8Such			printf("%s\n", $$0);				\
911.8Such		}}' build_number.h > binary/build_number.h
921.8Such	rm -f build_number.h
931.13Sjmc
941.13Sjmc.include <bsd.files.mk>
95