blob: 3015f5fcbb1ac00dd8c775d61b1a1f98320a1cd3 [file] [log] [blame]
Brian Paul27908d22006-07-07 14:32:47 +00001# Configuration for building only libOSMesa on Linux, no Xlib driver
Brian Paulf385cf12006-07-04 16:49:41 +00002# This doesn't really have any Linux dependencies, so it should be usable
3# on other (gcc-based) systems.
4
5include $(TOP)/configs/default
6
7CONFIG_NAME = linux-osmesa
8
9# Compiler and flags
10CC = gcc
11CXX = g++
Brian Pauleecd2a52010-04-27 17:06:17 -060012CFLAGS = -g -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS
Brian Paulf385cf12006-07-04 16:49:41 +000013CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
14
Dan Nicholson013dbcd2007-10-31 09:47:39 -070015# Work around aliasing bugs - developers should comment this out
16CFLAGS += -fno-strict-aliasing
17CXXFLAGS += -fno-strict-aliasing
Brian Paulf385cf12006-07-04 16:49:41 +000018
19# Directories
Brian Pauleecd2a52010-04-27 17:06:17 -060020SRC_DIRS = glsl mesa glu
Brian Paulf385cf12006-07-04 16:49:41 +000021DRIVER_DIRS = osmesa
22PROGRAM_DIRS = osdemos
23
24
25# Dependencies
Brian Pauleecd2a52010-04-27 17:06:17 -060026OSMESA_LIB_DEPS = -lm -lpthread -ldl
Brian Paul883f9892006-07-13 02:50:27 +000027GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
Dan Nicholsonf1efacb2007-12-05 20:34:59 -080028APP_LIB_DEPS = -lm -lpthread