Sync usage with man page.
[netbsd-mini2440.git] / external / mit / xorg / lib / libOSMesa / libmesa.mk
blob4ab5fc565da151147d69016d9907d29155259ebe
1 # $NetBSD: libmesa.mk,v 1.3 2009/06/11 01:47:08 mrg Exp $
3 # Consumer of this Makefile should set MESA_SRC_MODULES.
5 INCLUDES.all= . glapi main
7 # Main sources
8 PATHS.main= main
9 INCLUDES.main= shader
10 SRCS.main= \
11 api_arrayelt.c \
12 api_exec.c \
13 api_loopback.c \
14 api_noop.c \
15 api_validate.c \
16 accum.c \
17 attrib.c \
18 arrayobj.c \
19 blend.c \
20 bufferobj.c \
21 buffers.c \
22 clear.c \
23 clip.c \
24 colortab.c \
25 context.c \
26 convolve.c \
27 debug.c \
28 depth.c \
29 depthstencil.c \
30 dlist.c \
31 dlopen.c \
32 drawpix.c \
33 enable.c \
34 enums.c \
35 eval.c \
36 execmem.c \
37 extensions.c \
38 fbobject.c \
39 feedback.c \
40 ffvertex_prog.c \
41 fog.c \
42 framebuffer.c \
43 get.c \
44 getstring.c \
45 hash.c \
46 hint.c \
47 histogram.c \
48 image.c \
49 imports.c \
50 light.c \
51 lines.c \
52 matrix.c \
53 mipmap.c \
54 mm.c \
55 multisample.c \
56 pixel.c \
57 pixelstore.c \
58 points.c \
59 polygon.c \
60 queryobj.c \
61 rastpos.c \
62 rbadaptors.c \
63 readpix.c \
64 renderbuffer.c \
65 scissor.c \
66 shaders.c \
67 state.c \
68 stencil.c \
69 texcompress.c \
70 texcompress_s3tc.c \
71 texcompress_fxt1.c \
72 texenv.c \
73 texenvprogram.c \
74 texformat.c \
75 texgen.c \
76 teximage.c \
77 texobj.c \
78 texparam.c \
79 texrender.c \
80 texstate.c \
81 texstore.c \
82 varray.c \
83 vtxfmt.c
85 # Math sources
86 PATHS.math= math
87 SRCS.math= \
88 m_debug_clip.c \
89 m_debug_norm.c \
90 m_debug_xform.c \
91 m_eval.c \
92 m_matrix.c \
93 m_translate.c \
94 m_vector.c \
95 m_xform.c
97 # Software raster sources
98 PATHS.swrast= swrast swrast_setup
99 INCLUDES.swrast= shader
100 SRCS.swrast= \
101 s_aaline.c \
102 s_aatriangle.c \
103 s_accum.c \
104 s_alpha.c \
105 s_atifragshader.c \
106 s_bitmap.c \
107 s_blend.c \
108 s_blit.c \
109 s_buffers.c \
110 s_copypix.c \
111 s_context.c \
112 s_depth.c \
113 s_drawpix.c \
114 s_feedback.c \
115 s_fog.c \
116 s_fragprog.c \
117 s_imaging.c \
118 s_lines.c \
119 s_logic.c \
120 s_masking.c \
121 s_points.c \
122 s_readpix.c \
123 s_span.c \
124 s_stencil.c \
125 s_texcombine.c \
126 s_texfilter.c \
127 s_texstore.c \
128 s_triangle.c \
129 s_zoom.c
131 # swrast_setup
132 .PATH: ${X11SRCDIR.MesaLib}/src/mesa/swrast_setup
133 SRCS.ss= \
134 ss_context.c \
135 ss_triangle.c
137 # TNL sources
138 PATHS.tnl= tnl
139 INCLUDES.tnl= shader
140 SRCS.tnl= \
141 t_context.c \
142 t_pipeline.c \
143 t_draw.c \
144 t_rasterpos.c \
145 t_vb_program.c \
146 t_vb_render.c \
147 t_vb_texgen.c \
148 t_vb_texmat.c \
149 t_vb_vertex.c \
150 t_vb_cull.c \
151 t_vb_fog.c \
152 t_vb_light.c \
153 t_vb_normals.c \
154 t_vb_points.c \
155 t_vp_build.c \
156 t_vertex.c \
157 t_vertex_sse.c \
158 t_vertex_generic.c
160 # VBO sources
161 PATHS.vbo= vbo
162 SRCS.vbo= \
163 vbo_context.c \
164 vbo_exec.c \
165 vbo_exec_api.c \
166 vbo_exec_array.c \
167 vbo_exec_draw.c \
168 vbo_exec_eval.c \
169 vbo_rebase.c \
170 vbo_split.c \
171 vbo_split_copy.c \
172 vbo_split_inplace.c \
173 vbo_save.c \
174 vbo_save_api.c \
175 vbo_save_draw.c \
176 vbo_save_loopback.c
178 COPTS.vbo_save_draw.c= -Wno-error
180 # Shader sources
181 PATHS.shader= shader shader/grammar
182 INCLUDES.shader= shader/slang shader/grammar
183 SRCS.shader= \
184 arbprogparse.c \
185 arbprogram.c \
186 atifragshader.c \
187 grammar_mesa.c \
188 nvfragparse.c \
189 nvprogram.c \
190 nvvertparse.c \
191 program.c \
192 prog_cache.c \
193 prog_debug.c \
194 prog_execute.c \
195 prog_instruction.c \
196 prog_noise.c \
197 prog_parameter.c \
198 prog_print.c \
199 prog_statevars.c \
200 prog_uniform.c \
201 programopt.c \
202 shader_api.c \
204 # Shader language sources
205 PATHS.slang= shader/slang
206 INCLUDES.slang= shader shader/grammar
207 SRCS.slang= \
208 slang_builtin.c \
209 slang_codegen.c \
210 slang_compile.c \
211 slang_compile_function.c \
212 slang_compile_operation.c \
213 slang_compile_struct.c \
214 slang_compile_variable.c \
215 slang_emit.c \
216 slang_ir.c \
217 slang_label.c \
218 slang_link.c \
219 slang_log.c \
220 slang_mem.c \
221 slang_preprocess.c \
222 slang_print.c \
223 slang_simplify.c \
224 slang_storage.c \
225 slang_typeinfo.c \
226 slang_vartable.c \
227 slang_utility.c
229 # GL API sources
230 PATHS.glapi= glapi main
231 SRCS.glapi= \
232 dispatch.c \
233 glapi.c \
234 glapi_getproc.c \
235 glthread.c
237 # Common driver sources
238 PATHS.common= drivers/common
239 INCLUDES.common= shader
240 SRCS.common= \
241 driverfuncs.c
244 # OSMesa driver sources
245 PATHS.osmesa= drivers/osmesa
246 INCLUDES.osmesa= shader
247 SRCS.osmesa= \
248 osmesa.c
250 .for _mod_ in ${MESA_SRC_MODULES}
252 SRCS+= ${SRCS.${_mod_}}
254 . for _path_ in ${PATHS.${_mod_}}
255 .PATH: ${X11SRCDIR.MesaLib}/src/mesa/${_path_}
256 . endfor
258 . for _path_ in ${INCLUDES.${_mod_}}
259 CPPFLAGS+= -I${X11SRCDIR.MesaLib}/src/mesa/${_path_}
260 . endfor
262 .endfor
264 .for _path_ in ${INCLUDES.all}
265 CPPFLAGS+= -I${X11SRCDIR.MesaLib}/src/mesa/${_path_}
266 .endfor
268 LIBDPLIBS= m ${NETBSDSRCDIR}/lib/libm