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