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