1
2SRCS.mesa= \
3	api_arrayelt.c \
4	api_exec.c \
5	api_loopback.c \
6	api_noop.c \
7	api_validate.c \
8	accum.c \
9	attrib.c \
10	arrayobj.c \
11	blend.c \
12	bufferobj.c \
13	buffers.c \
14	clear.c \
15	clip.c \
16	colortab.c \
17	context.c \
18	convolve.c \
19	cpuinfo.c \
20	debug.c \
21	depth.c \
22	depthstencil.c \
23	dlist.c \
24	dlopen.c \
25	drawpix.c \
26	enable.c \
27	enums.c \
28	eval.c \
29	execmem.c \
30	extensions.c \
31	fbobject.c \
32	feedback.c \
33	ffvertex_prog.c \
34	fog.c \
35	formats.c \
36	framebuffer.c \
37	get.c \
38	getstring.c \
39	hash.c \
40	hint.c \
41	histogram.c \
42	image.c \
43	imports.c \
44	light.c \
45	lines.c \
46	matrix.c \
47	mipmap.c \
48	mm.c \
49	multisample.c \
50	pixel.c \
51	pixelstore.c \
52	points.c \
53	polygon.c \
54	queryobj.c \
55	rastpos.c \
56	rbadaptors.c \
57	readpix.c \
58	remap.c \
59	renderbuffer.c \
60	scissor.c \
61	shaders.c \
62	shared.c \
63	state.c \
64	stencil.c \
65	syncobj.c \
66	texcompress.c \
67	texcompress_s3tc.c \
68	texcompress_fxt1.c \
69	texenv.c \
70	texenvprogram.c \
71	texfetch.c \
72	texformat.c \
73	texgen.c \
74	texgetimage.c \
75	teximage.c \
76	texobj.c \
77	texparam.c \
78	texrender.c \
79	texstate.c \
80	texstore.c \
81	varray.c \
82	viewport.c \
83	vtxfmt.c
84
85
86# XXX  avoid source name clashes with glx
87.PATH:		${X11SRCDIR.MesaLib}/src/mesa/main
88BUILDSYMLINKS=	${X11SRCDIR.MesaLib}/src/mesa/main/pixel.c MESApixel.c \
89		${X11SRCDIR.MesaLib}/src/mesa/main/eval.c MESAeval.c
90
91
92
93# math
94.PATH:		${X11SRCDIR.MesaLib}/src/mesa/math
95SRCS.math= \
96	m_debug_clip.c \
97	m_debug_norm.c \
98	m_debug_xform.c \
99	m_eval.c \
100	m_matrix.c \
101	m_translate.c \
102	m_vector.c
103
104SRCS.math+= \
105	m_xform.c
106
107
108# swrast
109.PATH:		${X11SRCDIR.MesaLib}/src/mesa/swrast
110SRCS.swrast= \
111	s_aaline.c \
112	s_aatriangle.c \
113	s_accum.c \
114	s_alpha.c \
115	s_atifragshader.c \
116	s_bitmap.c \
117	s_blend.c \
118	s_blit.c \
119	s_clear.c \
120	s_copypix.c \
121	s_context.c \
122	s_depth.c \
123	s_drawpix.c \
124	s_feedback.c \
125	s_fog.c \
126	s_fragprog.c \
127	s_lines.c \
128	s_logic.c \
129	s_masking.c \
130	s_points.c \
131	s_readpix.c \
132	s_span.c \
133	s_stencil.c \
134	s_texcombine.c \
135	s_texfilter.c \
136	s_triangle.c \
137	s_zoom.c
138
139
140# swrast_setup
141.PATH:		${X11SRCDIR.MesaLib}/src/mesa/swrast_setup
142SRCS.ss= \
143	ss_context.c \
144	ss_triangle.c 
145
146
147# tnl
148.PATH:		${X11SRCDIR.MesaLib}/src/mesa/tnl
149SRCS.tnl= \
150	t_context.c \
151	t_pipeline.c \
152	t_draw.c \
153	t_rasterpos.c \
154	t_vb_program.c \
155	t_vb_render.c \
156	t_vb_texgen.c \
157	t_vb_texmat.c \
158	t_vb_vertex.c \
159	t_vb_cull.c \
160	t_vb_fog.c \
161	t_vb_light.c \
162	t_vb_normals.c \
163	t_vb_points.c \
164	t_vp_build.c \
165	t_vertex.c \
166	t_vertex_sse.c \
167	t_vertex_generic.c 
168
169
170.for fn in ${SRCS.glx} ${SRCS.dri} ${SRCS.mesa}
171CPPFLAGS.${fn}+=-I${X11SRCDIR.xc}/lib/GL/dri \
172		-I${X11SRCDIR.xc}/lib/GL/glx \
173		-I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support \
174		-I${X11SRCDIR.xc}/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel \
175		-I${X11SRCDIR.xc}/programs/Xserver/GL/dri \
176		-I${X11SRCDIR.MesaLib}/src/mesa/array_cache \
177		-I${X11SRCDIR.MesaLib}/src/mesa \
178		-I${X11SRCDIR.MesaLib}/src/mesa/swrast_setup \
179		-I${X11SRCDIR.MesaLib}/src/mesa/tnl \
180		-I${X11SRCDIR.MesaLib}/src/mesa/include
181CPPFLAGS.${fn}+=${X11FLAGS.DRI}
182.endfor
183
184SRCS+=	${SRCS.dri} ${SRCS.mesa} ${SRCS.ac} ${SRCS.math} \
185	${SRCS.swrast} ${SRCS.ss} ${SRCS.tnl}
186