Merge remote branch 'origin/mesa_7_6_branch'
[mesa.git] / src / mesa / drivers / dri / r600 / Makefile
1 # src/mesa/drivers/dri/r300/Makefile
2
3 TOP = ../../../../..
4 include $(TOP)/configs/current
5
6 CFLAGS += $(RADEON_CFLAGS)
7
8 LIBNAME = r600_dri.so
9
10 MINIGLX_SOURCES = server/radeon_dri.c
11
12 ifeq ($(USING_EGL), 1)
13 EGL_SOURCES = server/radeon_egl.c
14 endif
15
16 ifeq ($(RADEON_LDFLAGS),)
17 CS_SOURCES = radeon_cs_space_drm.c
18 endif
19
20 COMMON_SOURCES = \
21 ../../common/driverfuncs.c \
22 ../common/mm.c \
23 ../common/utils.c \
24 ../common/texmem.c \
25 ../common/vblank.c \
26 ../common/xmlconfig.c \
27 ../common/dri_util.c
28
29 RADEON_COMMON_SOURCES = \
30 radeon_bo_legacy.c \
31 radeon_common_context.c \
32 radeon_buffer_objects.c \
33 radeon_common.c \
34 radeon_cs_legacy.c \
35 radeon_dma.c \
36 radeon_debug.c \
37 radeon_fbo.c \
38 radeon_lock.c \
39 radeon_mipmap_tree.c \
40 radeon_span.c \
41 radeon_texture.c \
42 radeon_queryobj.c
43
44 DRIVER_SOURCES = \
45 radeon_screen.c \
46 r600_context.c \
47 r600_cmdbuf.c \
48 r600_emit.c \
49 r700_assembler.c \
50 r700_fragprog.c \
51 r700_vertprog.c \
52 r700_shader.c \
53 r700_shaderinst.c \
54 r700_ioctl.c \
55 r700_oglprog.c \
56 r700_chip.c \
57 r700_state.c \
58 r700_clear.c \
59 r700_render.c \
60 r600_tex.c \
61 r600_texstate.c \
62 r700_debug.c \
63 $(RADEON_COMMON_SOURCES) \
64 $(EGL_SOURCES) \
65 $(CS_SOURCES)
66
67 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
68
69 DRIVER_DEFINES = -DRADEON_R600 \
70 # -DRADEON_BO_TRACK \
71 -Wall
72
73 DRI_LIB_DEPS += $(RADEON_LDFLAGS)
74
75 ##### TARGETS #####
76
77 include ../Makefile.template
78