Simplify makefile boilerplate code.

Don't define ASM_SOURCES variable globally -- reserve that variable to be defined
locally by makefiles, together with C_SOURCES and CPP_SOURCES.
This commit is contained in:
José Fonseca
2008-02-19 13:27:13 +09:00
parent f430d95a36
commit 90b2beb661
34 changed files with 60 additions and 125 deletions

View File

@@ -26,8 +26,8 @@ ifeq ($(CPU), x86)
-DUSE_3DNOW_ASM \ -DUSE_3DNOW_ASM \
-DUSE_SSE_ASM -DUSE_SSE_ASM
ASM_SOURCES = $(X86_SOURCES) MESA_ASM_SOURCES = $(X86_SOURCES)
ASM_API = $(X86_API) GLAPI_ASM_SOURCES = $(X86_API)
CC = gcc CC = gcc
CXX = g++ CXX = g++

View File

@@ -51,7 +51,7 @@ OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
# Optional assembly language optimization files for libGL # 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 # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
# order to build the Motif widget too) # order to build the Motif widget too)

View 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) CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) -Wall -ansi -pedantic $(ASM_FLAGS) $(X11_INCLUDES)
ASM_SOURCES = MESA_ASM_SOURCES =
# Library/program dependencies # Library/program dependencies
LIBDRM_CFLAGS = `pkg-config --cflags libdrm` LIBDRM_CFLAGS = `pkg-config --cflags libdrm`

View File

@@ -6,5 +6,5 @@ include $(TOP)/configs/freebsd-dri
CONFIG_NAME = freebsd-dri-x86-64 CONFIG_NAME = freebsd-dri-x86-64
ASM_FLAGS = -DUSE_X86_64_ASM ASM_FLAGS = -DUSE_X86_64_ASM
ASM_SOURCES = $(X86-64_SOURCES) MESA_ASM_SOURCES = $(X86-64_SOURCES)
ASM_API = $(X86-64_API) GLAPI_ASM_SOURCES = $(X86-64_API)

View File

@@ -9,5 +9,5 @@ CONFIG_NAME = freebsd-dri-x86
PIC_FLAGS = PIC_FLAGS =
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
ASM_SOURCES = $(X86_SOURCES) MESA_ASM_SOURCES = $(X86_SOURCES)
ASM_API = $(X86_API) GLAPI_ASM_SOURCES = $(X86_API)

View File

@@ -17,8 +17,8 @@ HAVE_X86 = $(shell uname -m | grep 'i[3-6]86' >/dev/null && echo yes)
ifeq ($(HAVE_X86), yes) ifeq ($(HAVE_X86), yes)
CFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM 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 CXXFLAGS += -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
ASM_SOURCES = $(X86_SOURCES) MESA_ASM_SOURCES = $(X86_SOURCES)
ASM_API = $(X86_API) GLAPI_ASM_SOURCES = $(X86_API)
endif endif
# Directories # Directories

View File

@@ -33,7 +33,7 @@ CFLAGS = -Wall -Wmissing-prototypes -std=c99 -ffast-math \
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
ASM_SOURCES = MESA_ASM_SOURCES =
# Library/program dependencies # Library/program dependencies
EXTRA_LIB_PATH=-L/usr/X11R6/lib EXTRA_LIB_PATH=-L/usr/X11R6/lib

View File

@@ -9,7 +9,7 @@ OPT_FLAGS = -Os -mcpu=603
PIC_FLAGS = -fPIC PIC_FLAGS = -fPIC
ASM_FLAGS = -DUSE_PPC_ASM -DUSE_VMX_ASM 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 # Build only the drivers for cards that exist on PowerPC. At some point MGA
# will be added, but not yet. # will be added, but not yet.

View File

@@ -12,6 +12,6 @@ PIC_FLAGS =
ARCH_FLAGS = -m32 ARCH_FLAGS = -m32
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
ASM_SOURCES = $(X86_SOURCES) MESA_ASM_SOURCES = $(X86_SOURCES)
ASM_API = $(X86_API) GLAPI_ASM_SOURCES = $(X86_API)

View File

@@ -8,8 +8,8 @@ CONFIG_NAME = linux-dri-x86-64
ARCH_FLAGS = -m64 ARCH_FLAGS = -m64
ASM_FLAGS = -DUSE_X86_64_ASM ASM_FLAGS = -DUSE_X86_64_ASM
ASM_SOURCES = $(X86-64_SOURCES) MESA_ASM_SOURCES = $(X86-64_SOURCES)
ASM_API = $(X86-64_API) GLAPI_ASM_SOURCES = $(X86-64_API)
LIB_DIR = lib64 LIB_DIR = lib64

View File

@@ -33,7 +33,7 @@ CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
ASM_SOURCES = MESA_ASM_SOURCES =
# Library/program dependencies # Library/program dependencies
EXTRA_LIB_PATH=$(shell pkg-config --libs-only-L x11) EXTRA_LIB_PATH=$(shell pkg-config --libs-only-L x11)

View 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 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 APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
ASM_SOURCES = $(X86_SOURCES) MESA_ASM_SOURCES = $(X86_SOURCES)
ASM_API = $(X86_API) GLAPI_ASM_SOURCES = $(X86_API)

View File

@@ -23,5 +23,5 @@ GL_LIB_DEPS =
GLUT_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 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) MESA_ASM_SOURCES = $(X86_SOURCES)
ASM_API = $(X86_API) GLAPI_ASM_SOURCES = $(X86_API)

View 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) CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
ASM_SOURCES = MESA_ASM_SOURCES =
# Library/program dependencies # Library/program dependencies
EXTRA_LIB_PATH=-L/usr/X11R6/lib EXTRA_LIB_PATH=-L/usr/X11R6/lib

View 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) CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
ASM_SOURCES = MESA_ASM_SOURCES =
# Library/program dependencies # Library/program dependencies
DRI_LIB_DEPS = -lm -lpthread -lexpat -ldl -L$(TOP)/$(LIB_DIR) $(PCIACCESS_LIB) DRI_LIB_DEPS = -lm -lpthread -lexpat -ldl -L$(TOP)/$(LIB_DIR) $(PCIACCESS_LIB)

View File

@@ -9,5 +9,5 @@ CONFIG_NAME = linux-solo-x86
PIC_FLAGS = PIC_FLAGS =
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
ASM_SOURCES = $(X86_SOURCES) MESA_ASM_SOURCES = $(X86_SOURCES)
ASM_API = $(X86_API) GLAPI_ASM_SOURCES = $(X86_API)

View File

@@ -5,5 +5,5 @@ include $(TOP)/configs/linux
CONFIG_NAME = linux-sparc CONFIG_NAME = linux-sparc
#ASM_FLAGS = -DUSE_SPARC_ASM #ASM_FLAGS = -DUSE_SPARC_ASM
#ASM_SOURCES = $(SPARC_SOURCES) #MESA_ASM_SOURCES = $(SPARC_SOURCES)
#ASM_API = $(SPARC_API) #GLAPI_ASM_SOURCES = $(SPARC_API)

View File

@@ -5,5 +5,5 @@ include $(TOP)/configs/linux
CONFIG_NAME = linux-x86 CONFIG_NAME = linux-x86
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
ASM_SOURCES = $(X86_SOURCES) MESA_ASM_SOURCES = $(X86_SOURCES)
ASM_API = $(X86_API) GLAPI_ASM_SOURCES = $(X86_API)

View File

@@ -6,8 +6,8 @@ CONFIG_NAME = linux-x86-64
ARCH_FLAGS = -m64 ARCH_FLAGS = -m64
ASM_SOURCES = $(X86-64_SOURCES) MESA_ASM_SOURCES = $(X86-64_SOURCES)
ASM_API = $(X86-64_API) GLAPI_ASM_SOURCES = $(X86-64_API)
ASM_FLAGS = -DUSE_X86_64_ASM ASM_FLAGS = -DUSE_X86_64_ASM
LIB_DIR = lib64 LIB_DIR = lib64

View File

@@ -15,8 +15,8 @@ CXXFLAGS = -Wall -O3 -ansi -pedantic -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199
GLUT_CFLAGS = -fexceptions GLUT_CFLAGS = -fexceptions
ASM_SOURCES = $(X86_SOURCES) MESA_ASM_SOURCES = $(X86_SOURCES)
ASM_API = $(X86_API) GLAPI_ASM_SOURCES = $(X86_API)
# Library/program dependencies # Library/program dependencies
GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -L/usr/local/glide/lib -lglide3x -lm -lpthread GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -L/usr/local/glide/lib -lglide3x -lm -lpthread

View File

@@ -16,8 +16,8 @@ ARCH_FLAGS ?=
DEFINES = -D_REENTRANT -DUSE_XSHM DEFINES = -D_REENTRANT -DUSE_XSHM
ASM_SOURCES = $(SPARC_SOURCES) MESA_ASM_SOURCES = $(SPARC_SOURCES)
ASM_API = $(SPARC_API) GLAPI_ASM_SOURCES = $(SPARC_API)
ASM_FLAGS = -DUSE_SPARC_ASM ASM_FLAGS = -DUSE_SPARC_ASM
CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \ CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \

View File

@@ -3,15 +3,10 @@ include $(TOP)/configs/current
LIBNAME = cso_cache LIBNAME = cso_cache
DRIVER_SOURCES = \ C_SOURCES = \
cso_cache.c \ cso_cache.c \
cso_hash.c cso_hash.c
C_SOURCES = \
$(DRIVER_SOURCES)
ASM_SOURCES =
include ../../Makefile.template include ../../Makefile.template
symlinks: symlinks:

View File

@@ -3,7 +3,7 @@ include $(TOP)/configs/current
LIBNAME = draw LIBNAME = draw
DRIVER_SOURCES = \ C_SOURCES = \
draw_aaline.c \ draw_aaline.c \
draw_clip.c \ draw_clip.c \
draw_vs_exec.c \ draw_vs_exec.c \
@@ -29,11 +29,6 @@ DRIVER_SOURCES = \
draw_vf_sse.c \ draw_vf_sse.c \
draw_wide_prims.c draw_wide_prims.c
C_SOURCES = \
$(DRIVER_SOURCES)
ASM_SOURCES =
include ../../Makefile.template include ../../Makefile.template
symlinks: symlinks:

View File

@@ -1,10 +1,9 @@
TOP = ../../../.. TOP = ../../../..
include $(TOP)/configs/current include $(TOP)/configs/current
LIBNAME = pipebuffer LIBNAME = pipebuffer
DRIVER_SOURCES = \ C_SOURCES = \
pb_buffer_fenced.c \ pb_buffer_fenced.c \
pb_buffer_malloc.c \ pb_buffer_malloc.c \
pb_bufmgr_fenced.c \ pb_bufmgr_fenced.c \
@@ -12,11 +11,6 @@ DRIVER_SOURCES = \
pb_bufmgr_pool.c \ pb_bufmgr_pool.c \
pb_winsys.c pb_winsys.c
C_SOURCES = \
$(DRIVER_SOURCES)
ASM_SOURCES =
include ../../Makefile.template include ../../Makefile.template
symlinks: symlinks:

View File

@@ -1,18 +1,12 @@
TOP = ../../../.. TOP = ../../../..
include $(TOP)/configs/current include $(TOP)/configs/current
LIBNAME = rtasm LIBNAME = rtasm
DRIVER_SOURCES = \ C_SOURCES = \
rtasm_execmem.c \ rtasm_execmem.c \
rtasm_x86sse.c rtasm_x86sse.c
C_SOURCES = \
$(DRIVER_SOURCES)
ASM_SOURCES =
include ../../Makefile.template include ../../Makefile.template
symlinks: symlinks:

View File

@@ -1,10 +1,9 @@
TOP = ../../../.. TOP = ../../../..
include $(TOP)/configs/current include $(TOP)/configs/current
LIBNAME = tgsi LIBNAME = tgsi
DRIVER_SOURCES = \ C_SOURCES = \
exec/tgsi_exec.c \ exec/tgsi_exec.c \
exec/tgsi_sse2.c \ exec/tgsi_sse2.c \
util/tgsi_build.c \ util/tgsi_build.c \
@@ -13,11 +12,6 @@ DRIVER_SOURCES = \
util/tgsi_transform.c \ util/tgsi_transform.c \
util/tgsi_util.c util/tgsi_util.c
C_SOURCES = \
$(DRIVER_SOURCES)
ASM_SOURCES =
include ../../Makefile.template include ../../Makefile.template
symlinks: symlinks:

View File

@@ -1,20 +1,14 @@
TOP = ../../../.. TOP = ../../../..
include $(TOP)/configs/current include $(TOP)/configs/current
LIBNAME = util LIBNAME = util
DRIVER_SOURCES = \ C_SOURCES = \
p_debug.c \ p_debug.c \
p_tile.c \ p_tile.c \
p_util.c \ p_util.c \
u_mm.c u_mm.c
C_SOURCES = \
$(DRIVER_SOURCES)
ASM_SOURCES =
include ../../Makefile.template include ../../Makefile.template
symlinks: symlinks:

View File

@@ -1,20 +1,13 @@
TOP = ../../../.. TOP = ../../../..
include $(TOP)/configs/current include $(TOP)/configs/current
LIBNAME = failover LIBNAME = failover
DRIVER_SOURCES = \ C_SOURCES = \
fo_state.c \ fo_state.c \
fo_state_emit.c \ fo_state_emit.c \
fo_context.c fo_context.c
C_SOURCES = \
$(COMMON_SOURCES) \
$(DRIVER_SOURCES)
ASM_SOURCES =
include ../../Makefile.template include ../../Makefile.template
symlinks: symlinks:

View File

@@ -1,10 +1,9 @@
TOP = ../../../.. TOP = ../../../..
include $(TOP)/configs/current include $(TOP)/configs/current
LIBNAME = i915simple LIBNAME = i915simple
DRIVER_SOURCES = \ C_SOURCES = \
i915_blit.c \ i915_blit.c \
i915_clear.c \ i915_clear.c \
i915_flush.c \ i915_flush.c \
@@ -26,12 +25,6 @@ DRIVER_SOURCES = \
i915_fpc_translate.c \ i915_fpc_translate.c \
i915_surface.c i915_surface.c
C_SOURCES = \
$(COMMON_SOURCES) \
$(DRIVER_SOURCES)
ASM_SOURCES =
include ../../Makefile.template include ../../Makefile.template
symlinks: symlinks:

View File

@@ -1,14 +1,13 @@
TOP = ../../../.. TOP = ../../../..
include $(TOP)/configs/current include $(TOP)/configs/current
LIBNAME = i965simple LIBNAME = i965simple
DRIVER_SOURCES = \ C_SOURCES = \
brw_blit.c \ brw_blit.c \
brw_flush.c \ brw_flush.c \
brw_strings.c \ brw_strings.c \
brw_surface.c \ brw_surface.c \
brw_cc.c \ brw_cc.c \
brw_clip.c \ brw_clip.c \
brw_clip_line.c \ brw_clip_line.c \
@@ -31,8 +30,8 @@ DRIVER_SOURCES = \
brw_sf.c \ brw_sf.c \
brw_sf_emit.c \ brw_sf_emit.c \
brw_sf_state.c \ brw_sf_state.c \
brw_shader_info.c \ brw_shader_info.c \
brw_state.c \ brw_state.c \
brw_state_batch.c \ brw_state_batch.c \
brw_state_cache.c \ brw_state_cache.c \
brw_state_pool.c \ brw_state_pool.c \
@@ -51,16 +50,6 @@ DRIVER_SOURCES = \
brw_wm_state.c \ brw_wm_state.c \
brw_wm_surface_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 include ../../Makefile.template
symlinks: symlinks:

View File

@@ -1,10 +1,9 @@
TOP = ../../../.. TOP = ../../../..
include $(TOP)/configs/current include $(TOP)/configs/current
LIBNAME = softpipe LIBNAME = softpipe
DRIVER_SOURCES = \ C_SOURCES = \
sp_fs_exec.c \ sp_fs_exec.c \
sp_fs_sse.c \ sp_fs_sse.c \
sp_fs_llvm.c \ sp_fs_llvm.c \
@@ -41,12 +40,6 @@ DRIVER_SOURCES = \
sp_tile_cache.c \ sp_tile_cache.c \
sp_surface.c sp_surface.c
C_SOURCES = \
$(COMMON_SOURCES) \
$(DRIVER_SOURCES)
ASM_SOURCES =
include ../../Makefile.template include ../../Makefile.template
symlinks: symlinks:

View File

@@ -25,8 +25,9 @@ WINOBJ=
WINLIB= WINLIB=
INCLUDES = $(SHARED_INCLUDES) $(EXPAT_INCLUDES) INCLUDES = $(SHARED_INCLUDES) $(EXPAT_INCLUDES)
OBJECTS = $(C_SOURCES:.c=.o) \ OBJECTS = \
$(ASM_SOURCES:.S=.o) $(C_SOURCES:.c=.o) \
$(ASM_SOURCES:.S=.o)
else else
# miniglx # miniglx

View File

@@ -35,7 +35,7 @@ SOURCES = \
include $(TOP)/src/mesa/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_SOURCES = $(addprefix $(TOP)/src/mesa/, $(GLAPI_SOURCES))
MESA_GLAPI_OBJECTS = $(addprefix $(TOP)/src/mesa/, $(GLAPI_OBJECTS)) 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) -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 rm -f depend
touch depend touch depend
$(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) \ $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(SOURCES) \
$(MESA_GLAPI_SOURCES) $(MESA_ASM_API) $(MESA_GLAPI_SOURCES) $(MESA_GLAPI_ASM_SOURCES)
# Emacs tags # Emacs tags

View File

@@ -320,7 +320,7 @@ FBDEV_DRIVER_SOURCES = \
ALL_SOURCES = \ ALL_SOURCES = \
$(GLAPI_SOURCES) \ $(GLAPI_SOURCES) \
$(SOLO_SOURCES) \ $(SOLO_SOURCES) \
$(ASM_SOURCES) \ $(MESA_ASM_SOURCES) \
$(COMMON_DRIVER_SOURCES)\ $(COMMON_DRIVER_SOURCES)\
$(X11_DRIVER_SOURCES) \ $(X11_DRIVER_SOURCES) \
$(FBDEV_DRIVER_SOURCES) \ $(FBDEV_DRIVER_SOURCES) \
@@ -353,11 +353,11 @@ CORE_SOURCES = \
SOLO_OBJECTS = \ SOLO_OBJECTS = \
$(SOLO_SOURCES:.c=.o) \ $(SOLO_SOURCES:.c=.o) \
$(ASM_SOURCES:.S=.o) $(MESA_ASM_SOURCES:.S=.o)
GLAPI_OBJECTS = \ GLAPI_OBJECTS = \
$(GLAPI_SOURCES:.c=.o) \ $(GLAPI_SOURCES:.c=.o) \
$(ASM_API:.S=.o) $(GLAPI_ASM_SOURCES:.S=.o)
CORE_OBJECTS = $(SOLO_OBJECTS) $(GLAPI_OBJECTS) CORE_OBJECTS = $(SOLO_OBJECTS) $(GLAPI_OBJECTS)