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