aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Quessy <alexandrequessy@users.sourceforge.net>2009-11-17 18:21:36 +0000
committerAlexandre Quessy <alexandrequessy@users.sourceforge.net>2009-11-17 18:21:36 +0000
commit0e850dfa1082de332f7a58bedb825579f5fc53cb (patch)
tree981b0ecde1e29f257f8b3b791d49f92c8bace940
parentf45874900a71b196f13a19d1e8d6efe7913e629d (diff)
adding build.sh, trying to build x11 externals for ubuntu 8.10
svn path=/trunk/externals/aalex/; revision=12792
-rwxr-xr-xbuild.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..872dcc7
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+set -o verbose
+CFGLAGS=`pkg-config --cflags x11 xcb-xlib xcb xcursor libxml-2.0 gtk+-x11-2.0 gtk+-2.0 glib-2.0 gmodule-2.0`
+LIBS=`pkg-config --libs x11 xcb-xlib xcb xcursor libxml-2.0 gtk+-x11-2.0 gtk+-2.0 glib-2.0 gmodule-2.0`
+INCLUDES="-I../src -I../../pd/src"
+
+gcc -Wall -Werror $INCLUDES $CFLAGS -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -fPIC -lm -lc -o x11key.o -c x11key.c
+ld -shared -o x11key.pd_linux x11key.o -lc -lm $LIBS
+strip --strip-unneeded x11key.pd_linux
+