1 # Makefile for building the OSMesa library with deep color channel support.
2 # This is a bit different from the normal libOSMesa.so library in that
3 # the libs made here will contain a full Mesa implementation (i.e. the
4 # OSMesa lib won't piggyback on libGL.so)
13 GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)
15 OSMESA_LIB_NAME = "OSMesa16" # may be overridden in Make-config
23 # This will probably get set to $(X86_SOURCES) in Make-config:
26 # All the sources we care about:
30 $(OSMESA_DRIVER_SOURCES)
33 ASM_OBJECTS = $(ASM_SOURCES:.S=.o)
35 OSMESA_OBJECTS = $(OSMESA_DRIVER_SOURCES:.c=.o)
37 # All the objects we want to make:
48 $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
51 $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
59 @echo "Specify a target configuration"
62 targets: $(LIBDIR)/$(OSMESA_LIB)
65 # Make the 16-bit/channel or 32-bit/channel OSMesa library
66 $(LIBDIR)/$(OSMESA_LIB): $(OBJECTS)
67 $(TOP)/bin/mklib $(MAKELIB_FLAGS) -o $(OSMESA_LIB_NAME) \
68 -major $(MESA_MAJOR) -minor $(MESA_MINOR) -patch $(MESA_TINY) \
69 -install $(LIBDIR) $(GL_LIB_DEPS) $(OBJECTS)
72 # Run 'make dep' to update the dependencies if you change what's included
75 makedepend -fdepend -Y $(INCLUDE_DIRS) $(SOURCES)
79 include $(TOP)/Make-config