667eb1f919c9ebec300ac70e54d6eeac5e3cb6d6
[mesa.git] / src / mesa / drivers / dri / r600 / Makefile
1 # src/mesa/drivers/dri/r300/Makefile
2
3 TOP = ../../../../..
4 include $(TOP)/configs/current
5
6 CFLAGS += $(RADEON_CFLAGS)
7
8 LIBNAME = r600_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 COMMON_SOURCES = \
17 ../../common/driverfuncs.c \
18 ../common/mm.c \
19 ../common/utils.c \
20 ../common/texmem.c \
21 ../common/vblank.c \
22 ../common/xmlconfig.c \
23 ../common/dri_util.c
24
25 RADEON_COMMON_SOURCES = \
26 radeon_texture.c \
27 radeon_common_context.c \
28 radeon_common.c \
29 radeon_dma.c \
30 radeon_lock.c \
31 radeon_bo_legacy.c \
32 radeon_cs_legacy.c \
33 radeon_mipmap_tree.c \
34 radeon_span.c \
35 radeon_fbo.c
36
37 DRIVER_SOURCES = \
38 radeon_screen.c \
39 r600_context.c \
40 r600_cmdbuf.c \
41 r600_emit.c \
42 r700_assembler.c \
43 r700_fragprog.c \
44 r700_vertprog.c \
45 r700_shader.c \
46 r700_shaderinst.c \
47 r700_ioctl.c \
48 r700_oglprog.c \
49 r700_chip.c \
50 r700_state.c \
51 r700_clear.c \
52 r700_render.c \
53 r700_tex.c \
54 r700_debug.c \
55 $(RADEON_COMMON_SOURCES) \
56 $(EGL_SOURCES)
57
58 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
59
60 DRIVER_DEFINES = -DCOMPILE_R600 -DR200_MERGED=0 \
61 -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R600 \
62 # -DRADEON_BO_TRACK \
63 -Wall
64
65 SYMLINKS = \
66 server/radeon_dri.c \
67 server/radeon_dri.h \
68 server/radeon.h \
69 server/radeon_macros.h \
70 server/radeon_reg.h \
71 server/radeon_egl.c
72
73 COMMON_SYMLINKS = \
74 radeon_chipset.h \
75 radeon_screen.c \
76 radeon_screen.h \
77 radeon_span.h \
78 radeon_span.c \
79 radeon_bo_legacy.c \
80 radeon_cs_legacy.c \
81 radeon_bo_legacy.h \
82 radeon_cs_legacy.h \
83 radeon_bocs_wrapper.h \
84 radeon_lock.c \
85 radeon_lock.h \
86 radeon_common.c \
87 radeon_common.h \
88 radeon_common_context.c \
89 radeon_common_context.h \
90 radeon_cmdbuf.h \
91 radeon_dma.c \
92 radeon_dma.h \
93 radeon_mipmap_tree.c \
94 radeon_mipmap_tree.h \
95 radeon_texture.c \
96 radeon_texture.h \
97 radeon_fbo.c
98
99 DRI_LIB_DEPS += $(RADEON_LDFLAGS)
100
101 ##### TARGETS #####
102
103 include ../Makefile.template
104
105 server:
106 mkdir -p server
107
108 $(SYMLINKS): server
109 @[ -e $@ ] || ln -sf ../../radeon/$@ server/
110
111 $(COMMON_SYMLINKS):
112 @[ -e $@ ] || ln -sf ../radeon/$@ ./
113
114 symlinks: $(SYMLINKS) $(COMMON_SYMLINKS)