1 # $Id: Makefile.OSMesa16,v 1.8 2002/09/27 02:45:37 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)
81 math/m_debug_vertex.c \
82 math/m_debug_xform.c \
89 array_cache/ac_context.c \
90 array_cache/ac_import.c \
92 swrast/s_aatriangle.c \
103 swrast/s_feedback.c \
105 swrast/s_histogram.c \
110 swrast/s_pixeltex.c \
116 swrast/s_texstore.c \
117 swrast/s_triangle.c \
119 swrast_setup/ss_context.c \
120 swrast_setup/ss_triangle.c \
121 swrast_setup/ss_vb.c \
123 tnl/t_array_import.c \
149 OBJECTS = $(ASM_SOURCES:.S=.o) \
150 $(CORE_SOURCES:.c=.o) \
158 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
161 $(CC) -c -I. $(CFLAGS) $< -o $@
164 OSmesa/osmesa.o: OSmesa/osmesa.c
165 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
168 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
169 X86/common_x86.o: X86/common_x86.c
170 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
171 X86/common_x86_asm.o: X86/common_x86_asm.S X86/matypes.h
172 X86/3dnow.o: X86/3dnow.c
173 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
175 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
176 X86/matypes.h: mtypes.h tnl/t_context.h X86/gen_matypes.c
177 $(CC) -I. -I$(INCDIR) $(CFLAGS) X86/gen_matypes.c -o X86/gen_matypes
178 ./X86/gen_matypes > X86/matypes.h
179 rm -f X86/gen_matypes X86/*.o
181 $(ASM_SOURCES): X86/matypes.h
188 # @echo "Specify a target configuration"
191 -rm *.o *~ */*.o */*~ *.lo *.la
194 targets: $(LIBDIR)/$(OSMESA16_LIB)
196 # Make the 16-bit/channel OSMesa library
197 $(LIBDIR)/$(OSMESA16_LIB): $(OBJECTS)
198 $(MAKELIB) $(OSMESA16_LIB) $(GL_MAJOR) $(GL_MINOR) $(GL_TINY) $(OBJECTS)
199 rm -f $(LIBDIR)/$(OSMESA16_LIB)*
200 mv $(OSMESA16_LIB)* $(LIBDIR)
203 include ../Make-config
210 # Run 'make dep' to update the dependencies if you change what's included
211 # by any source file.
214 makedepend -fdepend -Y -I../include $(CORE_SOURCES)
217 etags `find . -name \*.[ch]` `find ../include`