fix max buffer size test (Kyle Bateman, bug 912828)
[mesa.git] / src / mesa / Makefile.OSMesa16
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)
5
6
7 ##### MACROS #####
8
9 TOP = ../..
10
11 GL_MAJOR = 1
12 GL_MINOR = 5
13 GL_TINY = 0$(MESA_MAJOR)0$(MESA_MINOR)0$(MESA_TINY)
14
15 OSMESA_LIB_NAME = "OSMesa16" # may be overridden in Make-config
16
17 LIBDIR = $(TOP)/lib
18
19
20 include sources
21
22
23 # This will probably get set to $(X86_SOURCES) in Make-config:
24 ASM_SOURCES =
25
26 # All the sources we care about:
27 SOURCES = \
28 $(CORE_SOURCES) \
29 $(ASM_SOURCES) \
30 $(OSMESA_DRIVER_SOURCES)
31
32
33 ASM_OBJECTS = $(ASM_SOURCES:.S=.o)
34
35 OSMESA_OBJECTS = $(OSMESA_DRIVER_SOURCES:.c=.o)
36
37 # All the objects we want to make:
38 OBJECTS = \
39 $(CORE_OBJECTS) \
40 $(ASM_OBJECTS) \
41 $(OSMESA_OBJECTS)
42
43
44
45 ##### RULES #####
46
47 .c.o:
48 $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
49
50 .S.o:
51 $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
52
53
54
55
56 ##### TARGETS #####
57
58 default:
59 @echo "Specify a target configuration"
60
61
62 targets: $(LIBDIR)/$(OSMESA_LIB)
63
64
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 $(MKLIB_OPTIONS) -install $(LIBDIR) $(GL_LIB_DEPS) $(OBJECTS)
70
71
72 # Run 'make dep' to update the dependencies if you change what's included
73 # by any source file.
74 dep: $(SOURCES)
75 makedepend -fdepend -Y $(INCLUDE_DIRS) $(SOURCES)
76
77
78
79 include $(TOP)/Make-config
80
81 include depend