Brian Paul | 27908d2 | 2006-07-07 14:32:47 +0000 | [diff] [blame] | 1 | # Configuration for building only libOSMesa on Linux, no Xlib driver |
Brian Paul | f385cf1 | 2006-07-04 16:49:41 +0000 | [diff] [blame] | 2 | # This doesn't really have any Linux dependencies, so it should be usable |
| 3 | # on other (gcc-based) systems. |
| 4 | |
| 5 | include $(TOP)/configs/default |
| 6 | |
| 7 | CONFIG_NAME = linux-osmesa |
| 8 | |
| 9 | # Compiler and flags |
| 10 | CC = gcc |
| 11 | CXX = g++ |
| 12 | CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS |
| 13 | CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE |
| 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 | f385cf1 | 2006-07-04 16:49:41 +0000 | [diff] [blame] | 18 | |
| 19 | # Directories |
José Fonseca | 6acd63a | 2008-02-15 17:50:12 +0900 | [diff] [blame] | 20 | SRC_DIRS = gallium mesa glu |
Brian Paul | f385cf1 | 2006-07-04 16:49:41 +0000 | [diff] [blame] | 21 | DRIVER_DIRS = osmesa |
| 22 | PROGRAM_DIRS = osdemos |
| 23 | |
| 24 | |
| 25 | # Dependencies |
| 26 | OSMESA_LIB_DEPS = -lm -lpthread |
Brian Paul | 883f989 | 2006-07-13 02:50:27 +0000 | [diff] [blame] | 27 | GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB) |
Dan Nicholson | f1efacb | 2007-12-05 20:34:59 -0800 | [diff] [blame] | 28 | APP_LIB_DEPS = -lm -lpthread |