Makefile revision 1.2
1#	$NetBSD: Makefile,v 1.2 2001/02/21 16:01:52 uch Exp $
2#
3
4PROJECT_DIRS	= hpcboot libz libsa
5MAKE	= make
6
7all:
8	find binary -name hpcboot.exe.uu -exec uudecode {} \;
9
10#
11# generates project/work files for Embeded Visual C++ 3.0
12#
13evc3:
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#
23vc6:
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
31clean:
32# evc3
33	rm -f hpc_stand.vcb hpc_stand.vcw hpc_stand.vco
34	find . -name "*.vcp" -print |xargs rm -f
35	rm -f hpcboot/hpcboot.vcl hpcboot/HPCBOOT.VCO hpcboot/HPCBOOT.VCW
36	rm -f hpcboot/HPCBOOT.vcb
37# vc6
38	find . -name "*.dsp" -print |xargs rm -f
39	rm -f hpc_stand.dsw hpc_stand.ncb hpc_stand.opt
40	rm -f hpcboot/hpcboot.plg
41# 
42	rm -rf compile/ARMDebug compile/ARMRelease			\
43	compile/SH3Debug compile/SH3Release				\
44	compile/MIPSDebug compile/MIPSRelease
45	find . -name "hpcboot.exe" -print |xargs rm -f
46
47distclean: clean
48	find binary -name hpcboot.exe* -print | xargs rm -f;
49
50install:
51	for a in SH3 ARM MIPS; do					\
52		file=`echo "compile/"$$a"Release/hpcboot.exe"`;		\
53		cp $$file binary/$$a/hpcboot.exe;			\
54	done
55uuencode:
56	find binary -name hpcboot.exe -print | \
57	awk '{ print "uuencode", $$1, $$1, ">", $$1".uu ; rm -f", $$1 }' | sh
58
59
60
61