Makefile revision 1.18
11.18Suwe#	$NetBSD: Makefile,v 1.18 2005/05/12 11:18:46 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.18Suwe# Generate project/work files for
151.18Suwe# "eMbedded Visual C++ 3.0"
161.1Such#
171.6Suchevc3:
181.1Such	cd dspgen && ${MAKE} evc3 || exit 1;
191.1Such	for d in ${PROJECT_DIRS}; do					\
201.12Slukem		${HOST_SH} dspgen/config.sh evc3 $$d;			\
211.1Such	done
221.12Slukem	${HOST_SH} dspgen/gen_workspace.sh evc3 hpc_stand.vcw $(PROJECT_DIRS)
231.1Such	cd dspgen && ${MAKE} clean;
241.18Suwe
251.1Such#
261.18Suwe# Generate project/work files for
271.18Suwe# "Windows CE Toolkit for Visual C++ 6.0"
281.1Such#
291.6Suchvc6:
301.1Such	cd dspgen && ${MAKE} vc6 || exit 1;
311.1Such	for d in ${PROJECT_DIRS}; do					\
321.12Slukem		${HOST_SH} dspgen/config.sh vc6 $$d;			\
331.1Such	done
341.1Such	cd dspgen && ${MAKE} clean;
351.12Slukem	${HOST_SH} dspgen/gen_workspace.sh vc6 hpc_stand.dsw $(PROJECT_DIRS)
361.1Such
371.3Such#
381.18Suwe# Generate project/work files for 
391.18Suwe# "Windows CE Embedded Toolkit for Visual C++ 5.0"
401.3Such# (WCE100/101/200 binary for MIPS, SH3)
411.3Such#
421.6Suchvc5:
431.3Such	cd dspgen && ${MAKE} vc5 || exit 1;
441.3Such	for d in ${PROJECT_DIRS}; do					\
451.12Slukem		${HOST_SH} dspgen/config.sh vc5 $$d;			\
461.3Such	done
471.3Such	cd dspgen && ${MAKE} clean;
481.12Slukem	${HOST_SH} dspgen/gen_workspace.sh vc5 hpc_stand.dsw $(PROJECT_DIRS)
491.3Such
501.1Suchclean:
511.5Such	rm -f hpcboot/opt_spec_platform.h
521.3Such# evc3 temporary files
531.1Such	rm -f hpc_stand.vcb hpc_stand.vcw hpc_stand.vco
541.1Such	find . -name "*.vcp" -print |xargs rm -f
551.1Such	rm -f hpcboot/hpcboot.vcl hpcboot/HPCBOOT.VCO hpcboot/HPCBOOT.VCW
561.1Such	rm -f hpcboot/HPCBOOT.vcb
571.17Suwe	rm -f hpcboot/res/hpcmenu.aps
581.17Suwe	rm -f libsa/libsa.vcl libz/libz.vcl
591.3Such# vc6 temporary files
601.1Such	find . -name "*.dsp" -print |xargs rm -f
611.1Such	rm -f hpc_stand.dsw hpc_stand.ncb hpc_stand.opt
621.1Such	rm -f hpcboot/hpcboot.plg
631.3Such# compile directory
641.15Sjmc	-rm -rf compile/ARMDebug compile/ARMRelease			\
651.4Such	compile/SH*Debug compile/SH*Release				\
661.2Such	compile/MIPSDebug compile/MIPSRelease
671.1Such	find . -name "hpcboot.exe" -print |xargs rm -f
681.1Such
691.1Suchdistclean: clean
701.3Such	find binary -name "hpcboot*.exe*" -print | xargs rm -f;
711.1Such
721.3Such# WCE210 or later binary
731.1Suchinstall:
741.10Such	for a in SH3 SH4 ARM MIPS; do					\
751.1Such		file=`echo "compile/"$$a"Release/hpcboot.exe"`;		\
761.1Such		cp $$file binary/$$a/hpcboot.exe;			\
771.1Such	done
781.3Such# WCE200 or earlier binary
791.16Suchinstall200:
801.16Such	cp compile/SHRelease/hpcboot.exe binary/SH3/hpcboot200.exe
811.16Such
821.16Suchinstall101:
831.16Such	cp compile/MIPSRelease/hpcboot.exe binary/MIPS/hpcboot101.exe
841.3Such
851.1Suchuuencode:
861.3Such	find binary -name "hpcboot*.exe" -print | \
871.14Such	awk '{ print "uuencode", $$1, $$1, ">", $$1".uue ; rm -f", $$1 }' \
881.12Slukem	    | ${HOST_SH}
891.8Such	cp binary/build_number.h build_number.h
901.8Such	awk '{if (/HPCBOOT_BUILD_NUMBER/)				\
911.8Such		{ i = $$3 + 1;						\
921.8Such			printf("#define HPCBOOT_BUILD_NUMBER	%d\n", i);\
931.8Such		} else {						\
941.8Such			printf("%s\n", $$0);				\
951.8Such		}}' build_number.h > binary/build_number.h
961.8Such	rm -f build_number.h
971.13Sjmc
981.13Sjmc.include <bsd.files.mk>
99