1 # $Id: Makefile.OSMesa16,v 1.4 2001/07/13 20:07:37 brianp Exp $
3 # Mesa 3-D graphics library
5 # Copyright (C) 1995-2001 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 \
111 swrast/s_pixeltex.c \
118 swrast/s_texstore.c \
119 swrast/s_triangle.c \
121 swrast_setup/ss_context.c \
122 swrast_setup/ss_triangle.c \
123 swrast_setup/ss_vb.c \
124 swrast_setup/ss_interp.c \
126 tnl/t_array_import.c \
152 OBJECTS = $(ASM_SOURCES:.S=.o) \
153 $(CORE_SOURCES:.c=.o) \
161 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
164 $(CC) -c -I. $(CFLAGS) $< -o $@
167 OSmesa/osmesa.o: OSmesa/osmesa.c
168 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
171 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
172 X86/common_x86.o: X86/common_x86.c
173 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
174 X86/common_x86_asm.o: X86/common_x86_asm.S X86/matypes.h
175 X86/3dnow.o: X86/3dnow.c
176 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
178 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
179 X86/matypes.h: mtypes.h tnl/t_context.h X86/gen_matypes.c
180 $(CC) -I. -I$(INCDIR) $(CFLAGS) X86/gen_matypes.c -o X86/gen_matypes
181 ./X86/gen_matypes > X86/matypes.h
182 rm -f X86/gen_matypes X86/*.o
184 $(ASM_SOURCES): X86/matypes.h
191 # @echo "Specify a target configuration"
194 -rm *.o *~ */*.o */*~ *.lo *.la
197 targets: $(LIBDIR)/$(OSMESA16_LIB)
199 # Make the 16-bit/channel OSMesa library
200 $(LIBDIR)/$(OSMESA16_LIB): $(OBJECTS)
201 $(MAKELIB) $(OSMESA16_LIB) $(GL_MAJOR) $(GL_MINOR) $(GL_TINY) $(OBJECTS)
202 rm -f $(LIBDIR)/$(OSMESA16_LIB)*
203 mv $(OSMESA16_LIB)* $(LIBDIR)
206 include ../Make-config
213 # Run 'make dep' to update the dependencies if you change what's included
214 # by any source file.
217 makedepend -fdepend -Y -I../include $(CORE_SOURCES)
220 etags `find . -name \*.[ch]` `find ../include`