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