From 0d84c68313cba241b8020f12211f2abdfd53a955 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 20 Dec 2004 04:53:00 +0000 Subject: Use GLX protocol code generated by glX_proto_send.py. --- src/mesa/glapi/Makefile | 38 ++++++++++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 8 deletions(-) (limited to 'src/mesa/glapi') diff --git a/src/mesa/glapi/Makefile b/src/mesa/glapi/Makefile index 67a1d09160..d0a7342475 100644 --- a/src/mesa/glapi/Makefile +++ b/src/mesa/glapi/Makefile @@ -4,34 +4,56 @@ # up to him/her to re-run this makefile and check in the newly generated files. -OUTPUTS = glprocs.h glapitemp.h glapioffsets.h glapitable.h ../x86/glapi_x86.S +OUTPUTS = glprocs.h glapitemp.h glapioffsets.h glapitable.h \ + ../x86/glapi_x86.S \ + ../../glx/x11/indirect.c \ + ../../glx/x11/indirect.h \ + ../../glx/x11/indirect_init.c \ + ../../glx/x11/indirect_size.h \ + ../../glx/x11/indirect_size.c COMMON = gl_XML.pyc license.pyc gl_API.xml +PYTHON2 = python all: $(OUTPUTS) gl_XML.pyc: gl_XML.py rm -f gl_XML.pyc > /dev/null - python2 -t -O gl_XML.py + $(PYTHON2) -t -O gl_XML.py license.pyc: license.py rm -f license.pyc > /dev/null - python2 -t -O license.py + $(PYTHON2) -t -O license.py glprocs.h: $(COMMON) gl_procs.py - python2 -t gl_procs.py > glprocs.h + $(PYTHON2) -t gl_procs.py > glprocs.h glapitemp.h: $(COMMON) gl_apitemp.py - python2 -t gl_apitemp.py > glapitemp.h + $(PYTHON2) -t gl_apitemp.py > glapitemp.h glapioffsets.h: $(COMMON) gl_offsets.py - python2 -t gl_offsets.py > glapioffsets.h + $(PYTHON2) -t gl_offsets.py > glapioffsets.h glapitable.h: $(COMMON) gl_table.py - python2 -t gl_table.py > glapitable.h + $(PYTHON2) -t 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) -t 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.h: $(COMMON) glX_proto_send.py + $(PYTHON2) -t 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_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.c: $(COMMON) glX_proto_send.py + $(PYTHON2) -t glX_proto_send.py -m size_c > ../../glx/x11/indirect_size.c clean: rm -f *~ *.pyc -- cgit v1.2.3