1 # $Id: Makefile.OSMesa16,v 1.9 2002/10/25 13:50:48 brianp Exp $
3 # Mesa 3-D graphics library
5 # Copyright (C) 1995-2002 Brian Paul
7 # Makefile for building Mesa for 16/32-bit/channel rendering with the OSMesa
15 GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)
80 math/m_debug_vertex.c \
81 math/m_debug_xform.c \
88 array_cache/ac_context.c \
89 array_cache/ac_import.c \
91 swrast/s_aatriangle.c \
102 swrast/s_feedback.c \
104 swrast/s_histogram.c \
109 swrast/s_pixeltex.c \
115 swrast/s_texstore.c \
116 swrast/s_triangle.c \
118 swrast_setup/ss_context.c \
119 swrast_setup/ss_triangle.c \
120 swrast_setup/ss_vb.c \
122 tnl/t_array_import.c \
148 OBJECTS = $(ASM_SOURCES:.S=.o) \
149 $(CORE_SOURCES:.c=.o) \
157 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
160 $(CC) -c -I. $(CFLAGS) $< -o $@
163 OSmesa/osmesa.o: OSmesa/osmesa.c
164 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
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 $@
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
180 $(ASM_SOURCES): X86/matypes.h
187 # @echo "Specify a target configuration"
190 -rm *.o *~ */*.o */*~ *.lo *.la
193 targets: $(LIBDIR)/$(OSMESA16_LIB)
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)
202 include ../Make-config
209 # Run 'make dep' to update the dependencies if you change what's included
210 # by any source file.
213 makedepend -fdepend -Y -I../include $(CORE_SOURCES)
216 etags `find . -name \*.[ch]` `find ../include`