1 # $Id: Makefile.OSMesa16,v 1.11 2003/01/14 04:55:45 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)
85 math/m_debug_xform.c \
91 array_cache/ac_context.c \
92 array_cache/ac_import.c \
94 swrast/s_aatriangle.c \
105 swrast/s_feedback.c \
107 swrast/s_histogram.c \
112 swrast/s_nvfragprog.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 \
153 OBJECTS = $(ASM_SOURCES:.S=.o) \
154 $(CORE_SOURCES:.c=.o) \
162 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
165 $(CC) -c -I. $(CFLAGS) $< -o $@
168 OSmesa/osmesa.o: OSmesa/osmesa.c
169 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
172 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
173 X86/common_x86.o: X86/common_x86.c
174 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
175 X86/common_x86_asm.o: X86/common_x86_asm.S X86/matypes.h
176 X86/3dnow.o: X86/3dnow.c
177 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
179 $(CC) -c -I. -I$(INCDIR) $(CFLAGS) $< -o $@
180 X86/matypes.h: mtypes.h tnl/t_context.h X86/gen_matypes.c
181 $(CC) -I. -I$(INCDIR) $(CFLAGS) X86/gen_matypes.c -o X86/gen_matypes
182 ./X86/gen_matypes > X86/matypes.h
183 rm -f X86/gen_matypes X86/*.o
185 # We have X86/matypes.h depend on X86/matypes.h so that if ASM_SOURCES
186 # is empty we don't get an invalid Makefile.
187 $(ASM_SOURCES) X86/matypes.h: X86/matypes.h
193 # @echo "Specify a target configuration"
196 -rm -f *.o *~ */*.o */*~ *.lo *.la
199 targets: $(LIBDIR)/$(OSMESA16_LIB)
201 # Make the 16-bit/channel OSMesa library
202 $(LIBDIR)/$(OSMESA16_LIB): $(OBJECTS)
203 $(MAKELIB) $(OSMESA16_LIB) $(GL_MAJOR) $(GL_MINOR) $(GL_TINY) $(OBJECTS)
204 rm -f $(LIBDIR)/$(OSMESA16_LIB)*
205 mv $(OSMESA16_LIB)* $(LIBDIR)
208 include ../Make-config
215 # Run 'make dep' to update the dependencies if you change what's included
216 # by any source file.
219 makedepend -fdepend -Y -I../include $(CORE_SOURCES)
222 etags `find . -name \*.[ch]` `find ../include`