R600: initial copy of r300 code
[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_ioctl.c \
41 r600_cmdbuf.c \
42 r600_state.c \
43 r600_render.c \
44 r600_tex.c \
45 r600_texstate.c \
46 radeon_program.c \
47 radeon_program_alu.c \
48 radeon_program_pair.c \
49 radeon_nqssadce.c \
50 r600_vertprog.c \
51 r600_fragprog.c \
52 r600_fragprog_swizzle.c \
53 r600_fragprog_emit.c \
54 r700_fragprog.c \
55 r700_fragprog_emit.c \
56 r600_shader.c \
57 r600_emit.c \
58 r600_swtcl.c \
59 $(RADEON_COMMON_SOURCES) \
60 $(EGL_SOURCES)
61
62 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
63
64 DRIVER_DEFINES = -DCOMPILE_R600 -DR200_MERGED=0 \
65 -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R600 \
66 # -DRADEON_BO_TRACK \
67 -Wall
68
69 SYMLINKS = \
70 server/radeon_dri.c \
71 server/radeon_dri.h \
72 server/radeon.h \
73 server/radeon_macros.h \
74 server/radeon_reg.h \
75 server/radeon_egl.c
76
77 COMMON_SYMLINKS = \
78 radeon_chipset.h \
79 radeon_screen.c \
80 radeon_screen.h \
81 radeon_span.h \
82 radeon_span.c \
83 radeon_bo_legacy.c \
84 radeon_cs_legacy.c \
85 radeon_bo_legacy.h \
86 radeon_cs_legacy.h \
87 radeon_bocs_wrapper.h \
88 radeon_lock.c \
89 radeon_lock.h \
90 radeon_common.c \
91 radeon_common.h \
92 radeon_common_context.c \
93 radeon_common_context.h \
94 radeon_cmdbuf.h \
95 radeon_dma.c \
96 radeon_dma.h \
97 radeon_mipmap_tree.c \
98 radeon_mipmap_tree.h \
99 radeon_texture.c \
100 radeon_texture.h \
101 radeon_fbo.c
102
103 DRI_LIB_DEPS += $(RADEON_LDFLAGS)
104
105 ##### TARGETS #####
106
107 include ../Makefile.template
108
109 server:
110 mkdir -p server
111
112 $(SYMLINKS): server
113 @[ -e $@ ] || ln -sf ../../radeon/$@ server/
114
115 $(COMMON_SYMLINKS):
116 @[ -e $@ ] || ln -sf ../radeon/$@ ./
117
118 symlinks: $(SYMLINKS) $(COMMON_SYMLINKS)