diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/glapi/Makefile | 53 |
1 files changed, 30 insertions, 23 deletions
diff --git a/src/mesa/glapi/Makefile b/src/mesa/glapi/Makefile index d0a73424759..624d0d9326c 100644 --- a/src/mesa/glapi/Makefile +++ b/src/mesa/glapi/Makefile @@ -12,49 +12,56 @@ OUTPUTS = glprocs.h glapitemp.h glapioffsets.h glapitable.h \ ../../glx/x11/indirect_size.h \ ../../glx/x11/indirect_size.c -COMMON = gl_XML.pyc license.pyc gl_API.xml +COMMON = gl_XML.pyo license.pyo gl_API.xml +COMMON_GLX = $(COMMON) glX_XML.pyo + PYTHON2 = python +PYTHON_FLAGS = -t -O -O all: $(OUTPUTS) -gl_XML.pyc: gl_XML.py - rm -f gl_XML.pyc > /dev/null - $(PYTHON2) -t -O gl_XML.py +gl_XML.pyo: gl_XML.py + rm -f gl_XML.pyo > /dev/null + $(PYTHON2) $(PYTHON_FLAGS) gl_XML.py + +glX_XML.pyo: glX_XML.py $(COMMON) + rm -f glX_XML.pyo > /dev/null + $(PYTHON2) $(PYTHON_FLAGS) glX_XML.py -license.pyc: license.py - rm -f license.pyc > /dev/null - $(PYTHON2) -t -O license.py +license.pyo: license.py + rm -f license.pyo > /dev/null + $(PYTHON2) $(PYTHON_FLAGS) license.py glprocs.h: $(COMMON) gl_procs.py - $(PYTHON2) -t gl_procs.py > glprocs.h + $(PYTHON2) $(PYTHON_FLAGS) gl_procs.py > glprocs.h glapitemp.h: $(COMMON) gl_apitemp.py - $(PYTHON2) -t gl_apitemp.py > glapitemp.h + $(PYTHON2) $(PYTHON_FLAGS) gl_apitemp.py > glapitemp.h glapioffsets.h: $(COMMON) gl_offsets.py - $(PYTHON2) -t gl_offsets.py > glapioffsets.h + $(PYTHON2) $(PYTHON_FLAGS) gl_offsets.py > glapioffsets.h glapitable.h: $(COMMON) gl_table.py - $(PYTHON2) -t gl_table.py > glapitable.h + $(PYTHON2) $(PYTHON_FLAGS) gl_table.py > glapitable.h ../x86/glapi_x86.S: $(COMMON) gl_x86_asm.py - $(PYTHON2) -t gl_x86_asm.py > ../x86/glapi_x86.S + $(PYTHON2) $(PYTHON_FLAGS) gl_x86_asm.py > ../x86/glapi_x86.S -../../glx/x11/indirect.c: $(COMMON) glX_proto_send.py - $(PYTHON2) -t glX_proto_send.py -m proto > ../../glx/x11/indirect.c +../../glx/x11/indirect.c: $(COMMON_GLX) glX_proto_send.py + $(PYTHON2) $(PYTHON_FLAGS) glX_proto_send.py -m proto > ../../glx/x11/indirect.c -../../glx/x11/indirect.h: $(COMMON) glX_proto_send.py - $(PYTHON2) -t glX_proto_send.py -m init_h > ../../glx/x11/indirect.h +../../glx/x11/indirect.h: $(COMMON_GLX) glX_proto_send.py + $(PYTHON2) $(PYTHON_FLAGS) glX_proto_send.py -m init_h > ../../glx/x11/indirect.h -../../glx/x11/indirect_init.c: $(COMMON) glX_proto_send.py - $(PYTHON2) -t glX_proto_send.py -m init_c > ../../glx/x11/indirect_init.c +../../glx/x11/indirect_init.c: $(COMMON_GLX) glX_proto_send.py + $(PYTHON2) $(PYTHON_FLAGS) glX_proto_send.py -m init_c > ../../glx/x11/indirect_init.c -../../glx/x11/indirect_size.h: $(COMMON) glX_proto_send.py - $(PYTHON2) -t glX_proto_send.py -m size_h > ../../glx/x11/indirect_size.h +../../glx/x11/indirect_size.h: $(COMMON_GLX) glX_proto_send.py + $(PYTHON2) $(PYTHON_FLAGS) glX_proto_send.py -m size_h > ../../glx/x11/indirect_size.h -../../glx/x11/indirect_size.c: $(COMMON) glX_proto_send.py - $(PYTHON2) -t glX_proto_send.py -m size_c > ../../glx/x11/indirect_size.c +../../glx/x11/indirect_size.c: $(COMMON_GLX) glX_proto_send.py + $(PYTHON2) $(PYTHON_FLAGS) glX_proto_send.py -m size_c > ../../glx/x11/indirect_size.c clean: - rm -f *~ *.pyc + rm -f *~ *.pyo rm -f $(OUTPUTS) |