radeon: fix scissors harder.
[mesa.git] / src / mesa / drivers / dri / radeon / Makefile
index 2ef3640e1d0cacb64991c29ab805ca9afa3f5e9c..8fe9d98a0b2baffc9d58c5db40c5780196cd8bf2 100644 (file)
@@ -4,10 +4,29 @@
 TOP = ../../../../..
 include $(TOP)/configs/current
 
+CFLAGS += $(RADEON_CFLAGS)
+
 LIBNAME = radeon_dri.so
 
 MINIGLX_SOURCES = server/radeon_dri.c 
 
+ifeq ($(RADEON_LDFLAGS),)
+CS_SOURCES = radeon_cs_space_drm.c
+endif
+
+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 \
+       radeon_fbo.c \
+       radeon_queryobj.c
+
 DRIVER_SOURCES = \
        radeon_context.c \
        radeon_ioctl.c \
@@ -18,21 +37,19 @@ 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_COMMON_SOURCES)
 
 C_SOURCES = \
        $(COMMON_SOURCES) \
-       $(DRIVER_SOURCES) 
+       $(DRIVER_SOURCES) \
+       $(CS_SOURCES)
 
-DRIVER_DEFINES = -DRADEON_COMMON=0
+DRIVER_DEFINES = -DRADEON_COMMON=0 \
+                                -Wall
 
-DRI_LIB_DEPS += -ldrm_radeon
+DRI_LIB_DEPS += $(RADEON_LDFLAGS)
 
 X86_SOURCES =