#!/bin/sh
SDK=/Developer/SDKs/MacOSX10.4u.sdk
if [ $# -eq 1 ]
then
SDK=$1
fi 
CFLAGS="-isysroot ${SDK} -I ${SDK}/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/include/"; export CFLAGS
rm -rf System Developer
h-to-ffi.sh ${SDK}/System/Library/Frameworks/OpenGL.framework/Headers/OpenGL.h
h-to-ffi.sh ${SDK}/System/Library/Frameworks/GLUT.framework/Headers/glut.h
h-to-ffi.sh ${SDK}/System/Library/Frameworks/AGL.framework/Headers/agl.h
