1 # $NetBSD: Makefile,v 1.23 2008/02/27 03:45:58 uwe Exp $
4 .
include <bsd.sys.mk
> # for HOST_SH
6 PROJECT_DIRS
= hpcboot libz libsa
8 UUDECODE_FILES
= binary
/ARM
/hpcboot.exe \
9 binary
/SH3
/hpcboot.exe \
10 binary
/MIPS
/hpcboot.exe \
11 binary
/SH4
/hpcboot.exe
14 # Generate project/work files for
15 # "eMbedded Visual C++ 3.0"
18 cd dspgen
&& ${MAKE} evc3 || exit
1
19 for d in
${PROJECT_DIRS}; do \
20 ${HOST_SH} dspgen
/config.sh evc3
$$d || exit
1; \
22 ${HOST_SH} dspgen
/gen_workspace.sh evc3 hpc_stand.vcw
$(PROJECT_DIRS
)
23 cd dspgen
&& ${MAKE} clean
26 # Generate project/work files for
27 # "eMbedded Visual C++ 4.0"
28 # (WCE300 binaries for SH3, SH4, ARMV4)
31 cd dspgen
&& ${MAKE} evc4 || exit
1
32 for d in
${PROJECT_DIRS}; do \
33 ${HOST_SH} dspgen
/config.sh evc4
$$d || exit
1; \
35 ${HOST_SH} dspgen
/gen_workspace.sh evc4 hpc_stand.vcw
$(PROJECT_DIRS
)
36 cd dspgen
&& ${MAKE} clean
40 # Generate project/work files for
41 # "Windows CE Toolkit for Visual C++ 6.0"
44 cd dspgen
&& ${MAKE} vc6 || exit
1
45 for d in
${PROJECT_DIRS}; do \
46 ${HOST_SH} dspgen
/config.sh vc6
$$d || exit
1; \
48 cd dspgen
&& ${MAKE} clean
49 ${HOST_SH} dspgen
/gen_workspace.sh vc6 hpc_stand.dsw
$(PROJECT_DIRS
)
52 # Generate project/work files for
53 # "Windows CE Embedded Toolkit for Visual C++ 5.0"
54 # (WCE100/101/200 binary for MIPS, SH3)
57 cd dspgen
&& ${MAKE} vc5 || exit
1
58 for d in
${PROJECT_DIRS}; do \
59 ${HOST_SH} dspgen
/config.sh vc5
$$d || exit
1; \
61 cd dspgen
&& ${MAKE} clean
62 ${HOST_SH} dspgen
/gen_workspace.sh vc5 hpc_stand.dsw
$(PROJECT_DIRS
)
65 rm -f hpcboot
/opt_spec_platform.h
66 # evc3 temporary files
67 rm -f hpc_stand.vcb hpc_stand.vcw hpc_stand.vco
68 rm -f hpcboot
/HPCBOOT.vcb hpcboot
/HPCBOOT.VCW hpcboot
/HPCBOOT.VCO
69 find .
-name
"*.vcp" -print | xargs
rm -f
70 find .
-name
"*.vcl" -print | xargs
rm -f
71 find .
-name
"*.vcn" -print | xargs
rm -f
72 find .
-name
"*.dep" -print | xargs
rm -f
73 rm -f hpcboot
/res
/hpcmenu.aps
75 find .
-name
"*.dsp" -print | xargs
rm -f
76 rm -f hpc_stand.dsw hpc_stand.ncb hpc_stand.opt
77 rm -f hpcboot
/hpcboot.plg
79 -rm -rf compile
/ARM
*Debug compile
/ARM
*Release \
80 compile
/SH
*Debug compile
/SH
*Release \
81 compile
/MIPSDebug compile
/MIPSRelease
82 find .
-name
"hpcboot.exe" -print | xargs
rm -f
85 find binary
-name
"hpcboot*.exe*" -print | xargs
rm -f
87 # WCE210 or later binary
89 for a in SH3 SH4 ARM MIPS
; do \
90 file
=`echo "compile/"$$a"Release/hpcboot.exe"`; \
91 cp
$$file binary
/$$a/hpcboot.exe
; \
93 # WCE200 or earlier binary
95 cp compile
/SHRelease
/hpcboot.exe binary
/SH3
/hpcboot200.exe
98 cp compile
/MIPSRelease
/hpcboot.exe binary
/MIPS
/hpcboot101.exe
101 find binary
-name
"hpcboot*.exe" -print | \
102 ${TOOL_AWK} '{ print "uuencode", $$1, $$1, ">", $$1".uue ; rm -f", $$1 }' \
104 cp binary
/build_number.h build_number.h
105 ${TOOL_AWK} '{if (/HPCBOOT_BUILD_NUMBER/) \
107 printf("#define HPCBOOT_BUILD_NUMBER %d\n", i);\
109 printf("%s\n", $$0); \
110 }}' build_number.h
> binary
/build_number.h
113 .
include <bsd.files.mk
>