Skip to content

Instantly share code, notes, and snippets.

@alvesjnr
Created August 13, 2012 08:30
Show Gist options
  • Save alvesjnr/3338249 to your computer and use it in GitHub Desktop.
Save alvesjnr/3338249 to your computer and use it in GitHub Desktop.
# This Python script contains all the machine dependent settings
# needed during the build process under UBUNTU 9.04 32-bit.
# Compilers to be used.
cc = "gcc"
cxx = "g++"
f77 = "g77"
link = cxx
link_flags = ""
# 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 = "-DFORTRAN_SYMBOLS_WITH_SINGLE_TRAILING_UNDERSCORE -DNDEBUG "
flags_noopt = base_flags
flags = base_flags + "-O3 -march=pentium4 -g -funroll-loops"
fflags = flags + "-fPIC "
# Include directories.
include_dirs = ["/usr/include/python2.5","/usr/lib/python2.5/site-packages", "/usr/include/boost"]
# Library directories.
library_dirs = []
# Library names.
libs = ["libboost_python-py25", "blitz", "lapack"]
# Command to strip library of excess symbols:
dllsuffix = ".so"
strip_command = "strip --strip-unneeded camfr/_camfr" + dllsuffix
strip_command = ""
# 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