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