Created
August 15, 2011 18:43
-
-
Save eyliu/1147406 to your computer and use it in GitHub Desktop.
Configuration for CAMFR on Mac OS X Lion (dependencies from Homebrew and SciPy Superpack)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This Python script contains all the machine dependent settings | |
# needed during the build process. | |
# Compilers to be used. | |
cc = "/usr/bin/gcc-4.2" | |
cxx = "/usr/bin/g++-4.2" | |
f77 = "/usr/local/bin/gfortran" | |
link = cxx | |
link_flags = " -undefined dynamic_lookup -dynamic"#-dynamic -single_module -undefined dynamic_lookup" | |
# Compiler flags. | |
# | |
# Note: for the Fortran name definition you can define one of the following | |
# preprocessor macros: | |
# | |
# FORTRAN_SYMBOLS_WITHOUT_TRAILING_UNDERSCORES | |
# FORTRAN_SYMBOLS_WITH_SINGLE_TRAILING_UNDERSCORE | |
# FORTRAN_SYMBOLS_WITH_DOUBLE_TRAILING_UNDERSCORES | |
base_flags = " -arch x86_64 -march=core2 -DFORTRAN_SYMBOLS_WITH_DOUBLE_TRAILING_UNDERSCORE -DNDEBUG" | |
flags_noopt = base_flags | |
fflags = base_flags + " -O2 -pipe -fomit-frame-pointer -funroll-loops -fstrict-aliasing -g -fPIC" | |
flags = fflags + " -ftemplate-depth-60" | |
# Include directories. | |
include_dirs = ["/usr/include/python2.7", | |
"/usr/local/include/boost", | |
"/usr/local/include/blitz", | |
"/Library/Python/2.7/site-packages"] | |
# "/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5", | |
# "/Users/bram/Documents/Work/Compilaties/BuildFolder/include/boost-1_33_1", | |
# "/Users/bram/Documents/Work/Compilaties/blitz-0.9", | |
# "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages" | |
library_dirs = ["/usr/lib","/usr/local/lib"] | |
# "/Users/bram/Documents/Work/Compilaties/blitz-0.9/lib/.libs", | |
# "/Users/bram/Documents/Work/Compilaties/BuildFolder/lib/libjuist", | |
# "/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A", | |
# "/usr/local/gfortran/lib" | |
#"/Users/bram/Documents/Work/Compilaties/gfortran"] | |
# Library names. | |
libs = ["boost_python-mt", "blitz", "lapack","blas","gfortran"] | |
# Command to strip library of excess symbols: | |
dllsuffix = ".so" | |
strip_command = ""#"strip --strip-unneeded camfr/_camfr" + dllsuffix | |
# Extra files to copy into installation directory. | |
extra_files = [("doc", ["docs/camfr.pdf"])] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment