-
Notifications
You must be signed in to change notification settings - Fork 1
/
get-libs-PC.sh
54 lines (46 loc) · 1.07 KB
/
get-libs-PC.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
NETMAN=$(readlink -f "$0")
NETMAN_DIR=$(dirname "$NETMAN")
mkdir -p bin
mkdir -p lib/include
echo '\n Building shakespeare...\n'
cd ../space-lib/shakespeare
echo "cd: \c"
pwd
cp inc/shakespeare.h $NETMAN_DIR/lib/include
sh x86-compile-lib-static.sh
cp lib/libshakespeare.a $NETMAN_DIR/lib
# Builds libhe100.a
echo '\n Building HE-100 Library...\n'
cd $NETMAN_DIR
cd ../HE100-lib/C
echo "cd: \c"
pwd
sh csmake.sh
cp lib/libhe100.a $NETMAN_DIR/lib
cp inc/SC_he100.h $NETMAN_DIR/lib/include
cd $NETMAN_DIR/lib
# Timer library
echo '\n Building timer Library...\n'
cd $NETMAN_DIR
cd ../space-timer-lib
echo "cd: \c"
pwd
sh x86-compile-lib-static-cpp.sh
cp lib/libtimer.a $NETMAN_DIR/lib
cp inc/timer.h $NETMAN_DIR/lib/include
# namedpipe & commander
echo '\n Building Namedpipes and commander...\n'
cd ../space-commander
echo "cd: \c"
pwd
cp include/Net2Com.h lib/include
cp include/NamedPipe.h lib/include
make buildBin
cp bin/space-commander $NETMAN_DIR/bin
make staticlibs.tar
cp staticlibs.tar $NETMAN_DIR
cd $NETMAN_DIR
tar -xf staticlibs.tar
rm staticlibs.tar
cd $NETMAN_DIR/lib
ls -al