Simplify makefile boilerplate code.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 19 Feb 2008 04:27:13 +0000 (13:27 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Tue, 19 Feb 2008 05:06:11 +0000 (14:06 +0900)
Don't define ASM_SOURCES variable globally -- reserve that variable to be defined
locally by makefiles, together with C_SOURCES and CPP_SOURCES.

34 files changed:
configs/beos
configs/default
configs/freebsd-dri
configs/freebsd-dri-amd64
configs/freebsd-dri-x86
configs/linux-directfb
configs/linux-dri
configs/linux-dri-ppc
configs/linux-dri-x86
configs/linux-dri-x86-64
configs/linux-dri-xcb
configs/linux-icc
configs/linux-icc-static
configs/linux-indirect
configs/linux-solo
configs/linux-solo-x86
configs/linux-sparc
configs/linux-x86
configs/linux-x86-64
configs/linux-x86-glide
configs/sunos5-gcc
src/gallium/auxiliary/cso_cache/Makefile
src/gallium/auxiliary/draw/Makefile
src/gallium/auxiliary/pipebuffer/Makefile
src/gallium/auxiliary/rtasm/Makefile
src/gallium/auxiliary/tgsi/Makefile
src/gallium/auxiliary/util/Makefile
src/gallium/drivers/failover/Makefile
src/gallium/drivers/i915simple/Makefile
src/gallium/drivers/i965simple/Makefile
src/gallium/drivers/softpipe/Makefile
src/gallium/winsys/dri/Makefile.template
src/glx/x11/Makefile
src/mesa/sources

index 2b74af739d0bb6edae31ddbb33ade90fb25d4fe0..c6e972789a5842e754fefefc6a9c30993332c36d 100644 (file)
@@ -26,8 +26,8 @@ ifeq ($(CPU), x86)
                -DUSE_3DNOW_ASM \
                -DUSE_SSE_ASM
        
-       ASM_SOURCES = $(X86_SOURCES)
-       ASM_API = $(X86_API)
+       MESA_ASM_SOURCES = $(X86_SOURCES)
+       GLAPI_ASM_SOURCES = $(X86_API)
 
        CC = gcc
        CXX = g++
index c9be5ec3e330683b3039e5427aacf766f42adb45..48ddd29282baa17cdc799322724b9942eb083133 100644 (file)
@@ -51,7 +51,7 @@ OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
 
 
 # Optional assembly language optimization files for libGL
-ASM_SOURCES = 
+MESA_ASM_SOURCES = 
 
 # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
 # order to build the Motif widget too)
index 67d253b8695a4a0e5bfdaf69ded05424f0486863..6fc1abbc80236575a78bba84729fb3f980f7d272 100644 (file)
@@ -22,7 +22,7 @@ CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) -Wmissing-prototypes -std=c99 -
 
 CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) -Wall -ansi -pedantic $(ASM_FLAGS) $(X11_INCLUDES) 
 
-ASM_SOURCES = 
+MESA_ASM_SOURCES = 
 
 # Library/program dependencies
 LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
index 39341b9701a912b579d73ff1d79080225192a014..bb6c361398abd320d9ec26dba63f8d039cacd8fe 100644 (file)
@@ -6,5 +6,5 @@ include $(TOP)/configs/freebsd-dri
 CONFIG_NAME = freebsd-dri-x86-64
 
 ASM_FLAGS = -DUSE_X86_64_ASM
-ASM_SOURCES = $(X86-64_SOURCES)
-ASM_API = $(X86-64_API)
+MESA_ASM_SOURCES = $(X86-64_SOURCES)
+GLAPI_ASM_SOURCES = $(X86-64_API)
index af0d27ff47d035dfa07c99f42dcfad485d2cc171..9475437fc5b00e6c91d1276ac05324a7526f36b2 100644 (file)
@@ -9,5 +9,5 @@ CONFIG_NAME = freebsd-dri-x86
 PIC_FLAGS = 
 
 ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
-ASM_SOURCES = $(X86_SOURCES)
-ASM_API = $(X86_API)
+MESA_ASM_SOURCES = $(X86_SOURCES)
+GLAPI_ASM_SOURCES = $(X86_API)
index dff27f78503272c6d4cae9565d5639dbfae8908c..2ed94fe27506ad41cda65703f2e8fb5a1028d67f 100644 (file)
@@ -17,8 +17,8 @@ HAVE_X86 = $(shell uname -m | grep 'i[3-6]86' >/dev/null && echo yes)
 ifeq ($(HAVE_X86), yes)
      CFLAGS   += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
      CXXFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
-     ASM_SOURCES = $(X86_SOURCES)
-     ASM_API = $(X86_API)
+     MESA_ASM_SOURCES = $(X86_SOURCES)
+     GLAPI_ASM_SOURCES = $(X86_API)
 endif
 
 # Directories
index c45b600013c9e46bf916736fbff80befe6d00aee..67e60cbd4c577efe737e5c8de690d5edac08f79f 100644 (file)
@@ -33,7 +33,7 @@ CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \
 CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
 
 
-ASM_SOURCES = 
+MESA_ASM_SOURCES = 
 
 # Library/program dependencies
 EXTRA_LIB_PATH=-L/usr/X11R6/lib
index fb87688065f61a7999bac0b115f0a64b86632be4..a3a3ca83cb37da450e57c2629e5d7ddf8f3896a7 100644 (file)
@@ -9,7 +9,7 @@ OPT_FLAGS = -Os -mcpu=603
 PIC_FLAGS = -fPIC
 
 ASM_FLAGS = -DUSE_PPC_ASM -DUSE_VMX_ASM
-ASM_SOURCES = $(PPC_SOURCES)
+MESA_ASM_SOURCES = $(PPC_SOURCES)
 
 # Build only the drivers for cards that exist on PowerPC.  At some point MGA
 # will be added, but not yet.
index b196004e58f7c0672dc7d02963814c0167d7c0e9..ec8242dd68fa7b55883444e618eaede977509ec7 100644 (file)
@@ -12,6 +12,6 @@ PIC_FLAGS =
 ARCH_FLAGS = -m32
 
 ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
-ASM_SOURCES = $(X86_SOURCES)
-ASM_API = $(X86_API)
+MESA_ASM_SOURCES = $(X86_SOURCES)
+GLAPI_ASM_SOURCES = $(X86_API)
 
index 821ab3e336688e357f00024a4c2997157491bdab..bb56de375a14bda3e067fff57941b1a4260e1fb8 100644 (file)
@@ -8,8 +8,8 @@ CONFIG_NAME = linux-dri-x86-64
 ARCH_FLAGS = -m64
 
 ASM_FLAGS = -DUSE_X86_64_ASM
-ASM_SOURCES = $(X86-64_SOURCES)
-ASM_API = $(X86-64_API)
+MESA_ASM_SOURCES = $(X86-64_SOURCES)
+GLAPI_ASM_SOURCES = $(X86-64_API)
 
 LIB_DIR = lib64
 
index ea4bdf1864c9bf944c55193fb44bf5d433c06600..fbf9b9b268770c6ac90c2ae7a8edfca97c3a07bc 100644 (file)
@@ -33,7 +33,7 @@ CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
 CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
 
 
-ASM_SOURCES = 
+MESA_ASM_SOURCES = 
 
 # Library/program dependencies
 EXTRA_LIB_PATH=$(shell pkg-config --libs-only-L x11)
index 978a45af70b8dcd0f492b9d5eb4cace6a2c5483f..d90a1dab3d4a424c7c6cfa87f64a5051f004b6c0 100644 (file)
@@ -16,7 +16,7 @@ GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
 GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm
 APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
 
-ASM_SOURCES = $(X86_SOURCES)
-ASM_API = $(X86_API)
+MESA_ASM_SOURCES = $(X86_SOURCES)
+GLAPI_ASM_SOURCES = $(X86_API)
 
 
index 0c957568c22bba02297c76c37f12629fad7ff2d7..384db3bfe4854e646c4e57d61de303f86ee5959d 100644 (file)
@@ -23,5 +23,5 @@ GL_LIB_DEPS =
 GLUT_LIB_DEPS =
 APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm -lpthread -lcxa -lunwind
 
-ASM_SOURCES = $(X86_SOURCES)
-ASM_API = $(X86_API)
+MESA_ASM_SOURCES = $(X86_SOURCES)
+GLAPI_ASM_SOURCES = $(X86_API)
index bd33345ed70d0567580918bbb19c15a4ade1e320..0c4805ea87cc7e500678e870bc95c6b3c61b14ce 100644 (file)
@@ -34,7 +34,7 @@ CFLAGS   = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
 CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
 
 
-ASM_SOURCES = 
+MESA_ASM_SOURCES = 
 
 # Library/program dependencies
 EXTRA_LIB_PATH=-L/usr/X11R6/lib
index d49b97222829feee0718750025607073e05b87fe..3145e1277575fa8d5494a98cbf9a64ed348fd08b 100644 (file)
@@ -33,7 +33,7 @@ CFLAGS   = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
 CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
 
 
-ASM_SOURCES = 
+MESA_ASM_SOURCES = 
 
 # Library/program dependencies
 DRI_LIB_DEPS = -lm -lpthread -lexpat -ldl -L$(TOP)/$(LIB_DIR) $(PCIACCESS_LIB)
index 13cab376587861618af5963aa22f66353d85a84e..5f5aa09c82640f4e4dc0eaa22d61e1c41b019a49 100644 (file)
@@ -9,5 +9,5 @@ CONFIG_NAME = linux-solo-x86
 PIC_FLAGS = 
 
 ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
-ASM_SOURCES = $(X86_SOURCES)
-ASM_API = $(X86_API)
+MESA_ASM_SOURCES = $(X86_SOURCES)
+GLAPI_ASM_SOURCES = $(X86_API)
index 9925afc19b6a529d56cc1b2ea9238ea9a480c83d..346d438c283e4b93ac26769998440e45a6c169ff 100644 (file)
@@ -5,5 +5,5 @@ include $(TOP)/configs/linux
 CONFIG_NAME = linux-sparc
 
 #ASM_FLAGS = -DUSE_SPARC_ASM
-#ASM_SOURCES = $(SPARC_SOURCES)
-#ASM_API = $(SPARC_API)
+#MESA_ASM_SOURCES = $(SPARC_SOURCES)
+#GLAPI_ASM_SOURCES = $(SPARC_API)
index 18fa06101deaf8801304130a32cdf13f27f07c6f..a4cf4e8d624d316b30a3a5146481dc0a102fd770 100644 (file)
@@ -5,5 +5,5 @@ include $(TOP)/configs/linux
 CONFIG_NAME = linux-x86
 
 ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
-ASM_SOURCES = $(X86_SOURCES)
-ASM_API = $(X86_API)
+MESA_ASM_SOURCES = $(X86_SOURCES)
+GLAPI_ASM_SOURCES = $(X86_API)
index 67c03918362daf18fda5edbaf0095f12f12707f0..c2441e09d07c3481246d7c3cd0ae5dd829b79e3b 100644 (file)
@@ -6,8 +6,8 @@ CONFIG_NAME = linux-x86-64
 
 ARCH_FLAGS = -m64
 
-ASM_SOURCES = $(X86-64_SOURCES)
-ASM_API = $(X86-64_API)
+MESA_ASM_SOURCES = $(X86-64_SOURCES)
+GLAPI_ASM_SOURCES = $(X86-64_API)
 ASM_FLAGS = -DUSE_X86_64_ASM
 
 LIB_DIR = lib64
index f2f8aeea60ee854312c226367aa89a0973e452a8..b963fbdc66b06310493f9a9c86c10fd3ae943d74 100644 (file)
@@ -15,8 +15,8 @@ CXXFLAGS = -Wall -O3 -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199
 GLUT_CFLAGS = -fexceptions
 
 
-ASM_SOURCES = $(X86_SOURCES)
-ASM_API = $(X86_API)
+MESA_ASM_SOURCES = $(X86_SOURCES)
+GLAPI_ASM_SOURCES = $(X86_API)
 
 # Library/program dependencies
 GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -L/usr/local/glide/lib -lglide3x -lm -lpthread
index 77b293c545240a0f51039d32ea0766542c876ef3..3fa13d0496f71c78b76d38f08b90e115a62710be 100644 (file)
@@ -16,8 +16,8 @@ ARCH_FLAGS ?=
 
 DEFINES = -D_REENTRANT -DUSE_XSHM
 
-ASM_SOURCES = $(SPARC_SOURCES)
-ASM_API = $(SPARC_API)
+MESA_ASM_SOURCES = $(SPARC_SOURCES)
+GLAPI_ASM_SOURCES = $(SPARC_API)
 ASM_FLAGS = -DUSE_SPARC_ASM
 
 CFLAGS   = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
index 8248b097fde398c7d4dedf05b1ffe29d20dbc90a..3e49266163b5000eb6c6de4c2ebe81706a9b0e46 100644 (file)
@@ -3,15 +3,10 @@ include $(TOP)/configs/current
 
 LIBNAME = cso_cache
 
-DRIVER_SOURCES = \
+C_SOURCES = \
        cso_cache.c \
        cso_hash.c
 
-C_SOURCES = \
-       $(DRIVER_SOURCES)
-
-ASM_SOURCES = 
-
 include ../../Makefile.template
 
 symlinks:
index c8000cbe9cb2638075ff29422010e78b1f02d52e..1ee9eca0ca5563f2b90215f38af29f74510c2fab 100644 (file)
@@ -3,7 +3,7 @@ include $(TOP)/configs/current
 
 LIBNAME = draw
 
-DRIVER_SOURCES = \
+C_SOURCES = \
        draw_aaline.c \
        draw_clip.c \
        draw_vs_exec.c \
@@ -29,11 +29,6 @@ DRIVER_SOURCES = \
        draw_vf_sse.c \
        draw_wide_prims.c
 
-C_SOURCES = \
-       $(DRIVER_SOURCES)
-
-ASM_SOURCES = 
-
 include ../../Makefile.template
 
 symlinks:
index 588629e8701514892a161542eeafd380aa0129f3..a9fa518c6749992e50dd522b0f7078613b1be0b7 100644 (file)
@@ -1,10 +1,9 @@
-
 TOP = ../../../..
 include $(TOP)/configs/current
 
 LIBNAME = pipebuffer
 
-DRIVER_SOURCES = \
+C_SOURCES = \
        pb_buffer_fenced.c \
        pb_buffer_malloc.c \
        pb_bufmgr_fenced.c \
@@ -12,11 +11,6 @@ DRIVER_SOURCES = \
        pb_bufmgr_pool.c \
        pb_winsys.c
 
-C_SOURCES = \
-       $(DRIVER_SOURCES)
-
-ASM_SOURCES = 
-
 include ../../Makefile.template
 
 symlinks:
index edfae2a204f2576c6bbbcdc7204a150212ca4822..bc339d2aa6ee19e6aecd79696c216d3623f7a707 100644 (file)
@@ -1,18 +1,12 @@
-
 TOP = ../../../..
 include $(TOP)/configs/current
 
 LIBNAME = rtasm
 
-DRIVER_SOURCES = \
+C_SOURCES = \
        rtasm_execmem.c \
        rtasm_x86sse.c
 
-C_SOURCES = \
-       $(DRIVER_SOURCES)
-
-ASM_SOURCES = 
-
 include ../../Makefile.template
 
 symlinks:
index 8bb62b2a0a5cb0e9503c3dc91639699da275d902..71f64b747c270ea8c137b1321c45c997466b3309 100644 (file)
@@ -1,10 +1,9 @@
-
 TOP = ../../../..
 include $(TOP)/configs/current
 
 LIBNAME = tgsi
 
-DRIVER_SOURCES = \
+C_SOURCES = \
        exec/tgsi_exec.c \
        exec/tgsi_sse2.c \
        util/tgsi_build.c \
@@ -13,11 +12,6 @@ DRIVER_SOURCES = \
        util/tgsi_transform.c \
        util/tgsi_util.c
 
-C_SOURCES = \
-       $(DRIVER_SOURCES)
-
-ASM_SOURCES = 
-
 include ../../Makefile.template
 
 symlinks:
index 7cc2aa44f96c10d6e708efc48136867ef2eae464..906a46d6b4ed4a8829bb4d61b684745a4adf3532 100644 (file)
@@ -1,20 +1,14 @@
-
 TOP = ../../../..
 include $(TOP)/configs/current
 
 LIBNAME = util
 
-DRIVER_SOURCES = \
+C_SOURCES = \
        p_debug.c \
        p_tile.c \
        p_util.c \
        u_mm.c
 
-C_SOURCES = \
-       $(DRIVER_SOURCES)
-
-ASM_SOURCES = 
-
 include ../../Makefile.template
 
 symlinks:
index 14389bd0551f44e86e4d36f3bf95d9dc49725741..f08b8df07a16ff65a244d1d1671207363eb00c3c 100644 (file)
@@ -1,20 +1,13 @@
-
 TOP = ../../../..
 include $(TOP)/configs/current
 
 LIBNAME = failover
 
-DRIVER_SOURCES = \
+C_SOURCES = \
        fo_state.c \
        fo_state_emit.c \
        fo_context.c 
 
-C_SOURCES = \
-       $(COMMON_SOURCES) \
-       $(DRIVER_SOURCES)
-
-ASM_SOURCES = 
-
 include ../../Makefile.template
 
 symlinks:
index ee22ba86f9b0ad37129ea07569d9533a195bf804..2a75f5d57ce7dfe18c7969f164af276b1030459d 100644 (file)
@@ -1,10 +1,9 @@
-
 TOP = ../../../..
 include $(TOP)/configs/current
 
 LIBNAME = i915simple
 
-DRIVER_SOURCES = \
+C_SOURCES = \
        i915_blit.c \
        i915_clear.c \
        i915_flush.c \
@@ -26,12 +25,6 @@ DRIVER_SOURCES = \
        i915_fpc_translate.c \
        i915_surface.c 
 
-C_SOURCES = \
-       $(COMMON_SOURCES) \
-       $(DRIVER_SOURCES)
-
-ASM_SOURCES = 
-
 include ../../Makefile.template
 
 symlinks:
index 1dec1f97495bb5c5e260ade8f50ac6fb9491edbe..cc8580836cec86199f3b1d1f7aa424be6237cf47 100644 (file)
@@ -1,14 +1,13 @@
-
 TOP = ../../../..
 include $(TOP)/configs/current
 
 LIBNAME = i965simple
 
-DRIVER_SOURCES = \
-        brw_blit.c \
-        brw_flush.c \
-        brw_strings.c \
-        brw_surface.c \
+C_SOURCES = \
+       brw_blit.c \
+       brw_flush.c \
+       brw_strings.c \
+       brw_surface.c \
        brw_cc.c \
        brw_clip.c \
        brw_clip_line.c \
@@ -31,8 +30,8 @@ DRIVER_SOURCES = \
        brw_sf.c \
        brw_sf_emit.c \
        brw_sf_state.c \
-        brw_shader_info.c \
-        brw_state.c \
+       brw_shader_info.c \
+       brw_state.c \
        brw_state_batch.c \
        brw_state_cache.c \
        brw_state_pool.c \
@@ -51,16 +50,6 @@ DRIVER_SOURCES = \
        brw_wm_state.c \
        brw_wm_surface_state.c
 
-C_SOURCES = \
-       $(COMMON_SOURCES) \
-       $(COMMON_BM_SOURCES) \
-       $(MINIGLX_SOURCES) \
-       $(DRIVER_SOURCES)
-
-ASM_SOURCES =
-
-DRIVER_DEFINES = -I.
-
 include ../../Makefile.template
 
 symlinks:
index 5479daf8ea28d568fa71d678ec34415eb7f956d3..539ffb77f55ec5ef18c71dbf48b7414774668435 100644 (file)
@@ -1,10 +1,9 @@
-
 TOP = ../../../..
 include $(TOP)/configs/current
 
 LIBNAME = softpipe
 
-DRIVER_SOURCES = \
+C_SOURCES = \
        sp_fs_exec.c \
        sp_fs_sse.c \
        sp_fs_llvm.c \
@@ -41,12 +40,6 @@ DRIVER_SOURCES = \
        sp_tile_cache.c \
        sp_surface.c 
 
-C_SOURCES = \
-       $(COMMON_SOURCES) \
-       $(DRIVER_SOURCES)
-
-ASM_SOURCES = 
-
 include ../../Makefile.template
 
 symlinks:
index 65a93bd53e37560cce2c69116b84f8076891dcab..3bc1fdd4d40c1179c4037aed3e0211899503043a 100644 (file)
@@ -25,8 +25,9 @@ WINOBJ=
 WINLIB=
 INCLUDES = $(SHARED_INCLUDES) $(EXPAT_INCLUDES)
 
-OBJECTS = $(C_SOURCES:.c=.o) \
-         $(ASM_SOURCES:.S=.o) 
+OBJECTS = \
+       $(C_SOURCES:.c=.o) \
+       $(ASM_SOURCES:.S=.o) 
 
 else
 # miniglx
index 5f74fcff060e0821ff575497acf24f1015bdcc5d..b404727f08b7cb1b2cbed19ac435afe6cacc0488 100644 (file)
@@ -35,7 +35,7 @@ SOURCES = \
 
 include $(TOP)/src/mesa/sources
 
-MESA_ASM_API = $(addprefix $(TOP)/src/mesa/, $(ASM_API))
+MESA_GLAPI_ASM_SOURCES = $(addprefix $(TOP)/src/mesa/, $(GLAPI_ASM_SOURCES))
 MESA_GLAPI_SOURCES = $(addprefix $(TOP)/src/mesa/, $(GLAPI_SOURCES))
 MESA_GLAPI_OBJECTS = $(addprefix $(TOP)/src/mesa/, $(GLAPI_OBJECTS))
 
@@ -70,11 +70,11 @@ $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME):  $(OBJECTS) Makefile
                -install $(TOP)/$(LIB_DIR) $(GL_LIB_DEPS) $(OBJECTS)
 
 
-depend: $(SOURCES) $(MESA_GLAPI_SOURCES) $(MESA_ASM_API) Makefile
+depend: $(SOURCES) $(MESA_GLAPI_SOURCES) $(MESA_GLAPI_ASM_SOURCES) Makefile
        rm -f depend
        touch depend
        $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) \
-               $(MESA_GLAPI_SOURCES) $(MESA_ASM_API
+               $(MESA_GLAPI_SOURCES) $(MESA_GLAPI_ASM_SOURCES
 
 
 # Emacs tags
index 0d185fd5f3f7e493c38d1f463dcf54cb09effb13..9e56694893ed0b83d36cb17a9a026051f8a48ae5 100644 (file)
@@ -320,7 +320,7 @@ FBDEV_DRIVER_SOURCES =                      \
 ALL_SOURCES = \
        $(GLAPI_SOURCES)        \
        $(SOLO_SOURCES)         \
-       $(ASM_SOURCES)          \
+       $(MESA_ASM_SOURCES)             \
        $(COMMON_DRIVER_SOURCES)\
        $(X11_DRIVER_SOURCES)   \
        $(FBDEV_DRIVER_SOURCES) \
@@ -353,11 +353,11 @@ CORE_SOURCES = \
 
 SOLO_OBJECTS = \
        $(SOLO_SOURCES:.c=.o) \
-       $(ASM_SOURCES:.S=.o)
+       $(MESA_ASM_SOURCES:.S=.o)
 
 GLAPI_OBJECTS = \
        $(GLAPI_SOURCES:.c=.o) \
-       $(ASM_API:.S=.o)
+       $(GLAPI_ASM_SOURCES:.S=.o)
 
 CORE_OBJECTS = $(SOLO_OBJECTS) $(GLAPI_OBJECTS)