Merge remote branch 'origin/master' into radeon-rewrite
[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 RADEON_COMMON_SOURCES = \
24 radeon_texture.c \
25 radeon_common_context.c \
26 radeon_common.c \
27 radeon_dma.c \
28 radeon_lock.c \
29 radeon_bo_legacy.c \
30 radeon_cs_legacy.c \
31 radeon_mipmap_tree.c \
32 radeon_span.c
33
34 DRIVER_SOURCES = \
35 radeon_screen.c \
36 r300_context.c \
37 r300_ioctl.c \
38 r300_cmdbuf.c \
39 r300_state.c \
40 r300_render.c \
41 r300_tex.c \
42 r300_texstate.c \
43 radeon_program.c \
44 radeon_program_alu.c \
45 radeon_program_pair.c \
46 radeon_nqssadce.c \
47 r300_vertprog.c \
48 r300_fragprog.c \
49 r300_fragprog_swizzle.c \
50 r300_fragprog_emit.c \
51 r500_fragprog.c \
52 r500_fragprog_emit.c \
53 r300_shader.c \
54 r300_emit.c \
55 r300_swtcl.c \
56 $(RADEON_COMMON_SOURCES) \
57 $(EGL_SOURCES)
58
59 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
60
61 DRIVER_DEFINES = -DCOMPILE_R300 -DR200_MERGED=0 \
62 -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R300 \
63 # -DRADEON_BO_TRACK \
64 -Wall
65
66 SYMLINKS = \
67 server/radeon_dri.c \
68 server/radeon_dri.h \
69 server/radeon.h \
70 server/radeon_macros.h \
71 server/radeon_reg.h \
72 server/radeon_egl.c
73
74 COMMON_SYMLINKS = \
75 radeon_chipset.h \
76 radeon_screen.c \
77 radeon_screen.h \
78 radeon_span.h \
79 radeon_span.c \
80 radeon_bo_legacy.c \
81 radeon_cs_legacy.c \
82 radeon_bo_legacy.h \
83 radeon_cs_legacy.h \
84 radeon_bocs_wrapper.h \
85 radeon_lock.c \
86 radeon_lock.h \
87 radeon_common.c \
88 radeon_common.h \
89 radeon_common_context.c \
90 radeon_common_context.h \
91 radeon_cmdbuf.h \
92 radeon_dma.c \
93 radeon_dma.h \
94 radeon_mipmap_tree.c \
95 radeon_mipmap_tree.h \
96 radeon_texture.c \
97 radeon_texture.h
98
99 DRI_LIB_DEPS += #-ldrm_radeon
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)