radeon/r200/r300: port to new space checking code in libdrm
[mesa.git] / src / mesa / drivers / dri / r200 / Makefile
1 # src/mesa/drivers/dri/r200/Makefile
2
3 TOP = ../../../../..
4 include $(TOP)/configs/current
5
6 CFLAGS += $(RADEON_CFLAGS)
7
8 LIBNAME = r200_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 ifeq ($(RADEON_LDFLAGS),)
17 CS_SOURCES = radeon_cs_space_drm.c
18 endif
19
20 RADEON_COMMON_SOURCES = \
21 radeon_texture.c \
22 radeon_common_context.c \
23 radeon_common.c \
24 radeon_dma.c \
25 radeon_lock.c \
26 radeon_bo_legacy.c \
27 radeon_cs_legacy.c \
28 radeon_mipmap_tree.c \
29 radeon_span.c \
30 radeon_fbo.c
31
32
33 DRIVER_SOURCES = r200_context.c \
34 r200_ioctl.c \
35 r200_state.c \
36 r200_state_init.c \
37 r200_cmdbuf.c \
38 r200_pixel.c \
39 r200_tex.c \
40 r200_texstate.c \
41 r200_tcl.c \
42 r200_swtcl.c \
43 r200_maos.c \
44 r200_sanity.c \
45 r200_fragshader.c \
46 r200_vertprog.c \
47 radeon_screen.c \
48 $(EGL_SOURCES) \
49 $(RADEON_COMMON_SOURCES)
50 $(CS_SOURCES)
51
52 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
53
54 X86_SOURCES =
55
56 DRIVER_DEFINES = -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R200
57
58 SYMLINKS = \
59 server/radeon_egl.c \
60 server/radeon_dri.c \
61 server/radeon_dri.h \
62 server/radeon.h \
63 server/radeon_macros.h \
64 server/radeon_reg.h
65
66 COMMON_SYMLINKS = \
67 radeon_chipset.h \
68 radeon_screen.c \
69 radeon_screen.h \
70 radeon_bo_legacy.c \
71 radeon_cs_legacy.c \
72 radeon_bo_legacy.h \
73 radeon_cs_legacy.h \
74 radeon_bocs_wrapper.h \
75 radeon_span.h \
76 radeon_span.c \
77 radeon_lock.c \
78 radeon_lock.h \
79 radeon_common.c \
80 radeon_common_context.c \
81 radeon_common_context.h \
82 radeon_common.h \
83 radeon_cmdbuf.h \
84 radeon_mipmap_tree.c \
85 radeon_mipmap_tree.h \
86 radeon_texture.c \
87 radeon_texture.h \
88 radeon_dma.c \
89 radeon_dma.h \
90 radeon_fbo.c \
91 $(CS_SOURCES)
92
93 DRI_LIB_DEPS += $(RADEON_LDFLAGS)
94
95 ##### TARGETS #####
96
97
98 include ../Makefile.template
99
100 #INCLUDES += -I../radeon/server
101
102 server:
103 mkdir -p server
104
105 $(SYMLINKS): server
106 @[ -e $@ ] || ln -sf ../../radeon/$@ server/
107
108
109 $(COMMON_SYMLINKS):
110 @[ -e $@ ] || ln -sf ../radeon/$@ ./
111
112 symlinks: $(SYMLINKS) $(COMMON_SYMLINKS)
113