# Configuration for building only libOSMesa on Cray
# for the compute nodes running Compute Node Linux

include $(TOP)/configs/default

CONFIG_NAME = craycle-osmesa-gnu

# Compiler and flags
CC = $(GCC_PATH)/bin/gcc
CXX = $(GCC_PATH)/bin/g++
CFLAGS = -O2 -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
CXXFLAGS = -O2 -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE

MKLIB_OPTIONS = -static

OSMESA_LIB_NAME = libOSMesa.a
GLU_LIB_NAME = libGLU.a

# Directories
SRC_DIRS = mesa glu
DRIVER_DIRS = osmesa
PROGRAM_DIRS =


# Dependencies
OSMESA_LIB_DEPS = -lm
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
APP_LIB_DEPS = -lOSMesa -lGLU -lm
