Brian | 2457f4c | 2007-08-02 14:22:02 -0600 | [diff] [blame] | 1 | # 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 | |
| 6 | include $(TOP)/configs/default |
| 7 | |
| 8 | CONFIG_NAME = bluegene-osmesa |
| 9 | |
| 10 | # Compiler and flags |
| 11 | CC = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-gcc |
| 12 | CXX = /bgl/BlueLight/ppcfloor/blrts-gnu/bin/powerpc-bgl-blrts-gnu-g++ |
| 13 | CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE |
| 14 | CXXFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURC |
| 15 | |
Dan Nicholson | 01b18ab | 2007-11-01 06:01:53 -0700 | [diff] [blame^] | 16 | # Work around aliasing bugs - developers should comment this out |
| 17 | CFLAGS += -fno-strict-aliasing |
| 18 | CXXFLAGS += -fno-strict-aliasing |
| 19 | |
Brian | 2457f4c | 2007-08-02 14:22:02 -0600 | [diff] [blame] | 20 | MKLIB_OPTIONS = -static |
| 21 | |
Brian | 23f71f2 | 2007-08-03 10:08:39 -0600 | [diff] [blame] | 22 | OSMESA_LIB_NAME = libOSMesa.a |
| 23 | |
Brian | 2457f4c | 2007-08-02 14:22:02 -0600 | [diff] [blame] | 24 | # Directories |
| 25 | SRC_DIRS = mesa glu |
| 26 | DRIVER_DIRS = osmesa |
| 27 | PROGRAM_DIRS = osdemos |
| 28 | |
| 29 | |
| 30 | # Dependencies |
| 31 | OSMESA_LIB_DEPS = -lm |
| 32 | GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(OSMESA_LIB) |
Brian | 0029429 | 2007-08-03 07:24:11 -0600 | [diff] [blame] | 33 | APP_LIB_DEPS = -lOSMesa -lGLU -lm |