Home | History | Annotate | Line # | Download | only in stand
Makefile revision 1.19.2.1
      1  1.19.2.1   yamt #	$NetBSD: Makefile,v 1.19.2.1 2006/12/30 20:46:01 yamt 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.19    uwe 	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.19    uwe 	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.19    uwe 	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.19    uwe 	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.19    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.19    uwe 	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.19    uwe 	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.19.2.1   yamt 	rm -f hpcboot/HPCBOOT.vcb hpcboot/HPCBOOT.VCW hpcboot/HPCBOOT.VCO
     55      1.19    uwe 	find . -name "*.vcp" -print | xargs rm -f
     56  1.19.2.1   yamt 	find . -name "*.vcl" -print | xargs rm -f
     57  1.19.2.1   yamt 	find . -name "*.vcn" -print | xargs rm -f
     58  1.19.2.1   yamt 	find . -name "*.dep" -print | xargs rm -f
     59      1.17    uwe 	rm -f hpcboot/res/hpcmenu.aps
     60       1.3    uch # vc6 temporary files
     61      1.19    uwe 	find . -name "*.dsp" -print | xargs rm -f
     62       1.1    uch 	rm -f hpc_stand.dsw hpc_stand.ncb hpc_stand.opt
     63       1.1    uch 	rm -f hpcboot/hpcboot.plg
     64       1.3    uch # compile directory
     65      1.15    jmc 	-rm -rf compile/ARMDebug compile/ARMRelease			\
     66      1.19    uwe 		compile/SH*Debug compile/SH*Release			\
     67      1.19    uwe 		compile/MIPSDebug compile/MIPSRelease
     68      1.19    uwe 	find . -name "hpcboot.exe" -print | xargs rm -f
     69       1.1    uch 
     70       1.1    uch distclean: clean
     71      1.19    uwe 	find binary -name "hpcboot*.exe*" -print | xargs rm -f
     72       1.1    uch 
     73       1.3    uch # WCE210 or later binary
     74       1.1    uch install:
     75      1.10    uch 	for a in SH3 SH4 ARM MIPS; do					\
     76       1.1    uch 		file=`echo "compile/"$$a"Release/hpcboot.exe"`;		\
     77       1.1    uch 		cp $$file binary/$$a/hpcboot.exe;			\
     78       1.1    uch 	done
     79       1.3    uch # WCE200 or earlier binary
     80      1.16    uch install200:
     81      1.16    uch 	cp compile/SHRelease/hpcboot.exe binary/SH3/hpcboot200.exe
     82      1.16    uch 
     83      1.16    uch install101:
     84      1.16    uch 	cp compile/MIPSRelease/hpcboot.exe binary/MIPS/hpcboot101.exe
     85       1.3    uch 
     86       1.1    uch uuencode:
     87       1.3    uch 	find binary -name "hpcboot*.exe" -print | \
     88      1.14    uch 	awk '{ print "uuencode", $$1, $$1, ">", $$1".uue ; rm -f", $$1 }' \
     89      1.12  lukem 	    | ${HOST_SH}
     90       1.8    uch 	cp binary/build_number.h build_number.h
     91       1.8    uch 	awk '{if (/HPCBOOT_BUILD_NUMBER/)				\
     92       1.8    uch 		{ i = $$3 + 1;						\
     93       1.8    uch 			printf("#define HPCBOOT_BUILD_NUMBER	%d\n", i);\
     94       1.8    uch 		} else {						\
     95       1.8    uch 			printf("%s\n", $$0);				\
     96       1.8    uch 		}}' build_number.h > binary/build_number.h
     97       1.8    uch 	rm -f build_number.h
     98      1.13    jmc 
     99      1.13    jmc .include <bsd.files.mk>
    100