r300: fix swtcl texrect path properly.
[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_screen.c \
25 radeon_context.c \
26 radeon_ioctl.c \
27 radeon_lock.c \
28 radeon_span.c \
29 radeon_state.c \
30 r300_mem.c \
31 \
32 r300_context.c \
33 r300_ioctl.c \
34 r300_cmdbuf.c \
35 r300_state.c \
36 r300_render.c \
37 r300_texmem.c \
38 r300_tex.c \
39 r300_texstate.c \
40 r300_vertprog.c \
41 r300_fragprog.c \
42 r300_shader.c \
43 r300_emit.c \
44 r300_swtcl.c \
45 $(EGL_SOURCES)
46
47 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
48
49 DRIVER_DEFINES = -DCOMPILE_R300 -DR200_MERGED=0 \
50 -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R300
51
52 SYMLINKS = \
53 server/radeon_dri.c \
54 server/radeon_dri.h \
55 server/radeon.h \
56 server/radeon_macros.h \
57 server/radeon_reg.h \
58 server/radeon_egl.c
59
60 COMMON_SYMLINKS = \
61 radeon_chipset.h \
62 radeon_screen.c \
63 radeon_screen.h \
64 radeon_span.h
65
66 ##### TARGETS #####
67
68 include ../Makefile.template
69
70 server:
71 mkdir -p server
72
73 $(SYMLINKS): server
74 @[ -e $@ ] || ln -sf ../../radeon/$@ server/
75
76 $(COMMON_SYMLINKS):
77 @[ -e $@ ] || ln -sf ../radeon/$@ ./
78
79 symlinks: $(SYMLINKS) $(COMMON_SYMLINKS)