blob: d22454fa2d98906e9166285330cc7c77c7738575 [file] [log] [blame]
Brian2457f4c2007-08-02 14:22:02 -06001# Configuration for building only libOSMesa on BlueGene, no Xlib driver
2# This doesn't really have a lot of dependencies, so it should be usable
3# on other (gcc-based) systems too.
4# It uses static linking and disables multithreading.
5
6include $(TOP)/configs/default
7
8CONFIG_NAME = bluegene-osmesa
9
10# Compiler and flags
11CC = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-gcc
12CXX = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-g++
13CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
14CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURC
15
Dan Nicholson01b18ab2007-11-01 06:01:53 -070016# Work around aliasing bugs - developers should comment this out
17CFLAGS += -fno-strict-aliasing
18CXXFLAGS += -fno-strict-aliasing
19
Brian2457f4c2007-08-02 14:22:02 -060020MKLIB_OPTIONS = -static
21
Brian23f71f22007-08-03 10:08:39 -060022OSMESA_LIB_NAME = libOSMesa.a
23
Brian2457f4c2007-08-02 14:22:02 -060024# Directories
25SRC_DIRS = mesa glu
26DRIVER_DIRS = osmesa
27PROGRAM_DIRS = osdemos
28
29
30# Dependencies
31OSMESA_LIB_DEPS = -lm
32GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
Brian00294292007-08-03 07:24:11 -060033APP_LIB_DEPS = -lOSMesa -lGLU -lm