Home | History | Annotate | Line # | Download | only in stand
Makefile revision 1.13
      1  1.13    jmc #	$NetBSD: Makefile,v 1.13 2004/03/19 08:07:22 jmc Exp $
      2   1.1    uch #
      3   1.1    uch 
      4  1.12  lukem .include <bsd.sys.mk>		# for HOST_SH
      5  1.12  lukem 
      6   1.9     tv PROJECT_DIRS=	hpcboot libz libsa
      7   1.1    uch 
      8  1.13    jmc UUDECODE_FILES= binary/ARM/hpcboot.exe \
      9  1.13    jmc 		binary/SH3/hpcboot.exe \
     10  1.13    jmc 		binary/MIPS/hpcboot.exe \
     11  1.13    jmc 		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.12  lukem 		${HOST_SH} dspgen/config.sh evc3 $$d;			\
     20   1.1    uch 	done
     21  1.12  lukem 	${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.12  lukem 		${HOST_SH} dspgen/config.sh vc6 $$d;			\
     30   1.1    uch 	done
     31   1.1    uch 	cd dspgen && ${MAKE} clean;
     32  1.12  lukem 	${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.12  lukem 		${HOST_SH} dspgen/config.sh vc5 $$d;			\
     42   1.3    uch 	done
     43   1.3    uch 	cd dspgen && ${MAKE} clean;
     44  1.12  lukem 	${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.2    uch 	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.3    uch install1:
     74   1.3    uch 	cp compile/MIPSRelease/hpcboot.exe binary/MIPS/hpcboot1.exe
     75   1.3    uch 	cp compile/SHRelease/hpcboot.exe binary/SH3/hpcboot1.exe
     76   1.3    uch 
     77   1.1    uch uuencode:
     78   1.3    uch 	find binary -name "hpcboot*.exe" -print | \
     79  1.12  lukem 	awk '{ print "uuencode", $$1, $$1, ">", $$1".uu ; rm -f", $$1 }' \
     80  1.12  lukem 	    | ${HOST_SH}
     81   1.8    uch 	cp binary/build_number.h build_number.h
     82   1.8    uch 	awk '{if (/HPCBOOT_BUILD_NUMBER/)				\
     83   1.8    uch 		{ i = $$3 + 1;						\
     84   1.8    uch 			printf("#define HPCBOOT_BUILD_NUMBER	%d\n", i);\
     85   1.8    uch 		} else {						\
     86   1.8    uch 			printf("%s\n", $$0);				\
     87   1.8    uch 		}}' build_number.h > binary/build_number.h
     88   1.8    uch 	rm -f build_number.h
     89  1.13    jmc 
     90  1.13    jmc .include <bsd.files.mk>
     91