]> git.cworth.org Git - apitrace/commitdiff
Makefile for the helpers.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 25 Nov 2010 11:22:24 +0000 (11:22 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 25 Nov 2010 11:22:24 +0000 (11:22 +0000)
.gitignore
helpers/Makefile [new file with mode: 0644]

index 47f025e497e17b0cc039b9b3bfcc40543bfb705a..6a73307cbbae1150d66502ecf562ed3c504964e3 100644 (file)
@@ -19,7 +19,7 @@
 CMakeCache.txt
 CMakeFiles
 MD5SUM
-Makefile
+./Makefile
 build
 cmake_install.cmake
 config.log
diff --git a/helpers/Makefile b/helpers/Makefile
new file mode 100644 (file)
index 0000000..d332cac
--- /dev/null
@@ -0,0 +1,32 @@
+
+all: download glapi.py glxapi.py wglapi.py
+
+download: \
+       enum.spec \
+       enumext.spec \
+       gl.spec \
+       gl.tm \
+       glxenum.spec \
+       glxenumext.spec \
+       glx.spec \
+       glxext.spec \
+       glx.tm \
+       wglenum.spec \
+       wglenumext.spec \
+       wgl.spec \
+       wglext.spec \
+       wgl.tm
+
+%.spec %.tm:
+       wget -N http://www.opengl.org/registry/api/$@
+
+glapi.py: spec.py gl.tm gl.spec
+       python spec.py gl gl.tm gl.spec > $@
+
+glxapi.py: spec.py glx.tm glx.spec glxext.spec
+       python spec.py glX glx.tm glx.spec glxext.spec > $@
+
+wglapi.py: spec.py wgl.tm wgl.spec wglext.spec
+       python spec.py wgl wgl.tm wgl.spec wglext.spec > $@
+
+.PRECIOUS: %.spec %.tm