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