blob: ebe53f7bede1be21ab3744c7540c55a640b8f7e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# $NetBSD: Makefile,v 1.25 2014/01/16 01:15:34 christos Exp $
#
.include <bsd.own.mk>
PROJECT_DIRS= hpcboot libz libsa
UUDECODE_FILES= binary/ARM/hpcboot.exe \
binary/SH3/hpcboot.exe \
binary/MIPS/hpcboot.exe \
binary/SH4/hpcboot.exe
#
# Generate project/work files for
# "eMbedded Visual C++ 3.0"
#
evc3:
cd dspgen && ${MAKE} evc3 || exit 1
for d in ${PROJECT_DIRS}; do \
${HOST_SH} dspgen/config.sh evc3 $$d || exit 1; \
done
${HOST_SH} dspgen/gen_workspace.sh evc3 hpc_stand.vcw $(PROJECT_DIRS)
cd dspgen && ${MAKE} clean
#
# Generate project/work files for
# "eMbedded Visual C++ 4.0"
# (WCE300 binaries for SH3, SH4, ARMV4)
#
evc4:
cd dspgen && ${MAKE} evc4 || exit 1
for d in ${PROJECT_DIRS}; do \
${HOST_SH} dspgen/config.sh evc4 $$d || exit 1; \
done
${HOST_SH} dspgen/gen_workspace.sh evc4 hpc_stand.vcw $(PROJECT_DIRS)
cd dspgen && ${MAKE} clean
#
#
# Generate project/work files for
# "Windows CE Toolkit for Visual C++ 6.0"
#
vc6:
cd dspgen && ${MAKE} vc6 || exit 1
for d in ${PROJECT_DIRS}; do \
${HOST_SH} dspgen/config.sh vc6 $$d || exit 1; \
done
cd dspgen && ${MAKE} clean
${HOST_SH} dspgen/gen_workspace.sh vc6 hpc_stand.dsw $(PROJECT_DIRS)
#
# Generate project/work files for
# "Windows CE Embedded Toolkit for Visual C++ 5.0"
# (WCE100/101/200 binary for MIPS, SH3)
#
vc5:
cd dspgen && ${MAKE} vc5 || exit 1
for d in ${PROJECT_DIRS}; do \
${HOST_SH} dspgen/config.sh vc5 $$d || exit 1; \
done
cd dspgen && ${MAKE} clean
${HOST_SH} dspgen/gen_workspace.sh vc5 hpc_stand.dsw $(PROJECT_DIRS)
clean:
rm -f hpcboot/opt_spec_platform.h
# evc3 temporary files
rm -f hpc_stand.vcb hpc_stand.vcw hpc_stand.vco
rm -f hpcboot/HPCBOOT.vcb hpcboot/HPCBOOT.VCW hpcboot/HPCBOOT.VCO
find . -name "*.vcp" -print | xargs rm -f
find . -name "*.vcl" -print | xargs rm -f
find . -name "*.vcn" -print | xargs rm -f
find . -name "*.dep" -print | xargs rm -f
rm -f hpcboot/res/hpcmenu.aps
# vc6 temporary files
find . -name "*.dsp" -print | xargs rm -f
rm -f hpc_stand.dsw hpc_stand.ncb hpc_stand.opt
rm -f hpcboot/hpcboot.plg
# compile directory
-rm -rf compile/ARM*Debug compile/ARM*Release \
compile/SH*Debug compile/SH*Release \
compile/MIPSDebug compile/MIPSRelease
find . -name "hpcboot.exe" -print | xargs rm -f
distclean: clean
find binary -name "hpcboot*.exe*" -print | xargs rm -f
# WCE210 or later binary
install:
for a in SH3 SH4 ARM MIPS; do \
file=`echo "compile/"$$a"Release/hpcboot.exe"`; \
cp $$file binary/$$a/hpcboot.exe; \
done
# WCE200 or earlier binary
install200:
cp compile/SHRelease/hpcboot.exe binary/SH3/hpcboot200.exe
install101:
cp compile/MIPSRelease/hpcboot.exe binary/MIPS/hpcboot101.exe
uuencode:
find binary -name "hpcboot*.exe" -print | \
${TOOL_AWK} '{ print "uuencode", $$1, $$1, ">", $$1".uue ; rm -f", $$1 }' \
| ${HOST_SH}
cp binary/build_number.h build_number.h
${TOOL_AWK} '{if (/HPCBOOT_BUILD_NUMBER/) \
{ i = $$3 + 1; \
printf("#define HPCBOOT_BUILD_NUMBER %d\n", i);\
} else { \
printf("%s\n", $$0); \
}}' build_number.h > binary/build_number.h
rm -f build_number.h
.include <bsd.files.mk>
|