summaryrefslogtreecommitdiff
path: root/specs/scripts/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'specs/scripts/Makefile')
-rw-r--r--specs/scripts/Makefile51
1 files changed, 51 insertions, 0 deletions
diff --git a/specs/scripts/Makefile b/specs/scripts/Makefile
new file mode 100644
index 0000000..2ea2066
--- /dev/null
+++ b/specs/scripts/Makefile
@@ -0,0 +1,51 @@
+
+all: \
+ download \
+ glapi.py glxapi.py wglapi.py \
+ glparams.py wglenum.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:
+ wget -N http://www.opengl.org/registry/api/$@
+
+%.tm:
+ wget -N http://www.opengl.org/registry/api/$@
+
+glapi.py: glspec.py gl.tm gl.spec
+ python glspec.py gl gl.tm gl.spec > $@
+
+glxapi.py: glspec.py glx.tm glx.spec glxext.spec
+ python glspec.py glX glx.tm glx.spec glxext.spec > $@
+
+wglapi.py: glspec.py wgl.tm wgl.spec wglext.spec
+ python glspec.py wgl wgl.tm wgl.spec wglext.spec > $@
+
+glparams.py: glparams.sed enum.spec sort.sh
+ sed -n -f glparams.sed enum.spec | ./sort.sh > $@
+
+wglenum.py: wglenum.sh wglenumext.spec
+ ./wglenum.sh wglenumext.spec > $@
+
+clean:
+ rm -f \
+ glapi.py glxapi.py wglapi.py \
+ glparams.py wglenum.py
+
+.PRECIOUS: %.spec %.tm
+
+.PHONY: download clean