d96999f7bbbeb9c3a6ceeab3f8609971c4c76cb0
[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 LIBNAME = r200_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 DRIVER_SOURCES = r200_context.c \
15 r200_ioctl.c \
16 r200_state.c \
17 r200_state_init.c \
18 r200_cmdbuf.c \
19 r200_pixel.c \
20 r200_tex.c \
21 r200_texstate.c \
22 r200_tcl.c \
23 r200_swtcl.c \
24 r200_span.c \
25 r200_maos.c \
26 r200_sanity.c \
27 r200_fragshader.c \
28 r200_vertprog.c \
29 radeon_screen.c \
30 common_lock.c \
31 common_misc.c \
32 radeon_bo_legacy.c \
33 radeon_cs_legacy.c \
34 radeon_mipmap_tree.c \
35 $(EGL_SOURCES)
36
37 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
38
39 X86_SOURCES =
40
41 DRIVER_DEFINES = -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R200
42
43 SYMLINKS = \
44 server/radeon_egl.c \
45 server/radeon_dri.c \
46 server/radeon_dri.h \
47 server/radeon.h \
48 server/radeon_macros.h \
49 server/radeon_reg.h
50
51 COMMON_SYMLINKS = \
52 radeon_chipset.h \
53 radeon_screen.c \
54 radeon_screen.h \
55 radeon_bo_legacy.c \
56 radeon_cs_legacy.c \
57 radeon_bo_legacy.h \
58 radeon_cs_legacy.h \
59 radeon_buffer.h \
60 common_context.h \
61 common_lock.c \
62 common_lock.h \
63 common_misc.h \
64 common_misc.c \
65 common_cmdbuf.h \
66 radeon_mipmap_tree.c \
67 radeon_mipmap_tree.h
68
69 DRI_LIB_DEPS += -ldrm_radeon
70
71 ##### TARGETS #####
72
73
74 include ../Makefile.template
75
76 #INCLUDES += -I../radeon/server
77
78 server:
79 mkdir -p server
80
81 $(SYMLINKS): server
82 @[ -e $@ ] || ln -sf ../../radeon/$@ server/
83
84
85 $(COMMON_SYMLINKS):
86 @[ -e $@ ] || ln -sf ../radeon/$@ ./
87
88 symlinks: $(SYMLINKS) $(COMMON_SYMLINKS)
89