radeon: add cpp/pitch to rrb
[mesa.git] / src / mesa / drivers / dri / radeon / Makefile
index 2d00f521a608972fa3ff31a21f4ce62f5ffa3137..f469c6f43a149c64869a5a2d263c164c69c75a8c 100644 (file)
@@ -4,10 +4,23 @@
 TOP = ../../../../..
 include $(TOP)/configs/current
 
+CFLAGS += $(RADEON_CFLAGS)
+
 LIBNAME = radeon_dri.so
 
 MINIGLX_SOURCES = server/radeon_dri.c 
 
+RADEON_COMMON_SOURCES = \
+       radeon_texture.c \
+       radeon_common_context.c \
+       radeon_common.c \
+       radeon_dma.c \
+       radeon_lock.c \
+       radeon_bo_legacy.c \
+       radeon_cs_legacy.c \
+       radeon_mipmap_tree.c \
+       radeon_span.c
+
 DRIVER_SOURCES = \
        radeon_context.c \
        radeon_ioctl.c \
@@ -18,14 +31,9 @@ DRIVER_SOURCES = \
        radeon_texstate.c \
        radeon_tcl.c \
        radeon_swtcl.c \
-       radeon_span.c \
        radeon_maos.c \
        radeon_sanity.c \
-       common_lock.c \
-       common_misc.c \
-       radeon_bo_legacy.c \
-       radeon_cs_legacy.c \
-       radeon_mipmap_tree.c
+       $(RADEON_COMMON_SOURCES)
 
 C_SOURCES = \
        $(COMMON_SOURCES) \
@@ -33,7 +41,7 @@ C_SOURCES = \
 
 DRIVER_DEFINES = -DRADEON_COMMON=0
 
-DRI_LIB_DEPS += -ldrm_radeon
+DRI_LIB_DEPS += $(RADEON_LDFLAGS)
 
 X86_SOURCES =