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