disable _glapi_set_warning_func() call as it's not present in older libGLs
[mesa.git] / src / mesa / main / Makefile.OSMesa16
1 # $Id: Makefile.OSMesa16,v 1.8 2002/09/27 02:45:37 brianp Exp $
2
3 # Mesa 3-D graphics library
4 # Version: 4.1
5 # Copyright (C) 1995-2002 Brian Paul
6
7 # Makefile for building Mesa for 16/32-bit/channel rendering with the OSMesa
8 # driver.
9
10
11 ##### MACROS #####
12
13 GL_MAJOR = 1
14 GL_MINOR = 2
15 GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)
16
17 VPATH = RCS
18
19 INCDIR = ../include
20 LIBDIR = ../lib
21
22
23
24 CORE_SOURCES = \
25 api_loopback.c \
26 api_noop.c \
27 api_validate.c \
28 accum.c \
29 attrib.c \
30 blend.c \
31 buffers.c \
32 clip.c \
33 colortab.c \
34 context.c \
35 convolve.c \
36 debug.c \
37 depth.c \
38 dispatch.c \
39 dlist.c \
40 drawpix.c \
41 enable.c \
42 enums.c \
43 eval.c \
44 extensions.c \
45 feedback.c \
46 fog.c \
47 get.c \
48 glapi.c \
49 glthread.c \
50 hash.c \
51 hint.c \
52 histogram.c \
53 image.c \
54 imports.c \
55 light.c \
56 lines.c \
57 matrix.c \
58 mem.c \
59 mmath.c \
60 pixel.c \
61 points.c \
62 polygon.c \
63 rastpos.c \
64 state.c \
65 stencil.c \
66 texcompress.c \
67 texformat.c \
68 teximage.c \
69 texobj.c \
70 texstate.c \
71 texstore.c \
72 texutil.c \
73 varray.c \
74 vtxfmt.c \
75 X86/x86.c \
76 X86/common_x86.c \
77 X86/3dnow.c \
78 X86/sse.c \
79 math/m_debug_clip.c \
80 math/m_debug_norm.c \
81 math/m_debug_vertex.c \
82 math/m_debug_xform.c \
83 math/m_eval.c \
84 math/m_matrix.c \
85 math/m_translate.c \
86 math/m_vector.c \
87 math/m_vertices.c \
88 math/m_xform.c \
89 array_cache/ac_context.c \
90 array_cache/ac_import.c \
91 swrast/s_aaline.c \
92 swrast/s_aatriangle.c \
93 swrast/s_accum.c \
94 swrast/s_alpha.c \
95 swrast/s_alphabuf.c \
96 swrast/s_bitmap.c \
97 swrast/s_blend.c \
98 swrast/s_buffers.c \
99 swrast/s_copypix.c \
100 swrast/s_context.c \
101 swrast/s_depth.c \
102 swrast/s_drawpix.c \
103 swrast/s_feedback.c \
104 swrast/s_fog.c \
105 swrast/s_histogram.c \
106 swrast/s_imaging.c \
107 swrast/s_lines.c \
108 swrast/s_logic.c \
109 swrast/s_masking.c \
110 swrast/s_pixeltex.c \
111 swrast/s_points.c \
112 swrast/s_readpix.c \
113 swrast/s_span.c \
114 swrast/s_stencil.c \
115 swrast/s_texture.c \
116 swrast/s_texstore.c \
117 swrast/s_triangle.c \
118 swrast/s_zoom.c \
119 swrast_setup/ss_context.c \
120 swrast_setup/ss_triangle.c \
121 swrast_setup/ss_vb.c \
122 tnl/t_array_api.c \
123 tnl/t_array_import.c \
124 tnl/t_context.c \
125 tnl/t_eval_api.c \
126 tnl/t_imm_alloc.c \
127 tnl/t_imm_api.c \
128 tnl/t_imm_debug.c \
129 tnl/t_imm_dlist.c \
130 tnl/t_imm_elt.c \
131 tnl/t_imm_eval.c \
132 tnl/t_imm_exec.c \
133 tnl/t_imm_fixup.c \
134 tnl/t_pipeline.c \
135 tnl/t_vb_fog.c \
136 tnl/t_vb_light.c \
137 tnl/t_vb_normals.c \
138 tnl/t_vb_points.c \
139 tnl/t_vb_render.c \
140 tnl/t_vb_texgen.c \
141 tnl/t_vb_texmat.c \
142 tnl/t_vb_vertex.c \
143 OSmesa/osmesa.c
144
145 ASM_SOURCES =
146
147 ADDITIONAL_OBJ =
148
149 OBJECTS = $(ASM_SOURCES:.S=.o) \
150 $(CORE_SOURCES:.c=.o) \
151 $(ADDITIONAL_OBJ)
152
153
154
155 ##### RULES #####
156
157 .c.o:
158 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
159
160 .S.o:
161 $(CC) -c -I. $(CFLAGS) $< -o $@
162
163
164 OSmesa/osmesa.o: OSmesa/osmesa.c
165 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
166
167 X86/x86.o: X86/x86.c
168 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
169 X86/common_x86.o: X86/common_x86.c
170 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
171 X86/common_x86_asm.o: X86/common_x86_asm.S X86/matypes.h
172 X86/3dnow.o: X86/3dnow.c
173 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
174 X86/sse.o: X86/sse.c
175 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
176 X86/matypes.h: mtypes.h tnl/t_context.h X86/gen_matypes.c
177 $(CC) -I. -I$(INCDIR) $(CFLAGS) X86/gen_matypes.c -o X86/gen_matypes
178 ./X86/gen_matypes > X86/matypes.h
179 rm -f X86/gen_matypes X86/*.o
180
181 $(ASM_SOURCES): X86/matypes.h
182
183
184
185 ##### TARGETS #####
186
187 #default:
188 # @echo "Specify a target configuration"
189
190 clean:
191 -rm *.o *~ */*.o */*~ *.lo *.la
192 -rm -rf .libs
193
194 targets: $(LIBDIR)/$(OSMESA16_LIB)
195
196 # Make the 16-bit/channel OSMesa library
197 $(LIBDIR)/$(OSMESA16_LIB): $(OBJECTS)
198 $(MAKELIB) $(OSMESA16_LIB) $(GL_MAJOR) $(GL_MINOR) $(GL_TINY) $(OBJECTS)
199 rm -f $(LIBDIR)/$(OSMESA16_LIB)*
200 mv $(OSMESA16_LIB)* $(LIBDIR)
201
202
203 include ../Make-config
204
205 include depend
206
207
208
209 #
210 # Run 'make dep' to update the dependencies if you change what's included
211 # by any source file.
212 #
213 dep: $(CORE_SOURCES)
214 makedepend -fdepend -Y -I../include $(CORE_SOURCES)
215
216 tags:
217 etags `find . -name \*.[ch]` `find ../include`