# License and copyright goes here


# This file contains the Mac OS X specific macros
#
# This is included by platform.mk



CFLAGS += -fPIC
#CFLAGS += -D__APPLE__    # the compiler already does this for us
#CFLAGS += -arch i386 -arch x86_64 -mmacosx-version-min=10.5

ifdef DEBUG
CFLAGS += -g -W
else
CFLAGS += -O3 -funroll-loops
#helpful? -funroll-loops -fomit-frame-pointer 
#unhelpful? -march=pentium4 -ffast-math -msse -mfpmath=sse -msse2
endif

ifdef PROFILE
# On OS X, use "Shark", not gprof, so don't bother with -pg
#CFLAGS += -pg
#LDFLAGS += -pg
CFLAGS += -g
STRIP_BINARY := touch
endif

# ? -fno-common

#LDFLAGS += -arch x86_64
SHLIBEXT := .dylib
SHLIB_LDFLAGS := -dynamiclib 
#SHLIB_LDFLAGS += -arch x86_64
# -m64

QT_INCLUDE += -I/Library/Frameworks/QtGui.framework/Headers
QT_INCLUDE += -I/Library/Frameworks/QtOpenGL.framework/Headers
#QT_INCLUDE := -FQtGui.framework
#QT_INCLUDE += -FQtOpenGL.framework
LINK_QT += /Library/Frameworks/QtGui.framework/QtGui
LINK_QT += /Library/Frameworks/QtOpenGL.framework/QtOpenGL
LINK_QT += /Library/Frameworks/QtCore.framework/QtCore

OPENGL_INCLUDE := 
LINK_OPENGL := -L/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/ -lGL

# License and copyright goes here


# This file contains the Mac OS X specific macros
#
# This is included by platform.mk



CFLAGS += -fPIC
#CFLAGS += -D__APPLE__    # the compiler already does this for us
#CFLAGS += -arch i386 -arch x86_64 -mmacosx-version-min=10.5

ifdef DEBUG
CFLAGS += -g -W
else
CFLAGS += -O3 -funroll-loops
#helpful? -funroll-loops -fomit-frame-pointer 
#unhelpful? -march=pentium4 -ffast-math -msse -mfpmath=sse -msse2
endif

ifdef PROFILE
# On OS X, use "Shark", not gprof, so don't bother with -pg
#CFLAGS += -pg
#LDFLAGS += -pg
CFLAGS += -g
STRIP_BINARY := touch
endif

# ? -fno-common

#LDFLAGS += -arch x86_64
SHLIBEXT := .dylib
SHLIB_LDFLAGS := -dynamiclib 
#SHLIB_LDFLAGS += -arch x86_64
# -m64

QT_INCLUDE += -I/Library/Frameworks/QtGui.framework/Headers
QT_INCLUDE += -I/Library/Frameworks/QtOpenGL.framework/Headers
LINK_QT += -framework QtGui -framework QtOpenGL -framework QtCore

OPENGL_INCLUDE := 
LINK_OPENGL := -framework OpenGL

Use the -framework line properly when linking.
Use the -framework line properly when linking.


git-svn-id: c3edda122e248ef33995da003806c930f62b9468@356 31904243-a364-42ac-a3db-9305396518ba
