blob: ce4ac2de9c81f876056b93170c45c178da1f57e7 [file] [log] [blame]
Brian Paulf385cf12006-07-04 16:49:41 +00001# Configuration for building libGL and libOSMesa on Linux, no Xlib driver
2# 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++
12CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -DPTHREADS
13CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
14
15
16# Directories
17SRC_DIRS = mesa glu
18DRIVER_DIRS = osmesa
19PROGRAM_DIRS = osdemos
20
21
22# Dependencies
23OSMESA_LIB_DEPS = -lm -lpthread
24GLU_LIB_DEPS = -L$(LIB_DIR) -l$(OSMESA_LIB)
25APP_LIB_DEPS = -lOSMesa