don't apply scissor box in read_fast_rgba_pixels()
[mesa.git] / src / mesa / Makefile.X11
1 # $Id: Makefile.X11,v 1.62 2001/12/20 15:30:45 keithw Exp $
2
3 # Mesa 3-D graphics library
4 # Version: 4.1
5 # Copyright (C) 1995-2001 Brian Paul
6
7 # Makefile for core library
8
9
10 ##### MACROS #####
11
12 GL_MAJOR = 1
13 GL_MINOR = 3
14 GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)
15
16 VPATH = RCS
17
18 INCDIR = ../include
19 LIBDIR = ../lib
20
21
22
23 CORE_SOURCES = \
24 vpexec.c \
25 vpparse.c \
26 vpstate.c \
27 api_arrayelt.c \
28 api_compat.c \
29 api_loopback.c \
30 api_noop.c \
31 api_validate.c \
32 accum.c \
33 attrib.c \
34 blend.c \
35 buffers.c \
36 clip.c \
37 colortab.c \
38 config.c \
39 context.c \
40 convolve.c \
41 debug.c \
42 depth.c \
43 dispatch.c \
44 dlist.c \
45 drawpix.c \
46 enable.c \
47 enums.c \
48 eval.c \
49 extensions.c \
50 feedback.c \
51 fog.c \
52 get.c \
53 glapi.c \
54 glthread.c \
55 hash.c \
56 hint.c \
57 histogram.c \
58 image.c \
59 imports.c \
60 light.c \
61 lines.c \
62 matrix.c \
63 mem.c \
64 mmath.c \
65 pixel.c \
66 points.c \
67 polygon.c \
68 rastpos.c \
69 state.c \
70 stencil.c \
71 texformat.c \
72 teximage.c \
73 texobj.c \
74 texstate.c \
75 texstore.c \
76 texutil.c \
77 varray.c \
78 vtxfmt.c \
79 X86/x86.c \
80 X86/common_x86.c \
81 X86/3dnow.c \
82 X86/sse.c \
83 math/m_debug_clip.c \
84 math/m_debug_norm.c \
85 math/m_debug_vertex.c \
86 math/m_debug_xform.c \
87 math/m_eval.c \
88 math/m_matrix.c \
89 math/m_translate.c \
90 math/m_vector.c \
91 math/m_vertices.c \
92 math/m_xform.c \
93 array_cache/ac_context.c \
94 array_cache/ac_import.c \
95 swrast/s_aaline.c \
96 swrast/s_aatriangle.c \
97 swrast/s_accum.c \
98 swrast/s_alpha.c \
99 swrast/s_alphabuf.c \
100 swrast/s_bitmap.c \
101 swrast/s_blend.c \
102 swrast/s_buffers.c \
103 swrast/s_copypix.c \
104 swrast/s_context.c \
105 swrast/s_depth.c \
106 swrast/s_drawpix.c \
107 swrast/s_feedback.c \
108 swrast/s_fog.c \
109 swrast/s_histogram.c \
110 swrast/s_imaging.c \
111 swrast/s_lines.c \
112 swrast/s_logic.c \
113 swrast/s_masking.c \
114 swrast/s_pb.c \
115 swrast/s_pixeltex.c \
116 swrast/s_points.c \
117 swrast/s_readpix.c \
118 swrast/s_scissor.c \
119 swrast/s_span.c \
120 swrast/s_stencil.c \
121 swrast/s_texture.c \
122 swrast/s_texstore.c \
123 swrast/s_triangle.c \
124 swrast/s_zoom.c \
125 swrast_setup/ss_context.c \
126 swrast_setup/ss_triangle.c \
127 swrast_setup/ss_vb.c \
128 tnl/t_array_api.c \
129 tnl/t_array_import.c \
130 tnl/t_context.c \
131 tnl/t_eval_api.c \
132 tnl/t_imm_alloc.c \
133 tnl/t_imm_api.c \
134 tnl/t_imm_debug.c \
135 tnl/t_imm_dlist.c \
136 tnl/t_imm_elt.c \
137 tnl/t_imm_eval.c \
138 tnl/t_imm_exec.c \
139 tnl/t_imm_fixup.c \
140 tnl/t_pipeline.c \
141 tnl/t_vb_fog.c \
142 tnl/t_vb_light.c \
143 tnl/t_vb_normals.c \
144 tnl/t_vb_points.c \
145 tnl/t_vb_program.c \
146 tnl/t_vb_render.c \
147 tnl/t_vb_texgen.c \
148 tnl/t_vb_texmat.c \
149 tnl/t_vb_vertex.c
150
151
152 DRIVER_SOURCES = \
153 FX/fxapi.c \
154 FX/fxdd.c \
155 FX/fxddspan.c \
156 FX/fxddtex.c \
157 FX/fxsetup.c \
158 FX/fxtexman.c \
159 FX/fxtris.c \
160 FX/fxvb.c \
161 FX/fxglidew.c \
162 X/glxapi.c \
163 X/fakeglx.c \
164 X/xfonts.c \
165 X/xm_api.c \
166 X/xm_dd.c \
167 X/xm_line.c \
168 X/xm_span.c \
169 X/xm_tri.c \
170 SVGA/svgamesa.c \
171 SVGA/svgamesa8.c \
172 SVGA/svgamesa15.c \
173 SVGA/svgamesa16.c \
174 SVGA/svgamesa24.c \
175 SVGA/svgamesa32.c
176
177
178 ASM_SOURCES =
179
180 ADDITIONAL_OBJ =
181
182 OBJECTS = $(ASM_SOURCES:.S=.o) \
183 $(CORE_SOURCES:.c=.o) \
184 $(DRIVER_SOURCES:.c=.o) \
185 $(ADDITIONAL_OBJ)
186
187
188 OSMESA_SOURCES = OSmesa/osmesa.c
189 OSMESA_OBJECTS = OSmesa/osmesa.o
190
191
192
193 ##### RULES #####
194
195 .c.o:
196 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
197
198 .S.o:
199 $(CC) -c -I. $(CFLAGS) $< -o $@
200
201
202 X86/x86.o: X86/x86.c
203 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
204 X86/common_x86.o: X86/common_x86.c
205 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
206 X86/common_x86_asm.o: X86/common_x86_asm.S X86/matypes.h
207 X86/3dnow.o: X86/3dnow.c
208 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
209 X86/sse.o: X86/sse.c
210 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
211 X86/matypes.h: mtypes.h tnl/t_context.h X86/gen_matypes.c
212 $(CC) -I. -I$(INCDIR) $(CFLAGS) X86/gen_matypes.c -o X86/gen_matypes
213 ./X86/gen_matypes > X86/matypes.h
214 rm -f X86/gen_matypes X86/*.o
215
216 # We have X86/matypes.h depend on X86/matypes.h so that if ASM_SOURCES
217 # is empty we don't get an invalid Makefile.
218 $(ASM_SOURCES) X86/matypes.h: X86/matypes.h
219
220
221 ##### TARGETS #####
222
223 #default:
224 # @echo "Specify a target configuration"
225
226 clean:
227 -rm -f *.o *~ */*.o */*~ *.lo *.la
228 -rm -rf .libs
229
230 targets: $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(OSMESA_LIB)
231
232 # Make the GL library
233 $(LIBDIR)/$(GL_LIB): $(OBJECTS)
234 $(MAKELIB) $(GL_LIB) $(GL_MAJOR) $(GL_MINOR) $(GL_TINY) $(OBJECTS)
235 rm -f $(LIBDIR)/$(GL_LIB)*
236 mv $(GL_LIB)* $(LIBDIR)
237
238
239 # Make the OSMesa library
240 $(LIBDIR)/$(OSMESA_LIB): $(OSMESA_OBJECTS)
241 if [ ${OSMESA_LIB} ] ; then $(MAKELIB) $(OSMESA_LIB) $(MESA_MAJOR) $(MESA_MINOR) $(GL_TINY) $(OSMESA_OBJECTS) ; fi
242 if [ ${OSMESA_LIB} ] ; then rm -f $(LIBDIR)/$(OSMESA_LIB)* ; fi
243 if [ ${OSMESA_LIB} ] ; then mv $(OSMESA_LIB)* $(LIBDIR) ; fi
244
245
246 include ../Make-config
247
248 include depend
249
250
251
252 #
253 # Run 'make dep' to update the dependencies if you change what's included
254 # by any source file.
255 #
256 dep: $(CORE_SOURCES) $(DRIVER_SOURCES) $(OSMESA_SOURCES)
257 makedepend -fdepend -Y -I../include -DGGI -DSVGA -DFX $(CORE_SOURCES) $(DRIVER_SOURCES) $(OSMESA_SOURCES)
258
259 tags:
260 etags `find . -name \*.[ch]` `find ../include`
261
262
263
264 # XXX temporary for NV_vertex_program
265 VPFILES = \
266 include/GL/glext.h \
267 src/Makefile.X11 \
268 src/vpparse.[ch] \
269 src/vpexec.[ch] \
270 src/vpstate.[ch] \
271 src/attrib.c \
272 src/context.c \
273 src/enable.c \
274 src/extensions.c \
275 src/get.c \
276 src/matrix.c \
277 src/mtypes.h \
278 src/varray.c \
279 src/tnl/t_vb_program.c \
280 tests/vptest1.c \
281 tests/vptest2.c
282
283 vptar:
284 cd .. ; tar cvf vpfiles.tar $(VPFILES) ; gzip vpfiles.tar
285