|
|
[ÇóÖú]
ÇëÎÊÕâ¸ö³ÌÐòÔõôÑù±àÒëѽ£¿
ÎÒÏëÓÃubuntu»·¾³£¬ÕâÀïÊDZàÒëµÄ˵Ã÷
![ÇëÎÊÕâ¸ö³ÌÐòÔõôÑù±àÒëѽ£¿]()
ÕâÊÇmakefileµÄÇ°ÃæÒ»Ð©ÐÐ
# To build:
# make <target>
# Use the 'lib' target first to build the library, then either the Lua
# or Python targets are 'S4lua' and 'python_ext', respectively.
# Set these to the flags needed to link against BLAS and Lapack.
# If left blank, then performance may be very poor.
# On Mac OS,
# BLAS_LIB = -framework vecLib
# LAPACK_LIB = -framework vecLib
# On Debian, with reference BLAS and Lapack (slow)
# BLAS_LIB = -lblas
# LAPACK_LIB = -llapack
BLAS_LIB = -lblas
LAPACK_LIB = -llapack
# Specify the flags for Lua headers and libraries (only needed for Lua frontend)
# Recommended: build lua in the current directory, and link against this local version
# LUA_INC = -I./lua-5.2.4/install/include
# LUA_LIB = -L./lua-5.2.4/install/lib -llua -ldl -lm
LUA_INC = -I./lua-5.2.4/install/include
LUA_LIB = -L./lua-5.2.4/install/lib -llua -ldl -lm
# OPTIONAL
# Typically if installed,
# FFTW3_INC can be left empty
# FFTW3_LIB = -lfftw3
FFTW3_INC =
FFTW3_LIB =
# Typically,
# PTHREAD_INC = -DHAVE_UNISTD_H
# PTHREAD_LIB = -lpthread
PTHREAD_INC = -DHAVE_UNISTD_H
PTHREAD_LIB = -lpthread
# OPTIONAL
# Typically if installed,
#CHOLMOD_INC = -I/usr/include/suitesparse
#CHOLMOD_LIB = -lcholmod -lamd -lcolamd -lcamd -lccolamd
CHOLMOD_INC =
CHOLMOD_LIB =
# Specify the MPI library
#MPI_INC =
#MPI_LIB =
MPI_INC =
MPI_LIB =
# Specify custom compilers if needed
CXX = g++
CC = gcc
#CFLAGS += -O3 -fPIC
CFLAGS = -O3 -msse3 -msse2 -msse -fPIC
# options for Sampler module
OPTFLAGS = -O3
OBJDIR = ./build
S4_BINNAME = $(OBJDIR)/S4
S4_LIBNAME = $(OBJDIR)/libS4.a
S4r_LIBNAME = $(OBJDIR)/libS4r.a
ÇëÎÊÎÒÐèÒªÔõôÑùÐÞ¸ÄÕâ¸ömakefileÎļþ²ÅÄܱàÒëÍê³É¡£ÎÒ´òËãÓÃpythonǰ¶Ë£¬²»Ê¹ÓÃluaǰ¶Ë¡£
»¹ÓУ¬ubuntuÒªÏÈ×öÄÄЩÅäÖã¿
±¾ÈËȷʵ²»Ì«¶®Õâ·½ÃæÄÚÈÝ¡£Õâ¸ö³ÌÐòÌṩÁËһЩÀý×Ó£¬ÎÒÏë¸ÄÒ»ÏÂËüµÄһЩÀý×ÓÔËÐС£ |
|