6db0154784cb36b0e2cac76540f32d75104e0547
[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 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_texture.c \
27 radeon_common_context.c \
28 radeon_common.c \
29 radeon_dma.c \
30 radeon_lock.c \
31 radeon_bo_legacy.c \
32 radeon_cs_legacy.c \
33 radeon_mipmap_tree.c \
34 radeon_span.c \
35 radeon_fbo.c
36
37 DRIVER_SOURCES = \
38 radeon_screen.c \
39 r600_context.c \
40 r600_cmdbuf.c \
41 r600_emit.c \
42 r700_assembler.c \
43 r700_fragprog.c \
44 r700_vertprog.c \
45 r700_shader.c \
46 r700_shaderinst.c \
47 r700_ioctl.c \
48 r700_oglprog.c \
49 r700_chip.c \
50 r700_state.c \
51 r700_clear.c \
52 r700_render.c \
53 r600_tex.c \
54 r600_texstate.c \
55 r700_debug.c \
56 $(RADEON_COMMON_SOURCES) \
57 $(EGL_SOURCES)
58
59 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
60
61 DRIVER_DEFINES = -DCOMPILE_R600 -DR200_MERGED=0 \
62 -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R600 \
63 # -DRADEON_BO_TRACK \
64 -Wall
65
66 SYMLINKS = \
67 server/radeon_dri.c \
68 server/radeon_dri.h \
69 server/radeon.h \
70 server/radeon_macros.h \
71 server/radeon_reg.h \
72 server/radeon_egl.c
73
74 COMMON_SYMLINKS = \
75 radeon_chipset.h \
76 radeon_screen.c \
77 radeon_screen.h \
78 radeon_span.h \
79 radeon_span.c \
80 radeon_bo_legacy.c \
81 radeon_cs_legacy.c \
82 radeon_bo_legacy.h \
83 radeon_cs_legacy.h \
84 radeon_bocs_wrapper.h \
85 radeon_lock.c \
86 radeon_lock.h \
87 radeon_common.c \
88 radeon_common.h \
89 radeon_common_context.c \
90 radeon_common_context.h \
91 radeon_cmdbuf.h \
92 radeon_dma.c \
93 radeon_dma.h \
94 radeon_mipmap_tree.c \
95 radeon_mipmap_tree.h \
96 radeon_texture.c \
97 radeon_texture.h \
98 radeon_fbo.c
99
100 DRI_LIB_DEPS += $(RADEON_LDFLAGS)
101
102 ##### TARGETS #####
103
104 include ../Makefile.template
105
106 server:
107 mkdir -p server
108
109 $(SYMLINKS): server
110 @[ -e $@ ] || ln -sf ../../radeon/$@ server/
111
112 $(COMMON_SYMLINKS):
113 @[ -e $@ ] || ln -sf ../radeon/$@ ./
114
115 symlinks: $(SYMLINKS) $(COMMON_SYMLINKS)