blob: 3d82e3040a4459d92aaa94fe835f4fda8e129aec [file] [log] [blame]
Brian Paulcb32dcf2006-04-13 02:59:29 +00001# Configuration for Darwin / MacOS X, making dynamic libs
2
3include $(TOP)/configs/default
4
5CONFIG_NAME = darwin
6
7# Compiler and flags
8CC = cc
9CXX = cc
10CFLAGS = -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
12CXXFLAGS = -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 Paul6bef5e72006-04-14 14:13:00 +000015MKLIB_OPTIONS = -archopt "-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
Brian Paulcb32dcf2006-04-13 02:59:29 +000016
17# Library names (actual file names)
18GL_LIB_NAME = libGL.dylib
19GLU_LIB_NAME = libGLU.dylib
20GLUT_LIB_NAME = libglut.dylib
21GLW_LIB_NAME = libGLw.dylib
22OSMESA_LIB_NAME = libOSMesa.dylib
23
24GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread
Brian Paul883f9892006-07-13 02:50:27 +000025OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL
26GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL
27GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -lGL -lGLU -L/usr/X11R6/lib -lX11 -lXmu -lXi -lXext
Brian Paulcb32dcf2006-04-13 02:59:29 +000028GLW_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXt $(TOP)/lib/GL.dylib
29APP_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é Fonseca57d00012009-01-23 12:32:35 +000032SRC_DIRS = gallium mesa glu glut/glx glew
Brian Paulcb32dcf2006-04-13 02:59:29 +000033