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