Ticket #47903: patch-SuiteSparce_config_Mac.mk.diff

File patch-SuiteSparce_config_Mac.mk.diff, 2.0 KB (added by Schamschula (Marius Schamschula), 9 years ago)
  • SuiteSparse_config/SuiteSparse_config_Mac.mk

    old new  
    9595# LIB = -lm
    9696
    9797# For "make install"
    98 INSTALL_LIB = /usr/local/lib
    99 INSTALL_INCLUDE = /usr/local/include
     98INSTALL_LIB = @DESTROOT@@PREFIX@/lib
     99INSTALL_INCLUDE = @DESTROOT@@PREFIX@/include
    100100
    101101# Which version of MAKE you are using (default is "make")
    102102# MAKE = make
     
    119119# naming the BLAS and LAPACK library (*.a or *.so) files.
    120120
    121121# This is probably slow ... it might connect to the Standard Reference BLAS:
    122   BLAS = -lblas -lgfortran
    123   LAPACK = -llapack
     122#  BLAS = -lblas -lgfortran
     123#  LAPACK = -llapack
    124124
    125125# MKL
    126126# BLAS = -Wl,--start-group $(MKLROOT)/lib/intel64/libmkl_intel_lp64.a $(MKLROOT)/lib/intel64/libmkl_core.a $(MKLROOT)/lib/intel64/libmkl_intel_thread.a -Wl,--end-group -lpthread -lm
     
    212212# The path is relative to where it is used, in CHOLMOD/Lib, CHOLMOD/MATLAB, etc.
    213213# You may wish to use an absolute path.  METIS is optional.  Compile
    214214# CHOLMOD with -DNPARTITION if you do not wish to use METIS.
    215 METIS_PATH = ../../metis-4.0
    216 METIS = ../../metis-4.0/libmetis.a
     215METIS_PATH = @METIS_PATH@
     216METIS = @METIS@
    217217
    218218#------------------------------------------------------------------------------
    219219# UMFPACK configuration:
     
    273273# -DNSUNPERF        for Solaris only.  If defined, do not use the Sun
    274274#                   Performance Library
    275275
    276 CHOLMOD_CONFIG = $(GPU_CONFIG)
     276CHOLMOD_CONFIG = @CHOLMOD_CONFIG@
    277277
    278278# uncomment this line to compile CHOLMOD without METIS:
    279279# CHOLMOD_CONFIG = -DNPARTITION
     
    370370# on my MacBook Air, and they work fine.
    371371
    372372  F77 = gfortran
    373   CF = $(CFLAGS) -O3 -fno-common -fexceptions -DNTIMER
    374   BLAS = -framework Accelerate
    375   LAPACK = -framework Accelerate
     373  CF = @ARCHES@ $(CFLAGS) -O3 -fno-common -fexceptions -DNTIMER
     374  BLAS = @BLAS_LAPACK@
     375  LAPACK = @BLAS_LAPACK@
    376376  LIB = -lm
    377377
    378378#------------------------------------------------------------------------------