11b33fb86e45ad47a037b9ebe2e782aa14df148d
[mesa.git] / src / mesa / glapi / Makefile
1 # This file isn't used during a normal compilation since we don't want to
2 # require Python in order to compile Mesa.
3 # Instead, when the Mesa developers update/change the API interface it's
4 # up to him/her to re-run this makefile and check in the newly generated files.
5
6
7 OUTPUTS = glprocs.h glapitemp.h glapioffsets.h glapitable.h glapi_x86.S
8
9 COMMON = gl_XML.pyc license.pyc gl_API.xml
10
11 all: $(OUTPUTS)
12
13 gl_XML.pyc: gl_XML.py
14 rm -f gl_XML.pyc > /dev/null
15 python2 -t -O gl_XML.py
16
17 license.pyc: license.py
18 rm -f license.pyc > /dev/null
19 python2 -t -O license.py
20
21 glprocs.h: $(COMMON) gl_procs.py
22 python2 -t gl_procs.py > glprocs.h
23
24 glapitemp.h: $(COMMON) gl_apitemp.py
25 python2 -t gl_apitemp.py > glapitemp.h
26
27 glapioffsets.h: $(COMMON) gl_offsets.py
28 python2 -t gl_offsets.py > glapioffsets.h
29
30 glapitable.h: $(COMMON) gl_table.py
31 python2 -t gl_table.py > glapitable.h
32
33 glapi_x86.S: $(COMMON) gl_x86_asm.py
34 python2 -t gl_x86_asm.py > glapi_x86.S
35
36 clean:
37 rm -f *~ *.pyc
38 rm -f $(OUTPUTS)