blob: 686aa60ec5ce760f28d8556cc59b4d47c33b5f94 (
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
|
#
# This makefile simplifies the build process for a toolchain user.
# A toolchain developer should prefer a manual build process which
# fits to his original needs.
#
X86_PREFIX?=/usr/local
x86_path=./build_x86
x86_status=$(x86_path)/config.status
PPC_PREFIX?=/opt/ppcnf/crossroot
ppc_path=./build_ppc
ppc_status=$(ppc_path)/config.status
all: x86 ppc
install: install_x86 install_ppc
uninstall: uninstall_x86 uninstall_ppc
install_x86: x86
make -C $(x86_path) install
install_ppc: ppc
make -C $(ppc_path) install
uninstall_x86: x86
make -C $(x86_path) uninstall
uninstall_ppc: ppc
make -C $(ppc_path) uninstall
x86: $(x86_status)
make -C $(x86_path)
ppc: $(ppc_status)
make -C $(ppc_path)
$(x86_status): $(x86_path) Makefile.in
cd $(x86_path) && ./config.status || ../configure \
--prefix=$(X86_PREFIX)
$(ppc_status): $(ppc_path) Makefile.in
cd $(ppc_path) && ./config.status || ../configure \
--build=i686-pc-linux-gnu \
--host=ppc-linux \
--prefix=$(PPC_PREFIX) \
--exec-prefix=$(PPC_PREFIX)
Makefile.in: Makefile.am
./bootstrap
$(x86_path):
mkdir -p $(x86_path)
$(ppc_path):
mkdir -p $(ppc_path)
clean:
rm -rf depcomp install-sh missing .deps \
config.log config.status \
inc/Makefile.in lib/Makefile.in
find . -type f -name "*~" -print | xargs $(RM)
rm -f Makefile.in
rm -f aclocal.m4
rm -rf autom4te.cache
rm -f config.guess
rm -f config.sub
rm -f configure
rm -f depcomp
rm -f install-sh
rm -f ltmain.sh
rm -f missing
rm -f lib/Makefile.in
rm -f inc/Makefile.in
rm -rf $(x86_path)
rm -rf $(ppc_path)
|