Brian Paul | cb32dcf | 2006-04-13 02:59:29 +0000 | [diff] [blame] | 1 | # Configuration for Darwin / MacOS X, making dynamic libs |
| 2 | |
| 3 | include $(TOP)/configs/default |
| 4 | |
| 5 | CONFIG_NAME = darwin |
| 6 | |
| 7 | # Compiler and flags |
| 8 | CC = cc |
| 9 | CXX = cc |
| 10 | CFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \ |
| 11 | -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin |
| 12 | CXXFLAGS = -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \ |
| 13 | -I/usr/X11R6/include -O3 -fPIC -fno-common -ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic -Ddarwin |
| 14 | |
Brian Paul | 6bef5e7 | 2006-04-14 14:13:00 +0000 | [diff] [blame] | 15 | MKLIB_OPTIONS = -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk" |
Brian Paul | cb32dcf | 2006-04-13 02:59:29 +0000 | [diff] [blame] | 16 | |
| 17 | # Library names (actual file names) |
| 18 | GL_LIB_NAME = libGL.dylib |
| 19 | GLU_LIB_NAME = libGLU.dylib |
| 20 | GLUT_LIB_NAME = libglut.dylib |
| 21 | GLW_LIB_NAME = libGLw.dylib |
| 22 | OSMESA_LIB_NAME = libOSMesa.dylib |
| 23 | |
| 24 | GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread |
Brian Paul | 883f989 | 2006-07-13 02:50:27 +0000 | [diff] [blame] | 25 | OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL |
| 26 | GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL |
| 27 | GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXmu -lXi -lXext |
Brian Paul | cb32dcf | 2006-04-13 02:59:29 +0000 | [diff] [blame] | 28 | GLW_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXt $(TOP)/lib/GL.dylib |
| 29 | APP_LIB_DEPS = -L$(TOP)/lib -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -L/usr/X11R6/lib -lX11 -lXmu -lXt -lXi -lm |
| 30 | |
| 31 | # omit glw lib for now: |
José Fonseca | 57d0001 | 2009-01-23 12:32:35 +0000 | [diff] [blame] | 32 | SRC_DIRS = gallium mesa glu glut/glx glew |
Brian Paul | cb32dcf | 2006-04-13 02:59:29 +0000 | [diff] [blame] | 33 | |