Merge branch 'i965g-restart'
[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 ($(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 radeon_bo.c radeon_cs.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_buffer_objects.c \
32 radeon_common_context.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_queryobj.c \
42 radeon_texture.c
43
44 DRIVER_SOURCES = \
45 radeon_screen.c \
46 r300_blit.c \
47 r300_context.c \
48 r300_draw.c \
49 r300_cmdbuf.c \
50 r300_state.c \
51 r300_render.c \
52 r300_tex.c \
53 r300_texcopy.c \
54 r300_texstate.c \
55 r300_vertprog.c \
56 r300_fragprog_common.c \
57 r300_shader.c \
58 radeon_mesa_to_rc.c \
59 r300_emit.c \
60 r300_swtcl.c \
61 $(RADEON_COMMON_SOURCES) \
62 $(EGL_SOURCES) \
63 $(CS_SOURCES)
64
65 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
66
67 DRIVER_DEFINES = -DRADEON_R300
68 # -DRADEON_BO_TRACK \
69 -Wall
70
71 DRI_LIB_DEPS += $(RADEON_LDFLAGS)
72
73 SUBDIRS = compiler
74
75 EXTRA_MODULES = compiler/libr300compiler.a
76
77
78 ##### TARGETS #####
79
80 include ../Makefile.template
81