1 # $Id: Makefile.X11,v 1.66 2002/04/02 16:20:00 brianp Exp $
3 # Mesa 3-D graphics library
5 # Copyright (C) 1995-2002 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 \
113 swrast/s_pixeltex.c \
119 swrast/s_texstore.c \
120 swrast/s_triangle.c \
122 swrast_setup/ss_context.c \
123 swrast_setup/ss_triangle.c \
124 swrast_setup/ss_vb.c \
126 tnl/t_array_import.c \
179 OBJECTS = $(ASM_SOURCES:.S=.o) \
180 $(CORE_SOURCES:.c=.o) \
181 $(DRIVER_SOURCES:.c=.o) \
185 OSMESA_SOURCES = OSmesa/osmesa.c
186 OSMESA_OBJECTS = OSmesa/osmesa.o
193 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
196 $(CC) -c -I. $(CFLAGS) $< -o $@
200 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
201 X86/common_x86.o: X86/common_x86.c
202 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
203 X86/common_x86_asm.o: X86/common_x86_asm.S X86/matypes.h
204 X86/3dnow.o: X86/3dnow.c
205 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
207 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
208 X86/matypes.h: mtypes.h tnl/t_context.h X86/gen_matypes.c
209 $(CC) -I. -I$(INCDIR) $(CFLAGS) X86/gen_matypes.c -o X86/gen_matypes
210 ./X86/gen_matypes > X86/matypes.h
211 rm -f X86/gen_matypes X86/*.o
213 # We have X86/matypes.h depend on X86/matypes.h so that if ASM_SOURCES
214 # is empty we don't get an invalid Makefile.
215 $(ASM_SOURCES) X86/matypes.h: X86/matypes.h
221 # @echo "Specify a target configuration"
224 -rm -f *.o *~ */*.o */*~ *.lo *.la
227 targets: $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(OSMESA_LIB)
229 # Make the GL library
230 $(LIBDIR)/$(GL_LIB): $(OBJECTS)
231 $(MAKELIB) $(GL_LIB) $(GL_MAJOR) $(GL_MINOR) $(GL_TINY) $(OBJECTS)
232 rm -f $(LIBDIR)/$(GL_LIB)*
233 mv $(GL_LIB)* $(LIBDIR)
236 # Make the OSMesa library
237 $(LIBDIR)/$(OSMESA_LIB): $(OSMESA_OBJECTS)
238 if [ ${OSMESA_LIB} ] ; then $(MAKELIB) $(OSMESA_LIB) $(MESA_MAJOR) $(MESA_MINOR) $(GL_TINY) $(OSMESA_OBJECTS) ; fi
239 if [ ${OSMESA_LIB} ] ; then rm -f $(LIBDIR)/$(OSMESA_LIB)* ; fi
240 if [ ${OSMESA_LIB} ] ; then mv $(OSMESA_LIB)* $(LIBDIR) ; fi
243 include ../Make-config
250 # Run 'make dep' to update the dependencies if you change what's included
251 # by any source file.
253 dep: $(CORE_SOURCES) $(DRIVER_SOURCES) $(OSMESA_SOURCES)
254 makedepend -fdepend -Y -I../include -DGGI -DSVGA -DFX $(CORE_SOURCES) $(DRIVER_SOURCES) $(OSMESA_SOURCES)
257 etags `find . -name \*.[ch]` `find ../include`
261 # XXX temporary for NV_vertex_program
276 src/tnl/t_vb_program.c \
281 cd .. ; tar cvf vpfiles.tar $(VPFILES) ; gzip vpfiles.tar