make: Remove duplicate defintion of COMMON_SOURCES in Radeon makefiles
[mesa.git] / src / mesa / drivers / dri / r300 / Makefile
1 # src/mesa/drivers/dri/r300/Makefile
2
3 TOP = ../../../../..
4 include $(TOP)/configs/current
5
6 LIBNAME = r300_dri.so
7
8 include ../Makefile.defines
9
10 ifeq ($(RADEON_LDFLAGS),)
11 CS_SOURCES = radeon_cs_space_drm.c radeon_bo.c radeon_cs.c
12 endif
13
14 RADEON_COMMON_SOURCES = \
15 radeon_bo_legacy.c \
16 radeon_buffer_objects.c \
17 radeon_common_context.c \
18 radeon_common.c \
19 radeon_cs_legacy.c \
20 radeon_dma.c \
21 radeon_debug.c \
22 radeon_fbo.c \
23 radeon_lock.c \
24 radeon_mipmap_tree.c \
25 radeon_pixel_read.c \
26 radeon_queryobj.c \
27 radeon_span.c \
28 radeon_texture.c \
29 radeon_tex_copy.c \
30 radeon_tex_getimage.c \
31 radeon_tile.c
32
33 DRIVER_SOURCES = \
34 radeon_screen.c \
35 r300_blit.c \
36 r300_context.c \
37 r300_draw.c \
38 r300_cmdbuf.c \
39 r300_state.c \
40 r300_render.c \
41 r300_tex.c \
42 r300_texstate.c \
43 r300_vertprog.c \
44 r300_fragprog_common.c \
45 r300_shader.c \
46 radeon_mesa_to_rc.c \
47 r300_emit.c \
48 r300_swtcl.c \
49 $(RADEON_COMMON_SOURCES) \
50 $(EGL_SOURCES) \
51 $(CS_SOURCES)
52
53 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
54
55 DRIVER_DEFINES = -DRADEON_R300
56 # -DRADEON_BO_TRACK \
57
58 INCLUDES += $(RADEON_CFLAGS)
59 DRI_LIB_DEPS += $(RADEON_LDFLAGS)
60
61 SUBDIRS = compiler
62
63 EXTRA_MODULES = compiler/libr300compiler.a
64
65
66 ##### TARGETS #####
67
68 include ../Makefile.targets
69