blob: 835f6eb7d2bee9b356efa71b2a9386734315b077 [file] [log] [blame]
Alex Neundorfcae5b7f2007-10-24 16:31:22 -06001# Configuration for building only libOSMesa on Cray Xt3
2# for the compute nodes running Catamount using the
3# Portland Group compiler. The Portland Group toolchain has to be
4# enabled before using "module switch PrgEnv-gnu PrgEnv-pgi" .
5# This doesn't really have a lot of dependencies, so it should be usable
6# on other similar systems too.
7# It uses static linking and disables multithreading.
8
9include $(TOP)/configs/default
10
11CONFIG_NAME = catamount-osmesa-pgi
12
13# Compiler and flags
14CC = cc
15CXX = CC
16CFLAGS = -target=catamount -fastsse -O3 -Mnontemporal -Mprefetch=distance:8,nta -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
17CXXFLAGS = -target=catamount -fastsse -O3 -Mnontemporal -Mprefetch=distance:8,nta -fPIC -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE
18
19MKLIB_OPTIONS = -static
20
21OSMESA_LIB_NAME = libOSMesa.a
22
23# Directories
24SRC_DIRS = mesa glu
25DRIVER_DIRS = osmesa
26PROGRAM_DIRS = osdemos
27
28
29# Dependencies
30OSMESA_LIB_DEPS = -lm
31GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB)
32APP_LIB_DEPS = -lOSMesa -lGLU -lm