Mesa (master): build: Only generate dispatch assembly code that will be built

Matt Turner mattst88 at kemper.freedesktop.org
Fri Aug 24 18:07:29 UTC 2012


Module: Mesa
Branch: master
Commit: 0abb26ebff45bcbb82c094591079b6b70c4720bd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0abb26ebff45bcbb82c094591079b6b70c4720bd

Author: Matt Turner <mattst88 at gmail.com>
Date:   Tue Aug 21 15:09:14 2012 -0700

build: Only generate dispatch assembly code that will be built

---

 src/mapi/glapi/gen/Makefile.am |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/mapi/glapi/gen/Makefile.am b/src/mapi/glapi/gen/Makefile.am
index 499ec09..40aaf51 100644
--- a/src/mapi/glapi/gen/Makefile.am
+++ b/src/mapi/glapi/gen/Makefile.am
@@ -38,10 +38,18 @@ MESA_GLAPI_OUTPUTS = \
 	$(MESA_GLAPI_DIR)/glapitable.h \
 	$(MESA_GLAPI_DIR)/glapi_gentable.c
 
-MESA_GLAPI_ASM_OUTPUTS = \
-	$(MESA_GLAPI_DIR)/glapi_x86.S \
-	$(MESA_GLAPI_DIR)/glapi_x86-64.S \
-	$(MESA_GLAPI_DIR)/glapi_sparc.S
+MESA_GLAPI_ASM_OUTPUTS =
+if HAVE_X86_ASM
+MESA_GLAPI_ASM_OUTPUTS += $(MESA_GLAPI_DIR)/glapi_x86.S
+endif
+
+if HAVE_X86_64_ASM
+MESA_GLAPI_ASM_OUTPUTS += $(MESA_GLAPI_DIR)/glapi_x86-64.S
+endif
+
+if HAVE_SPARC_ASM
+MESA_GLAPI_ASM_OUTPUTS += $(MESA_GLAPI_DIR)/glapi_sparc.S
+endif
 
 MESA_OUTPUTS = \
 	$(MESA_GLAPI_OUTPUTS) \




More information about the mesa-commit mailing list