radeon/r200/r300: merge span code into single shared file
[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 LIBNAME = r300_dri.so
7
8 MINIGLX_SOURCES = server/radeon_dri.c
9
10 ifeq ($(USING_EGL), 1)
11 EGL_SOURCES = server/radeon_egl.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 DRIVER_SOURCES = \
24 radeon_bo_legacy.c \
25 radeon_cs_legacy.c \
26 radeon_screen.c \
27 common_lock.c \
28 common_misc.c \
29 radeon_context.c \
30 radeon_ioctl.c \
31 radeon_span.c \
32 radeon_state.c \
33 r300_context.c \
34 r300_ioctl.c \
35 r300_cmdbuf.c \
36 r300_state.c \
37 r300_render.c \
38 r300_tex.c \
39 r300_texstate.c \
40 radeon_program.c \
41 radeon_program_alu.c \
42 radeon_program_pair.c \
43 radeon_nqssadce.c \
44 r300_vertprog.c \
45 r300_fragprog.c \
46 r300_fragprog_swizzle.c \
47 r300_fragprog_emit.c \
48 r500_fragprog.c \
49 r500_fragprog_emit.c \
50 r300_shader.c \
51 r300_emit.c \
52 r300_swtcl.c \
53 radeon_mipmap_tree.c \
54 $(EGL_SOURCES)
55
56 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
57
58 DRIVER_DEFINES = -DCOMPILE_R300 -DR200_MERGED=0 \
59 -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R300 \
60 # -DRADEON_BO_TRACK \
61 -Wall
62
63 SYMLINKS = \
64 server/radeon_dri.c \
65 server/radeon_dri.h \
66 server/radeon.h \
67 server/radeon_macros.h \
68 server/radeon_reg.h \
69 server/radeon_egl.c
70
71 COMMON_SYMLINKS = \
72 radeon_chipset.h \
73 radeon_screen.c \
74 radeon_screen.h \
75 radeon_span.h \
76 radeon_span.c \
77 radeon_buffer.h \
78 radeon_bo_legacy.c \
79 radeon_cs_legacy.c \
80 radeon_bo_legacy.h \
81 radeon_cs_legacy.h \
82 common_context.h \
83 common_lock.c \
84 common_lock.h \
85 common_misc.c \
86 common_misc.h \
87 common_cmdbuf.h \
88 radeon_mipmap_tree.c \
89 radeon_mipmap_tree.h
90
91 DRI_LIB_DEPS += -ldrm_radeon
92
93 ##### TARGETS #####
94
95 include ../Makefile.template
96
97 server:
98 mkdir -p server
99
100 $(SYMLINKS): server
101 @[ -e $@ ] || ln -sf ../../radeon/$@ server/
102
103 $(COMMON_SYMLINKS):
104 @[ -e $@ ] || ln -sf ../radeon/$@ ./
105
106 symlinks: $(SYMLINKS) $(COMMON_SYMLINKS)