aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ClientHamr/GuiLua/build.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xClientHamr/GuiLua/build.sh26
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
3export LOCALDIR=`pwd`
4
5# No need for a make file, or dependencies, the entire thing takes only a few seconds to build.
6
7CFLAGS="-g -Wall -I include -I $LOCALDIR"
8CFLAGS="$CFLAGS -I ../../libraries"
9CFLAGS="$CFLAGS $(pkg-config --cflags luajit)"
10CFLAGS="$CFLAGS $(pkg-config --cflags elementary)"
11CFLAGS="$CFLAGS -DPACKAGE_BIN_DIR=\"$LOCALDIR\""
12CFLAGS="$CFLAGS -DPACKAGE_LIB_DIR=\"$LOCALDIR\""
13CFLAGS="$CFLAGS -DPACKAGE_DATA_DIR=\"$LOCALDIR\" $CFLAGOPTS"
14
15LDFLAGS="-L $LOCALDIR $(pkg-config --libs-only-L luajit) -L lib -L /usr/lib -L /lib"
16libs="$(pkg-config --cflags --libs elementary) $(pkg-config --libs luajit) -lpthread -lm -ldl"
17
18echo "clean"
19rm -f test_c.so GuiLua.o libGuiLua.so skang
20echo "C modules"
21gcc $CFLAGS -fPIC -shared -o test_c.so test_c.c
22gcc $CFLAGS -fPIC -c GuiLua.c
23echo "C libraries"
24gcc $CFLAGS -shared -Wl,-soname,libGuiLua.so -o libGuiLua.so GuiLua.o
25echo "C apps"
26gcc $CFLAGS -Wl,-export-dynamic -o skang skang.c $LDFLAGS -lGuiLua $libs