OSDN Git Service

build: Only generate dispatch assembly code that will be built
authorMatt Turner <mattst88@gmail.com>
Tue, 21 Aug 2012 22:09:14 +0000 (15:09 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 24 Aug 2012 18:08:19 +0000 (11:08 -0700)
src/mapi/glapi/gen/Makefile.am

index 499ec09..40aaf51 100644 (file)
@@ -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) \