Merge remote branch 'main/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 CFLAGS += $(RADEON_CFLAGS)
7
8 LIBNAME = r300_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 r300_context.c \
40 r300_draw.c \
41 r300_ioctl.c \
42 r300_cmdbuf.c \
43 r300_state.c \
44 r300_render.c \
45 r300_tex.c \
46 r300_texstate.c \
47 radeon_program.c \
48 radeon_program_alu.c \
49 radeon_program_pair.c \
50 radeon_nqssadce.c \
51 r300_vertprog.c \
52 r300_fragprog_common.c \
53 r300_fragprog.c \
54 r300_fragprog_swizzle.c \
55 r300_fragprog_emit.c \
56 r500_fragprog.c \
57 r500_fragprog_emit.c \
58 r300_shader.c \
59 r300_emit.c \
60 r300_swtcl.c \
61 $(RADEON_COMMON_SOURCES) \
62 $(EGL_SOURCES)
63
64 C_SOURCES = $(COMMON_SOURCES) $(DRIVER_SOURCES)
65
66 DRIVER_DEFINES = -DCOMPILE_R300 -DR200_MERGED=0 \
67 -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R300 \
68 # -DRADEON_BO_TRACK \
69 -Wall
70
71 SYMLINKS = \
72 server/radeon_dri.c \
73 server/radeon_dri.h \
74 server/radeon.h \
75 server/radeon_macros.h \
76 server/radeon_reg.h \
77 server/radeon_egl.c
78
79 COMMON_SYMLINKS = \
80 radeon_chipset.h \
81 radeon_screen.c \
82 radeon_screen.h \
83 radeon_span.h \
84 radeon_span.c \
85 radeon_bo_legacy.c \
86 radeon_cs_legacy.c \
87 radeon_bo_legacy.h \
88 radeon_cs_legacy.h \
89 radeon_bocs_wrapper.h \
90 radeon_lock.c \
91 radeon_lock.h \
92 radeon_common.c \
93 radeon_common.h \
94 radeon_common_context.c \
95 radeon_common_context.h \
96 radeon_cmdbuf.h \
97 radeon_dma.c \
98 radeon_dma.h \
99 radeon_mipmap_tree.c \
100 radeon_mipmap_tree.h \
101 radeon_texture.c \
102 radeon_texture.h \
103 radeon_fbo.c
104
105 DRI_LIB_DEPS += $(RADEON_LDFLAGS)
106
107 ##### TARGETS #####
108
109 include ../Makefile.template
110
111 server:
112 mkdir -p server
113
114 $(SYMLINKS): server
115 @[ -e $@ ] || ln -sf ../../radeon/$@ server/
116
117 $(COMMON_SYMLINKS):
118 @[ -e $@ ] || ln -sf ../radeon/$@ ./
119
120 symlinks: $(SYMLINKS) $(COMMON_SYMLINKS)