UTIL_FILES = readtex.h readtex.c
+GL_API_XML = $(TOP)/src/mapi/glapi/gen/gl_API.xml
+
+
##### TARGETS #####
default: $(UTIL_FILES) $(PROGS)
# auto code generation
getprocaddress: getprocaddress.c getproclist.h
-getproclist.h: $(TOP)/src/mesa/glapi/gen/gl_API.xml getprocaddress.c getprocaddress.py
+getproclist.h: $(GL_API_XML) getprocaddress.c getprocaddress.py
python getprocaddress.py > getproclist.h
arraytexture: arraytexture.o readtex.o
# Helper for the getprocaddress.c test.
+glapi_xml_path = "../../src/mapi/glapi/gen/"
+
import sys, getopt, re
-sys.path.append("../../src/mesa/glapi/gen" )
+sys.path.append(glapi_xml_path)
import gl_XML
import license
if __name__ == '__main__':
- file_name = "../../src/mesa/glapi/gen/gl_API.xml"
+ file_name = glapi_xml_path + "gl_API.xml"
try:
(args, trail) = getopt.getopt(sys.argv[1:], "f:")