-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakeworld.sh
executable file
·60 lines (46 loc) · 1 KB
/
makeworld.sh
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
#!/bin/sh
set -e
set -x
CMD="export"
[ -n "$1" ] && CMD="$*"
CGT=`pwd`
export CGT
PROC="`uname -p`"
export PROC
if [ ! -d /cgt ]; then
mkdir /cgt
fi
if [ ! -d /cgt/bin ]; then
mkdir /cgt/bin
fi
if [ ! -d /cgt/lib ]; then
mkdir /cgt/lib
fi
if [ ! -d /cgt/include ]; then
mkdir /cgt/include
fi
(cd bin/ccgen; make $CMD)
if [ "$PROC" = "sparc" ]; then
(cd lib/cgt; make -f Makefile.sun $CMD)
elif [ "$PROC" = "powerpc" ]; then
(cd lib/cgt; make -f Makefile.osx $CMD)
else
(cd lib/cgt; make $CMD)
fi
(cd lib/integer; make $CMD)
if [ "$PROC" = "powerpc" ]; then
rm -f lib/aoa/Makefile; ln -s makefile.osx lib/aoa/Makefile
else
rm -f lib/aoa/Makefile; ln -s makefile.fbsd lib/aoa/Makefile
fi
(cd lib/floatc; make $CMD)
(cd lib/fmalloc; make $CMD)
(cd lib/aoa; make $CMD)
(cd lib/wfmalloc; make $CMD)
(cd bin/wacco; make $CMD)
(cd bin/cc; make $CMD)
(cd lib/gcmalloc; make $CMD)
(cd lib/wgmalloc; make $CMD)
# (cd lib/sym; make $CMD)
# (cd lib/clib; make $CMD)
# (cd lib/edit; make $CMD)