Home | History | Annotate | Line # | Download | only in stand
Makefile revision 1.10.16.3
      1  1.10.16.3  skrll #	$NetBSD: Makefile,v 1.10.16.3 2004/09/18 14:34:39 skrll Exp $
      2        1.1    uch #
      3        1.1    uch 
      4  1.10.16.1  skrll .include <bsd.sys.mk>		# for HOST_SH
      5  1.10.16.1  skrll 
      6        1.9     tv PROJECT_DIRS=	hpcboot libz libsa
      7        1.1    uch 
      8  1.10.16.1  skrll UUDECODE_FILES= binary/ARM/hpcboot.exe \
      9  1.10.16.1  skrll 		binary/SH3/hpcboot.exe \
     10  1.10.16.1  skrll 		binary/MIPS/hpcboot.exe \
     11  1.10.16.1  skrll 		binary/SH4/hpcboot.exe
     12        1.1    uch 
     13        1.1    uch #
     14        1.1    uch # generates project/work files for Embeded Visual C++ 3.0
     15        1.1    uch #
     16        1.6    uch evc3:
     17        1.1    uch 	cd dspgen && ${MAKE} evc3 || exit 1;
     18        1.1    uch 	for d in ${PROJECT_DIRS}; do					\
     19  1.10.16.1  skrll 		${HOST_SH} dspgen/config.sh evc3 $$d;			\
     20        1.1    uch 	done
     21  1.10.16.1  skrll 	${HOST_SH} dspgen/gen_workspace.sh evc3 hpc_stand.vcw $(PROJECT_DIRS)
     22        1.1    uch 	cd dspgen && ${MAKE} clean;
     23        1.1    uch #
     24        1.1    uch # generates project/work files for Visual C++ 6.0 + Windows CE tool kit.
     25        1.1    uch #
     26        1.6    uch vc6:
     27        1.1    uch 	cd dspgen && ${MAKE} vc6 || exit 1;
     28        1.1    uch 	for d in ${PROJECT_DIRS}; do					\
     29  1.10.16.1  skrll 		${HOST_SH} dspgen/config.sh vc6 $$d;			\
     30        1.1    uch 	done
     31        1.1    uch 	cd dspgen && ${MAKE} clean;
     32  1.10.16.1  skrll 	${HOST_SH} dspgen/gen_workspace.sh vc6 hpc_stand.dsw $(PROJECT_DIRS)
     33        1.1    uch 
     34        1.3    uch #
     35        1.3    uch # generates project/work files for Visual C++ 5.0 Windows CE Embeded tool kit.
     36        1.3    uch # (WCE100/101/200 binary for MIPS, SH3)
     37        1.3    uch #
     38        1.6    uch vc5:
     39        1.3    uch 	cd dspgen && ${MAKE} vc5 || exit 1;
     40        1.3    uch 	for d in ${PROJECT_DIRS}; do					\
     41  1.10.16.1  skrll 		${HOST_SH} dspgen/config.sh vc5 $$d;			\
     42        1.3    uch 	done
     43        1.3    uch 	cd dspgen && ${MAKE} clean;
     44  1.10.16.1  skrll 	${HOST_SH} dspgen/gen_workspace.sh vc5 hpc_stand.dsw $(PROJECT_DIRS)
     45        1.3    uch 
     46        1.1    uch clean:
     47        1.5    uch 	rm -f hpcboot/opt_spec_platform.h
     48        1.3    uch # evc3 temporary files
     49        1.1    uch 	rm -f hpc_stand.vcb hpc_stand.vcw hpc_stand.vco
     50        1.1    uch 	find . -name "*.vcp" -print |xargs rm -f
     51        1.1    uch 	rm -f hpcboot/hpcboot.vcl hpcboot/HPCBOOT.VCO hpcboot/HPCBOOT.VCW
     52        1.1    uch 	rm -f hpcboot/HPCBOOT.vcb
     53        1.3    uch # vc6 temporary files
     54        1.1    uch 	find . -name "*.dsp" -print |xargs rm -f
     55        1.1    uch 	rm -f hpc_stand.dsw hpc_stand.ncb hpc_stand.opt
     56        1.1    uch 	rm -f hpcboot/hpcboot.plg
     57        1.3    uch # compile directory
     58  1.10.16.1  skrll 	-rm -rf compile/ARMDebug compile/ARMRelease			\
     59        1.4    uch 	compile/SH*Debug compile/SH*Release				\
     60        1.2    uch 	compile/MIPSDebug compile/MIPSRelease
     61        1.1    uch 	find . -name "hpcboot.exe" -print |xargs rm -f
     62        1.1    uch 
     63        1.1    uch distclean: clean
     64        1.3    uch 	find binary -name "hpcboot*.exe*" -print | xargs rm -f;
     65        1.1    uch 
     66        1.3    uch # WCE210 or later binary
     67        1.1    uch install:
     68       1.10    uch 	for a in SH3 SH4 ARM MIPS; do					\
     69        1.1    uch 		file=`echo "compile/"$$a"Release/hpcboot.exe"`;		\
     70        1.1    uch 		cp $$file binary/$$a/hpcboot.exe;			\
     71        1.1    uch 	done
     72        1.3    uch # WCE200 or earlier binary
     73  1.10.16.2  skrll install200:
     74  1.10.16.2  skrll 	cp compile/SHRelease/hpcboot.exe binary/SH3/hpcboot200.exe
     75  1.10.16.2  skrll 
     76  1.10.16.2  skrll install101:
     77  1.10.16.2  skrll 	cp compile/MIPSRelease/hpcboot.exe binary/MIPS/hpcboot101.exe
     78        1.3    uch 
     79        1.1    uch uuencode:
     80        1.3    uch 	find binary -name "hpcboot*.exe" -print | \
     81  1.10.16.1  skrll 	awk '{ print "uuencode", $$1, $$1, ">", $$1".uue ; rm -f", $$1 }' \
     82  1.10.16.1  skrll 	    | ${HOST_SH}
     83        1.8    uch 	cp binary/build_number.h build_number.h
     84        1.8    uch 	awk '{if (/HPCBOOT_BUILD_NUMBER/)				\
     85        1.8    uch 		{ i = $$3 + 1;						\
     86        1.8    uch 			printf("#define HPCBOOT_BUILD_NUMBER	%d\n", i);\
     87        1.8    uch 		} else {						\
     88        1.8    uch 			printf("%s\n", $$0);				\
     89        1.8    uch 		}}' build_number.h > binary/build_number.h
     90        1.8    uch 	rm -f build_number.h
     91  1.10.16.1  skrll 
     92  1.10.16.1  skrll .include <bsd.files.mk>
     93