1 # $Id: Makefile.X11,v 1.62 2001/12/20 15:30:45 keithw 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)
85 math/m_debug_vertex.c \
86 math/m_debug_xform.c \
93 array_cache/ac_context.c \
94 array_cache/ac_import.c \
96 swrast/s_aatriangle.c \
107 swrast/s_feedback.c \
109 swrast/s_histogram.c \
115 swrast/s_pixeltex.c \
122 swrast/s_texstore.c \
123 swrast/s_triangle.c \
125 swrast_setup/ss_context.c \
126 swrast_setup/ss_triangle.c \
127 swrast_setup/ss_vb.c \
129 tnl/t_array_import.c \
182 OBJECTS = $(ASM_SOURCES:.S=.o) \
183 $(CORE_SOURCES:.c=.o) \
184 $(DRIVER_SOURCES:.c=.o) \
188 OSMESA_SOURCES = OSmesa/osmesa.c
189 OSMESA_OBJECTS = OSmesa/osmesa.o
196 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
199 $(CC) -c -I. $(CFLAGS) $< -o $@
203 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
204 X86/common_x86.o: X86/common_x86.c
205 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
206 X86/common_x86_asm.o: X86/common_x86_asm.S X86/matypes.h
207 X86/3dnow.o: X86/3dnow.c
208 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
210 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
211 X86/matypes.h: mtypes.h tnl/t_context.h X86/gen_matypes.c
212 $(CC) -I. -I$(INCDIR) $(CFLAGS) X86/gen_matypes.c -o X86/gen_matypes
213 ./X86/gen_matypes > X86/matypes.h
214 rm -f X86/gen_matypes X86/*.o
216 # We have X86/matypes.h depend on X86/matypes.h so that if ASM_SOURCES
217 # is empty we don't get an invalid Makefile.
218 $(ASM_SOURCES) X86/matypes.h: X86/matypes.h
224 # @echo "Specify a target configuration"
227 -rm -f *.o *~ */*.o */*~ *.lo *.la
230 targets: $(LIBDIR)/$(GL_LIB) $(LIBDIR)/$(OSMESA_LIB)
232 # Make the GL library
233 $(LIBDIR)/$(GL_LIB): $(OBJECTS)
234 $(MAKELIB) $(GL_LIB) $(GL_MAJOR) $(GL_MINOR) $(GL_TINY) $(OBJECTS)
235 rm -f $(LIBDIR)/$(GL_LIB)*
236 mv $(GL_LIB)* $(LIBDIR)
239 # Make the OSMesa library
240 $(LIBDIR)/$(OSMESA_LIB): $(OSMESA_OBJECTS)
241 if [ ${OSMESA_LIB} ] ; then $(MAKELIB) $(OSMESA_LIB) $(MESA_MAJOR) $(MESA_MINOR) $(GL_TINY) $(OSMESA_OBJECTS) ; fi
242 if [ ${OSMESA_LIB} ] ; then rm -f $(LIBDIR)/$(OSMESA_LIB)* ; fi
243 if [ ${OSMESA_LIB} ] ; then mv $(OSMESA_LIB)* $(LIBDIR) ; fi
246 include ../Make-config
253 # Run 'make dep' to update the dependencies if you change what's included
254 # by any source file.
256 dep: $(CORE_SOURCES) $(DRIVER_SOURCES) $(OSMESA_SOURCES)
257 makedepend -fdepend -Y -I../include -DGGI -DSVGA -DFX $(CORE_SOURCES) $(DRIVER_SOURCES) $(OSMESA_SOURCES)
260 etags `find . -name \*.[ch]` `find ../include`
264 # XXX temporary for NV_vertex_program
279 src/tnl/t_vb_program.c \
284 cd .. ; tar cvf vpfiles.tar $(VPFILES) ; gzip vpfiles.tar