fix a comment
[mesa.git] / src / mesa / main / Makefile.OSMesa16
1 # $Id: Makefile.OSMesa16,v 1.7 2002/06/13 04:28:29 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 texformat.c \
67 teximage.c \
68 texobj.c \
69 texstate.c \
70 texstore.c \
71 texutil.c \
72 varray.c \
73 vtxfmt.c \
74 X86/x86.c \
75 X86/common_x86.c \
76 X86/3dnow.c \
77 X86/sse.c \
78 math/m_debug_clip.c \
79 math/m_debug_norm.c \
80 math/m_debug_vertex.c \
81 math/m_debug_xform.c \
82 math/m_eval.c \
83 math/m_matrix.c \
84 math/m_translate.c \
85 math/m_vector.c \
86 math/m_vertices.c \
87 math/m_xform.c \
88 array_cache/ac_context.c \
89 array_cache/ac_import.c \
90 swrast/s_aaline.c \
91 swrast/s_aatriangle.c \
92 swrast/s_accum.c \
93 swrast/s_alpha.c \
94 swrast/s_alphabuf.c \
95 swrast/s_bitmap.c \
96 swrast/s_blend.c \
97 swrast/s_buffers.c \
98 swrast/s_copypix.c \
99 swrast/s_context.c \
100 swrast/s_depth.c \
101 swrast/s_drawpix.c \
102 swrast/s_feedback.c \
103 swrast/s_fog.c \
104 swrast/s_histogram.c \
105 swrast/s_imaging.c \
106 swrast/s_lines.c \
107 swrast/s_logic.c \
108 swrast/s_masking.c \
109 swrast/s_pixeltex.c \
110 swrast/s_points.c \
111 swrast/s_readpix.c \
112 swrast/s_span.c \
113 swrast/s_stencil.c \
114 swrast/s_texture.c \
115 swrast/s_texstore.c \
116 swrast/s_triangle.c \
117 swrast/s_zoom.c \
118 swrast_setup/ss_context.c \
119 swrast_setup/ss_triangle.c \
120 swrast_setup/ss_vb.c \
121 tnl/t_array_api.c \
122 tnl/t_array_import.c \
123 tnl/t_context.c \
124 tnl/t_eval_api.c \
125 tnl/t_imm_alloc.c \
126 tnl/t_imm_api.c \
127 tnl/t_imm_debug.c \
128 tnl/t_imm_dlist.c \
129 tnl/t_imm_elt.c \
130 tnl/t_imm_eval.c \
131 tnl/t_imm_exec.c \
132 tnl/t_imm_fixup.c \
133 tnl/t_pipeline.c \
134 tnl/t_vb_fog.c \
135 tnl/t_vb_light.c \
136 tnl/t_vb_normals.c \
137 tnl/t_vb_points.c \
138 tnl/t_vb_render.c \
139 tnl/t_vb_texgen.c \
140 tnl/t_vb_texmat.c \
141 tnl/t_vb_vertex.c \
142 OSmesa/osmesa.c
143
144 ASM_SOURCES =
145
146 ADDITIONAL_OBJ =
147
148 OBJECTS = $(ASM_SOURCES:.S=.o) \
149 $(CORE_SOURCES:.c=.o) \
150 $(ADDITIONAL_OBJ)
151
152
153
154 ##### RULES #####
155
156 .c.o:
157 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
158
159 .S.o:
160 $(CC) -c -I. $(CFLAGS) $< -o $@
161
162
163 OSmesa/osmesa.o: OSmesa/osmesa.c
164 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
165
166 X86/x86.o: X86/x86.c
167 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
168 X86/common_x86.o: X86/common_x86.c
169 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
170 X86/common_x86_asm.o: X86/common_x86_asm.S X86/matypes.h
171 X86/3dnow.o: X86/3dnow.c
172 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
173 X86/sse.o: X86/sse.c
174 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
175 X86/matypes.h: mtypes.h tnl/t_context.h X86/gen_matypes.c
176 $(CC) -I. -I$(INCDIR) $(CFLAGS) X86/gen_matypes.c -o X86/gen_matypes
177 ./X86/gen_matypes > X86/matypes.h
178 rm -f X86/gen_matypes X86/*.o
179
180 $(ASM_SOURCES): X86/matypes.h
181
182
183
184 ##### TARGETS #####
185
186 #default:
187 # @echo "Specify a target configuration"
188
189 clean:
190 -rm *.o *~ */*.o */*~ *.lo *.la
191 -rm -rf .libs
192
193 targets: $(LIBDIR)/$(OSMESA16_LIB)
194
195 # Make the 16-bit/channel OSMesa library
196 $(LIBDIR)/$(OSMESA16_LIB): $(OBJECTS)
197 $(MAKELIB) $(OSMESA16_LIB) $(GL_MAJOR) $(GL_MINOR) $(GL_TINY) $(OBJECTS)
198 rm -f $(LIBDIR)/$(OSMESA16_LIB)*
199 mv $(OSMESA16_LIB)* $(LIBDIR)
200
201
202 include ../Make-config
203
204 include depend
205
206
207
208 #
209 # Run 'make dep' to update the dependencies if you change what's included
210 # by any source file.
211 #
212 dep: $(CORE_SOURCES)
213 makedepend -fdepend -Y -I../include $(CORE_SOURCES)
214
215 tags:
216 etags `find . -name \*.[ch]` `find ../include`