1 # $Id: Makefile.X11,v 1.61 2001/12/14 16:35:55 kschultz Exp $
3 # Mesa 3-D graphics library
5 # Copyright (C) 1995-2001 Brian Paul
7 # Makefile for core library
14 GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)
84 math/m_debug_vertex.c \
85 math/m_debug_xform.c \
92 array_cache/ac_context.c \
93 array_cache/ac_import.c \
95 swrast/s_aatriangle.c \
106 swrast/s_feedback.c \
108 swrast/s_histogram.c \
114 swrast/s_pixeltex.c \
121 swrast/s_texstore.c \
122 swrast/s_triangle.c \
124 swrast_setup/ss_context.c \
125 swrast_setup/ss_triangle.c \
126 swrast_setup/ss_vb.c \
128 tnl/t_array_import.c \
181 OBJECTS = $(ASM_SOURCES:.S=.o) \
182 $(CORE_SOURCES:.c=.o) \
183 $(DRIVER_SOURCES:.c=.o) \
187 OSMESA_SOURCES = OSmesa/osmesa.c
188 OSMESA_OBJECTS = OSmesa/osmesa.o
195 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
198 $(CC) -c -I. $(CFLAGS) $< -o $@
202 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
203 X86/common_x86.o: X86/common_x86.c
204 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
205 X86/common_x86_asm.o: X86/common_x86_asm.S X86/matypes.h
206 X86/3dnow.o: X86/3dnow.c
207 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
209 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
210 X86/matypes.h: mtypes.h tnl/t_context.h X86/gen_matypes.c
211 $(CC) -I. -I$(INCDIR) $(CFLAGS) X86/gen_matypes.c -o X86/gen_matypes
212 ./X86/gen_matypes > X86/matypes.h
213 rm -f X86/gen_matypes X86/*.o
215 # We have X86/matypes.h depend on X86/matypes.h so that if ASM_SOURCES
216 # is empty we don't get an invalid Makefile.
217 $(ASM_SOURCES) X86/matypes.h: X86/matypes.h
223 # @echo "Specify a target configuration"
226 -rm -f *.o *~ */*.o */*~ *.lo *.la
229 targets: $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(OSMESA_LIB)
231 # Make the GL library
232 $(LIBDIR)/$(GL_LIB): $(OBJECTS)
233 $(MAKELIB) $(GL_LIB) $(GL_MAJOR) $(GL_MINOR) $(GL_TINY) $(OBJECTS)
234 rm -f $(LIBDIR)/$(GL_LIB)*
235 mv $(GL_LIB)* $(LIBDIR)
238 # Make the OSMesa library
239 $(LIBDIR)/$(OSMESA_LIB): $(OSMESA_OBJECTS)
240 if [ ${OSMESA_LIB} ] ; then $(MAKELIB) $(OSMESA_LIB) $(MESA_MAJOR) $(MESA_MINOR) $(GL_TINY) $(OSMESA_OBJECTS) ; fi
241 if [ ${OSMESA_LIB} ] ; then rm -f $(LIBDIR)/$(OSMESA_LIB)* ; fi
242 if [ ${OSMESA_LIB} ] ; then mv $(OSMESA_LIB)* $(LIBDIR) ; fi
245 include ../Make-config
252 # Run 'make dep' to update the dependencies if you change what's included
253 # by any source file.
255 dep: $(CORE_SOURCES) $(DRIVER_SOURCES) $(OSMESA_SOURCES)
256 makedepend -fdepend -Y -I../include -DGGI -DSVGA -DFX $(CORE_SOURCES) $(DRIVER_SOURCES) $(OSMESA_SOURCES)
259 etags `find . -name \*.[ch]` `find ../include`
263 # XXX temporary for NV_vertex_program
278 src/tnl/t_vb_program.c \
283 cd .. ; tar cvf vpfiles.tar $(VPFILES) ; gzip vpfiles.tar