mesa/configs/linux-osmesa

28 lines
874 B
Plaintext
Raw Normal View History

2006-07-07 15:32:47 +01:00
# Configuration for building only libOSMesa on Linux, no Xlib driver
2006-07-04 17:49:41 +01:00
# This doesn't really have any Linux dependencies, so it should be usable
# on other (gcc-based) systems.
include $(TOP)/configs/default
CONFIG_NAME = linux-osmesa
# Compiler and flags
CC = gcc
CXX = g++
2010-04-28 00:06:17 +01:00
CFLAGS = -g -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS
2006-07-04 17:49:41 +01:00
CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
# Work around aliasing bugs - developers should comment this out
CFLAGS += -fno-strict-aliasing
CXXFLAGS += -fno-strict-aliasing
2006-07-04 17:49:41 +01:00
# Directories
SRC_DIRS = mapi/glapi glsl mesa glu
2006-07-04 17:49:41 +01:00
DRIVER_DIRS = osmesa
# Dependencies
2010-04-28 00:06:17 +01:00
OSMESA_LIB_DEPS = -lm -lpthread -ldl
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
APP_LIB_DEPS = -lm -lpthread