diff options
Diffstat (limited to '')
-rwxr-xr-x | ClientHamr/GuiLua/build.sh | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/ClientHamr/GuiLua/build.sh b/ClientHamr/GuiLua/build.sh deleted file mode 100755 index c405bb2..0000000 --- a/ClientHamr/GuiLua/build.sh +++ /dev/null | |||
@@ -1,26 +0,0 @@ | |||
1 | #! /bin/bash | ||
2 | |||
3 | export LOCALDIR=`pwd` | ||
4 | |||
5 | # No need for a make file, or dependencies, the entire thing takes only a few seconds to build. | ||
6 | |||
7 | CFLAGS="-g -Wall -I include -I $LOCALDIR" | ||
8 | CFLAGS="$CFLAGS -I ../../libraries" | ||
9 | CFLAGS="$CFLAGS $(pkg-config --cflags luajit)" | ||
10 | CFLAGS="$CFLAGS $(pkg-config --cflags elementary)" | ||
11 | CFLAGS="$CFLAGS -DPACKAGE_BIN_DIR=\"$LOCALDIR\"" | ||
12 | CFLAGS="$CFLAGS -DPACKAGE_LIB_DIR=\"$LOCALDIR\"" | ||
13 | CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS" | ||
14 | |||
15 | LDFLAGS="-L $LOCALDIR $(pkg-config --libs-only-L luajit) -L lib -L /usr/lib -L /lib" | ||
16 | libs="$(pkg-config --cflags --libs elementary) $(pkg-config --libs luajit) -lpthread -lm -ldl" | ||
17 | |||
18 | echo "clean" | ||
19 | rm -f test_c.so GuiLua.o libGuiLua.so skang | ||
20 | echo "C modules" | ||
21 | gcc $CFLAGS -fPIC -shared -o test_c.so test_c.c | ||
22 | gcc $CFLAGS -fPIC -c GuiLua.c | ||
23 | echo "C libraries" | ||
24 | gcc $CFLAGS -shared -Wl,-soname,libGuiLua.so -o libGuiLua.so GuiLua.o | ||
25 | echo "C apps" | ||
26 | gcc $CFLAGS -Wl,-export-dynamic -o skang skang.c $LDFLAGS -lGuiLua $libs | ||