assorted changes for supporting GLfloat color channels (not done)
[mesa.git] / src / mesa / main / Makefile.OSMesa16
1 # $Id: Makefile.OSMesa16,v 1.4 2001/07/13 20:07:37 brianp Exp $
2
3 # Mesa 3-D graphics library
4 # Version: 3.5
5 # Copyright (C) 1995-2001 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 config.c \
35 context.c \
36 convolve.c \
37 debug.c \
38 depth.c \
39 dispatch.c \
40 dlist.c \
41 drawpix.c \
42 enable.c \
43 enums.c \
44 eval.c \
45 extensions.c \
46 feedback.c \
47 fog.c \
48 get.c \
49 glapi.c \
50 glthread.c \
51 hash.c \
52 hint.c \
53 histogram.c \
54 image.c \
55 imports.c \
56 light.c \
57 lines.c \
58 matrix.c \
59 mem.c \
60 mmath.c \
61 pixel.c \
62 points.c \
63 polygon.c \
64 rastpos.c \
65 state.c \
66 stencil.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_pb.c \
111 swrast/s_pixeltex.c \
112 swrast/s_points.c \
113 swrast/s_readpix.c \
114 swrast/s_scissor.c \
115 swrast/s_span.c \
116 swrast/s_stencil.c \
117 swrast/s_texture.c \
118 swrast/s_texstore.c \
119 swrast/s_triangle.c \
120 swrast/s_zoom.c \
121 swrast_setup/ss_context.c \
122 swrast_setup/ss_triangle.c \
123 swrast_setup/ss_vb.c \
124 swrast_setup/ss_interp.c \
125 tnl/t_array_api.c \
126 tnl/t_array_import.c \
127 tnl/t_context.c \
128 tnl/t_eval_api.c \
129 tnl/t_imm_alloc.c \
130 tnl/t_imm_api.c \
131 tnl/t_imm_debug.c \
132 tnl/t_imm_dlist.c \
133 tnl/t_imm_elt.c \
134 tnl/t_imm_eval.c \
135 tnl/t_imm_exec.c \
136 tnl/t_imm_fixup.c \
137 tnl/t_pipeline.c \
138 tnl/t_vb_fog.c \
139 tnl/t_vb_light.c \
140 tnl/t_vb_normals.c \
141 tnl/t_vb_points.c \
142 tnl/t_vb_render.c \
143 tnl/t_vb_texgen.c \
144 tnl/t_vb_texmat.c \
145 tnl/t_vb_vertex.c \
146 OSmesa/osmesa.c
147
148 ASM_SOURCES =
149
150 ADDITIONAL_OBJ =
151
152 OBJECTS = $(ASM_SOURCES:.S=.o) \
153 $(CORE_SOURCES:.c=.o) \
154 $(ADDITIONAL_OBJ)
155
156
157
158 ##### RULES #####
159
160 .c.o:
161 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
162
163 .S.o:
164 $(CC) -c -I. $(CFLAGS) $< -o $@
165
166
167 OSmesa/osmesa.o: OSmesa/osmesa.c
168 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
169
170 X86/x86.o: X86/x86.c
171 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
172 X86/common_x86.o: X86/common_x86.c
173 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
174 X86/common_x86_asm.o: X86/common_x86_asm.S X86/matypes.h
175 X86/3dnow.o: X86/3dnow.c
176 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
177 X86/sse.o: X86/sse.c
178 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
179 X86/matypes.h: mtypes.h tnl/t_context.h X86/gen_matypes.c
180 $(CC) -I. -I$(INCDIR) $(CFLAGS) X86/gen_matypes.c -o X86/gen_matypes
181 ./X86/gen_matypes > X86/matypes.h
182 rm -f X86/gen_matypes X86/*.o
183
184 $(ASM_SOURCES): X86/matypes.h
185
186
187
188 ##### TARGETS #####
189
190 #default:
191 # @echo "Specify a target configuration"
192
193 clean:
194 -rm *.o *~ */*.o */*~ *.lo *.la
195 -rm -rf .libs
196
197 targets: $(LIBDIR)/$(OSMESA16_LIB)
198
199 # Make the 16-bit/channel OSMesa library
200 $(LIBDIR)/$(OSMESA16_LIB): $(OBJECTS)
201 $(MAKELIB) $(OSMESA16_LIB) $(GL_MAJOR) $(GL_MINOR) $(GL_TINY) $(OBJECTS)
202 rm -f $(LIBDIR)/$(OSMESA16_LIB)*
203 mv $(OSMESA16_LIB)* $(LIBDIR)
204
205
206 include ../Make-config
207
208 include depend
209
210
211
212 #
213 # Run 'make dep' to update the dependencies if you change what's included
214 # by any source file.
215 #
216 dep: $(CORE_SOURCES)
217 makedepend -fdepend -Y -I../include $(CORE_SOURCES)
218
219 tags:
220 etags `find . -name \*.[ch]` `find ../include`