Merge branch 'mesa_7_7_branch'
[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 CFLAGS += $(RADEON_CFLAGS)
7
8 LIBNAME = r300_dri.so
9
10 MINIGLX_SOURCES = server/radeon_dri.c
11
12 ifeq ($(RADEON_LDFLAGS),)
13 CS_SOURCES = radeon_cs_space_drm.c radeon_bo.c radeon_cs.c
14 endif
15
16 COMMON_SOURCES = \
17 ../../common/driverfuncs.c \
18 ../common/mm.c \
19 ../common/utils.c \
20 ../common/texmem.c \
21 ../common/vblank.c \
22 ../common/xmlconfig.c \
23 ../common/dri_util.c
24
25 RADEON_COMMON_SOURCES = \
26 radeon_bo_legacy.c \
27 radeon_buffer_objects.c \
28 radeon_common_context.c \
29 radeon_common.c \
30 radeon_cs_legacy.c \
31 radeon_dma.c \
32 radeon_debug.c \
33 radeon_fbo.c \
34 radeon_lock.c \
35 radeon_mipmap_tree.c \
36 radeon_span.c \
37 radeon_queryobj.c \
38 radeon_texture.c \
39 radeon_tex_copy.c
40
41 DRIVER_SOURCES = \
42 radeon_screen.c \
43 r300_blit.c \
44 r300_context.c \
45 r300_draw.c \
46 r300_cmdbuf.c \
47 r300_state.c \
48 r300_render.c \
49 r300_tex.c \
50 r300_texstate.c \
51 r300_vertprog.c \
52 r300_fragprog_common.c \
53 r300_shader.c \
54 radeon_mesa_to_rc.c \
55 r300_emit.c \
56 r300_swtcl.c \
57 $(RADEON_COMMON_SOURCES) \
58 $(EGL_SOURCES) \
59 $(CS_SOURCES)
60
61 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
62
63 DRIVER_DEFINES = -DRADEON_R300
64 # -DRADEON_BO_TRACK \
65
66 DRI_LIB_DEPS += $(RADEON_LDFLAGS)
67
68 SUBDIRS = compiler
69
70 EXTRA_MODULES = compiler/libr300compiler.a
71
72
73 ##### TARGETS #####
74
75 include ../Makefile.template
76