diff options
author | Ian Romanick <[email protected]> | 2005-01-24 21:43:29 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2005-01-24 21:43:29 +0000 |
commit | ad15f1bdeadd5370fba445b6565d60d8824101c8 (patch) | |
tree | c2ac188b350d01c0f15e7b2c5c4eb7e41a992ef4 /src/mesa/glapi | |
parent | 5ff2b94630e89da1586628f14eb869b513071154 (diff) |
Correct some of the dependencies and clean things up a bit.
Diffstat (limited to 'src/mesa/glapi')
-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) |