summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorStephane Marchesin <stephane.marchesin@gmail.com>2010-12-19 03:13:06 -0800
committerStephane Marchesin <stephane.marchesin@gmail.com>2010-12-19 03:13:06 -0800
commit32b62fb19254793a231f221ec87958c6183755ed (patch)
treeb3f9108fd7bc0e31122e56a90d825c3d145637f5 /build
Initial import.
Diffstat (limited to 'build')
-rwxr-xr-xbuild9
1 files changed, 9 insertions, 0 deletions
diff --git a/build b/build
new file mode 100755
index 0000000..c01faaf
--- /dev/null
+++ b/build
@@ -0,0 +1,9 @@
+#!/bin/sh
+#wget http://cgit.freedesktop.org/mesa/mesa/plain/src/mapi/glapi/gen/gl_API.xml
+rm -f libGL.so
+gcc -O2 gen.c -o gen `xml2-config --libs --cflags` &&\
+./gen &&\
+gcc -O2 -s -c -fPIC -DPIC main.c -o main.lo &&\
+ld -Bshareable -o ./libGL.so main.lo -lm -ldl
+#rm -f main.c main.lo gen
+