summaryrefslogtreecommitdiffstats
path: root/src/mesa/Makefile
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-05-03 08:32:56 -0400
committerKristian Høgsberg <[email protected]>2010-05-03 08:33:23 -0400
commit723511bb32900a8e2f463a2622c7e9a908f64583 (patch)
tree5a40abb4ac04d591e8752ffd795593ea6004d413 /src/mesa/Makefile
parent9db4a211e96356deb963223038eea074a5fe0eda (diff)
Generate es glapi files when es1 or es2 is enabled
Diffstat (limited to 'src/mesa/Makefile')
-rw-r--r--src/mesa/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/Makefile b/src/mesa/Makefile
index 5403d28f328..72f983e10a0 100644
--- a/src/mesa/Makefile
+++ b/src/mesa/Makefile
@@ -21,9 +21,15 @@ CFLAGS += $(API_DEFINES)
# Default: build dependencies, then asm_subdirs, GLSL built-in lib,
# then convenience libs (.a) and finally the device drivers:
-default: depend asm_subdirs glsl_builtin libmesa.a libmesagallium.a \
+default: depend es_glapi asm_subdirs glsl_builtin libmesa.a libmesagallium.a \
libglapi.a driver_subdirs
+es_glapi:
+ @for api in $(APIS) ; do \
+ case "$$api" in \
+ es1|es2) $(MAKE) -C es/glapi $$api;; \
+ esac; \
+ done
main/api_exec_es1.c: main/APIspec.xml main/es_generator.py main/APIspecutil.py main/APIspec.py
$(PYTHON2) $(PYTHON_FLAGS) main/es_generator.py -S main/APIspec.xml -V GLES1.1 > $@