r300: Renamed the R300 memory manager from "radeon" to "r300"; it's R300
[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_maos.c \
44 $(EGL_SOURCES)
45
46 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
47
48 DRIVER_DEFINES = -DCOMPILE_R300 -DR200_MERGED=0 \
49 -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R300
50
51 SYMLINKS = \
52 server/radeon_dri.c \
53 server/radeon_dri.h \
54 server/radeon.h \
55 server/radeon_macros.h \
56 server/radeon_reg.h \
57 server/radeon_egl.c
58
59 COMMON_SYMLINKS = \
60 radeon_chipset.h \
61 radeon_screen.c \
62 radeon_screen.h
63
64 ##### TARGETS #####
65
66 include ../Makefile.template
67
68 server:
69 mkdir -p server
70
71 $(SYMLINKS): server
72 @[ -e $@ ] || ln -sf ../../radeon/$@ server/
73
74 $(COMMON_SYMLINKS):
75 @[ -e $@ ] || ln -sf ../radeon/$@ ./
76
77 symlinks: $(SYMLINKS) $(COMMON_SYMLINKS)