blob: b0c762de91c206054ae968d9ab8c7b55085ff6a4 [file] [log] [blame]
Brian58484dc2007-09-20 15:09:57 -06001# Configuration for building only libOSMesa on BlueGene using the IBM xlc compiler
2# This doesn't really have a lot of dependencies, so it should be usable
3# on similar 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 = /opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlc
12CXX = /opt/ibmcmp/vacpp/bg/8.0/bin/blrts_xlC
13CFLAGS = -O3 -pedantic -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
Brian6016de62007-09-20 18:42:47 -060014CXXFLAGS = -O3 -pedantic -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
Brian58484dc2007-09-20 15:09:57 -060015
16MKLIB_OPTIONS = -static
17
18OSMESA_LIB_NAME = libOSMesa.a
19
20# Directories
21SRC_DIRS = mesa glu
22DRIVER_DIRS = osmesa
23PROGRAM_DIRS = osdemos
24
25
26# Dependencies
27OSMESA_LIB_DEPS = -lm
28GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
29APP_LIB_DEPS = -lOSMesa -lGLU -lm