targets: Clean up xorg make files a bit
authorJakob Bornecrantz <wallbraker@gmail.com>
Tue, 13 Jul 2010 14:44:13 +0000 (07:44 -0700)
committerJakob Bornecrantz <wallbraker@gmail.com>
Tue, 13 Jul 2010 14:49:00 +0000 (07:49 -0700)
src/gallium/targets/Makefile.xorg
src/gallium/targets/xorg-i915/Makefile
src/gallium/targets/xorg-i965/Makefile
src/gallium/targets/xorg-nouveau/Makefile
src/gallium/targets/xorg-radeon/Makefile
src/gallium/targets/xorg-vmwgfx/Makefile

index 4237f944e0d707b502648ddb8da10cc6a3ad7fbf..cfbc5b47c055f44ad9266377def47af60efe343a 100644 (file)
@@ -9,7 +9,8 @@
 # Optional defines:
 #   DRIVER_INCLUDES are appended to the list of includes directories.
 #   DRIVER_DEFINES is not used for makedepend, but for compilation.
-#   DRIVER_LINKS are flags given to the linker
+#   DRIVER_PIPES are pipe drivers and modules that the driver depends on.
+#   DRIVER_LINKS are flags given to the linker.
 
 ### Basic defines ###
 
@@ -32,8 +33,8 @@ LIBNAME_STAGING = $(TOP)/$(LIB_DIR)/gallium/$(TARGET)
 
 default: depend $(TOP)/$(LIB_DIR)/gallium $(LIBNAME) $(LIBNAME_STAGING)
 
-$(LIBNAME): $(OBJECTS) Makefile $(LIBS)
-       $(MKLIB) -noprefix -o $@ $(OBJECTS) $(DRIVER_LINKS)
+$(LIBNAME): $(OBJECTS) Makefile ../Makefile.xorg $(LIBS) $(DRIVER_PIPES)
+       $(MKLIB) -noprefix -o $@ $(OBJECTS) $(DRIVER_PIPES) $(GALLIUM_AUXILIARIES) $(DRIVER_LINKS)
 
 depend: $(C_SOURCES) $(CPP_SOURCES) $(ASM_SOURCES) $(SYMLINKS) $(GENERATED_SOURCES)
        rm -f depend
index 45b0622ca9ad51f6076ae2895160fe66beb3ca1b..865240404ca21bda00d873be7bbe1073ee0f539f 100644 (file)
@@ -10,15 +10,15 @@ C_SOURCES = \
 DRIVER_DEFINES = \
        -DHAVE_CONFIG_H -DGALLIUM_RBUG -DGALLIUM_TRACE -DGALLIUM_GALAHAD
 
-DRIVER_LINKS = \
+DRIVER_PIPES = \
        $(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a \
        $(TOP)/src/gallium/winsys/i915/drm/libi915drm.a \
        $(TOP)/src/gallium/drivers/i915/libi915.a \
        $(TOP)/src/gallium/drivers/galahad/libgalahad.a \
        $(TOP)/src/gallium/drivers/trace/libtrace.a \
-       $(TOP)/src/gallium/drivers/rbug/librbug.a \
-       $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
-       $(GALLIUM_AUXILIARIES) \
+       $(TOP)/src/gallium/drivers/rbug/librbug.a
+
+DRIVER_LINKS = \
        $(shell pkg-config --libs libdrm libdrm_intel)
 
 include ../Makefile.xorg
index 9bb8252be20103da84e5044e172a4053a9ba66cb..494dce41c8ad3c3583fc23dbf4a73bfe0ee04ca8 100644 (file)
@@ -11,15 +11,16 @@ DRIVER_DEFINES = \
        -DHAVE_CONFIG_H -DGALLIUM_SOFTPIPE \
        -DGALLIUM_RBUG -DGALLIUM_TRACE
 
-DRIVER_LINKS = \
+DRIVER_PIPES = \
        $(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a \
        $(TOP)/src/gallium/winsys/i965/drm/libi965drm.a \
        $(TOP)/src/gallium/drivers/i965/libi965.a \
        $(TOP)/src/gallium/drivers/trace/libtrace.a \
        $(TOP)/src/gallium/drivers/rbug/librbug.a \
        $(TOP)/src/gallium/winsys/sw/wrapper/libwsw.a \
-       $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
-       $(GALLIUM_AUXILIARIES) \
+       $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a
+
+DRIVER_LINKS = \
        $(shell pkg-config --libs libdrm libdrm_intel)
 
 include ../Makefile.xorg
index 93f53e63bfd8e5fc01c8fdb9727de44d5fde2a18..2fcd9ffb7d65cb922862ceb6e1fc9bca6843cb68 100644 (file)
@@ -10,15 +10,16 @@ C_SOURCES = \
 DRIVER_DEFINES = \
        -DHAVE_CONFIG_H -DGALLIUM_RBUG -DGALLIUM_TRACE
 
-DRIVER_LINKS = \
+DRIVER_PIPES = \
        $(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a \
        $(TOP)/src/gallium/winsys/nouveau/drm/libnouveaudrm.a \
-       $(TOP)/src/gallium/drivers/trace/libtrace.a \
-       $(TOP)/src/gallium/drivers/rbug/librbug.a \
        $(TOP)/src/gallium/drivers/nvfx/libnvfx.a \
        $(TOP)/src/gallium/drivers/nv50/libnv50.a \
        $(TOP)/src/gallium/drivers/nouveau/libnouveau.a \
-       $(GALLIUM_AUXILIARIES) \
+       $(TOP)/src/gallium/drivers/trace/libtrace.a \
+       $(TOP)/src/gallium/drivers/rbug/librbug.a
+
+DRIVER_LINKS = \
        $(shell pkg-config --libs libdrm libdrm_nouveau)
 
 include ../Makefile.xorg
index 7def3a2261a36a7af9f349c148264040f190647d..d3bc35699290d5d97239dc78fa1a6a4aca9a6cdc 100644 (file)
@@ -10,15 +10,15 @@ C_SOURCES = \
 DRIVER_DEFINES = \
        -DHAVE_CONFIG_H -DGALLIUM_RBUG -DGALLIUM_TRACE -DGALLIUM_GALAHAD
 
+DRIVER_PIPES = \
+       $(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a \
+       $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
+       $(TOP)/src/gallium/drivers/r300/libr300.a \
+       $(TOP)/src/gallium/drivers/galahad/libgalahad.a \
+       $(TOP)/src/gallium/drivers/trace/libtrace.a \
+       $(TOP)/src/gallium/drivers/rbug/librbug.a
+
 DRIVER_LINKS = \
-        $(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a \
-        $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \
-        $(TOP)/src/gallium/drivers/r300/libr300.a \
-               $(TOP)/src/gallium/drivers/galahad/libgalahad.a \
-        $(TOP)/src/gallium/drivers/trace/libtrace.a \
-        $(TOP)/src/gallium/drivers/rbug/librbug.a \
-        $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
-        $(GALLIUM_AUXILIARIES) \
        $(shell pkg-config --libs libdrm libdrm_radeon)
 
 include ../Makefile.xorg
index 73a2cea232e49bf7e36c4a124b7a7e654376a321..04a444f5e93b5c0770b1fc9eb287e152d787bf62 100644 (file)
@@ -20,15 +20,14 @@ DRIVER_DEFINES = \
        -DGALLIUM_TRACE \
        -DHAVE_CONFIG_H
 
-
-DRIVER_LINKS = \
+DRIVER_PIPES = \
        $(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a \
        $(TOP)/src/gallium/winsys/svga/drm/libsvgadrm.a \
-       $(TOP)/src/gallium/drivers/trace/libtrace.a \
-       $(TOP)/src/gallium/drivers/rbug/librbug.a \
        $(TOP)/src/gallium/drivers/svga/libsvga.a \
-       $(GALLIUM_AUXILIARIES) \
-       $(shell pkg-config --libs --silence-errors libkms) \
-       $(shell pkg-config --libs libdrm)
+       $(TOP)/src/gallium/drivers/trace/libtrace.a \
+       $(TOP)/src/gallium/drivers/rbug/librbug.a
+
+DRIVER_LINKS = \
+       $(shell pkg-config --libs libdrm libkms)
 
 include ../Makefile.xorg