Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 1 | # Configuration for 16 bits/channel OSMesa library on Linux |
| 2 | |
| 3 | include $(TOP)/configs/default |
| 4 | |
| 5 | CONFIG_NAME = linux-osmesa16-static |
| 6 | |
| 7 | # Compiler and flags |
| 8 | CC = gcc |
| 9 | CXX = g++ |
| 10 | CFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DUSE_XSHM -DPTHREADS -I/usr/X11R6/include -DCHAN_BITS=16 -DDEFAULT_SOFTWARE_DEPTH_BITS=31 |
| 11 | CXXFLAGS = -O3 -ansi -pedantic -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE |
| 12 | MKLIB_OPTIONS = -static |
Dan Nicholson | c3b5ada | 2007-10-31 10:33:20 -0700 | [diff] [blame] | 13 | PIC_FLAGS = |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 14 | |
Dan Nicholson | 013dbcd | 2007-10-31 09:47:39 -0700 | [diff] [blame] | 15 | # Work around aliasing bugs - developers should comment this out |
| 16 | CFLAGS += -fno-strict-aliasing |
| 17 | CXXFLAGS += -fno-strict-aliasing |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 18 | |
| 19 | # Library names |
| 20 | OSMESA_LIB = OSMesa16 |
| 21 | OSMESA_LIB_NAME = libOSMesa16.a |
| 22 | |
| 23 | |
| 24 | # Directories |
José Fonseca | 6acd63a | 2008-02-15 17:50:12 +0900 | [diff] [blame] | 25 | SRC_DIRS = gallium mesa glu |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 26 | DRIVER_DIRS = osmesa |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 27 | |
| 28 | |
| 29 | # Dependencies |
| 30 | OSMESA_LIB_DEPS = -lm -lpthread |
Dan Nicholson | f1efacb | 2007-12-05 20:34:59 -0800 | [diff] [blame] | 31 | APP_LIB_DEPS = -lm -lpthread |