#!/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 -Os -s -c -fPIC -DPIC main.c -o main.lo &&\ ld -Bshareable -o ./libGL.so main.lo -lm -ldl &&\ strip libGL.so #rm -f main.c main.lo gen