Merge branch 'master' into r300-compiler
[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
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_context.c \
47 r300_draw.c \
48 r300_ioctl.c \
49 r300_cmdbuf.c \
50 r300_state.c \
51 r300_render.c \
52 r300_tex.c \
53 r300_texstate.c \
54 r300_vertprog.c \
55 r300_fragprog_common.c \
56 r300_shader.c \
57 radeon_mesa_to_rc.c \
58 r300_emit.c \
59 r300_swtcl.c \
60 $(RADEON_COMMON_SOURCES) \
61 $(EGL_SOURCES) \
62 $(CS_SOURCES)
63
64 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
65
66 DRIVER_DEFINES = -DRADEON_R300
67 # -DRADEON_BO_TRACK \
68 -Wall
69
70 DRI_LIB_DEPS += $(RADEON_LDFLAGS)
71
72 PIPE_DRIVERS = compiler/libr300compiler.a
73
74 ##### TARGETS #####
75
76 include ../Makefile.template
77
78 symlinks:
79
80 # Mark the archive phony so that we always check for recompilation
81 .PHONY : compiler/libr300compiler.a
82
83 compiler/libr300compiler.a:
84 cd compiler && $(MAKE)