Commit a2ee0bfe authored by Plaszczynski Stephane's avatar Plaszczynski Stephane
Browse files

req for gcc when clik compiled with gfort/atlas- pico still hardcoded

parent 39de5b03
......@@ -4,10 +4,11 @@
export CLIKDIR
source $CLIKDIR/bin/
export CLIKCFLAGS=`$CLIKDIR/bin/clik-config --cflags`
export CLIKLIBS=$($CLIKDIR/bin/clik-config --libs | sed 's/,-Bdynamic-Wl//g')
CLIKCFLAGS=`$CLIKDIR/bin/clik-config --cflags`
CLIKLIBS=$($CLIKDIR/bin/clik-config --libs | sed 's/,-Bdynamic-Wl//g')
echo "Using Planck code from: $CLIKDIR"
package CAMEL
use class v2.4.3
#compiler options
#macro cpp "icpc"
#macro cppflags " -O2 -ip -ansi_alias -align -Wbrief "
macro cppflags " -O2 -pipe -ansi -Woverloaded-virtual "
macro cflags " -O2 -fopenmp "
#CAMEL includes
include_dirs " ../src"
include_dirs "../src/Main"
include_dirs "../src/Minuit2-5.28.00/src"
include_dirs "../src/Minuit2-5.28.00/inc"
include_dirs "../src/cxxsupport"
include_dirs "../src/AbsRand"
include_dirs "../src/Main/JLA"
include_dirs "../src/Main/JLA/jla_likelihood_v3/src"
#include_dirs "$(CLIKDIR)/include"
#macro_append CAMEL_linkopts " -lcfitsio "
#JLA :needs cblas/lapack
macro_append cppflags ' -DJLA '
#macro_append CAMEL_linkopts " -L$(MKLROOT)/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -ljla "
include_dirs "/usr/include/atlas"
macro_append CAMEL_linkopts " -L/usr/lib64/atlas -lcblas -llapack -ljla "
macro_append cppflags " -DCLIK $(CLIKCFLAGS)"
macro_append cflags " -DCLIK $(CLIKCFLAGS)"
macro_append CAMEL_linkopts " $(CLIKLIBS) "
macro_append CAMEL_linkopts "-L$(CLIKDIR)/lib -lcfitsio -lclik "
#include_dirs "$(CLIKDIR)/include"
#include_dirs "$(CLIKDIR)/src"
#macro_append cppflags " -DCLIK "
#macro_append cflags " -DCLIK "
#macro_append CAMEL_linkopts "-L$(CLIKDIR)/lib -lclik "
#path_append LD_LIBRARY_PATH "$(CLIKDIR)/lib"
# PICO #still hardcoded
include_dirs "/usr/include/python2.7"
include_dirs "/usr/lib64/python2.7/site-packages/numpy/core/include"
include_dirs "/home/plaszczy/.local/lib/python2.7/site-packages/pypico"
macro_append CAMEL_linkopts " -L/home/plaszczy/softs/pypico-3.2.0/build/temp.linux-x86_64-2.7 -lpico -L/usr/lib64/python2.7/config -lpython2.7 "
macro_append cppflags ' -DPICODATA=\"$(PICO_DATA)\" '
library Minuit -no_share ../src/Minuit2-5.28.00/src/*.cxx
library Util -no_share ../src/cxxsupport/*.cc
library AbsRand -no_share ../src/AbsRand/*.cc
library CLHEP -no_share ../src/CLHEP/src/*.cc
library jla -no_share ../src/Main/JLA/jla_likelihood_v3/src/ini.c ../src/Main/JLA/jla_likelihood_v3/src/
macro camelsrc "*.cc CMB/*.cc BAO/*.cc Lensing/*.cc pico/*.cc JLA/*.cc Class/*.cc Constraints/*.cc"
library MinuitFit -no_share -s=../src/Main $(camelsrc)
library MCMC -no_share -s=../src/Main/MCMC *.cc
macro CAMEL_linkopts "-L$(CAMEL_root)/${CMTCONFIG} -lMinuitFit -lMinuit -lMCMC -lCLHEP -lAbsRand -lUtil "
macro_append cppflags ' -DPARFILE=\"$(CAMELROOT)/par\" '
#CAMEL applications
# pour relinker si changement: toutes les application du package
macro CAMEL_stamps $(PACKAGE_ROOT)/$(CMTCONFIG)/MinuitFit.stamp
macro application_suffix ""
#groupe exec
application writeChi2 -group=exec -s=../src/Main exec/
application writeSpectra -group=exec -s=../src/Main exec/
application Minimize -group=exec -s=../src/Main exec/
application ScanParam -group=exec -s=../src/Main exec/
application mcmc -group=exec -s=../src/Main/MCMC exec/
application testKlass -group=test -s=../src/Main test/
application testCLHEP -group=test -s=../src/Main/test
application testBAO -group=test -s=../src/Main/test
application testHiLLiPOP -group=test -s=../src/Main/test
application test_clik -group=test -s=../src/Main test/
application test_lensing -group=test -s=../src/Main test/
application test_jla -group=test -s=../src/Main test/
application testPico -group=test -s=../src/Main/pico/exec
macro_append Minimize_dependencies " MinuitFit "
macro_append ScanParam_dependencies " MinuitFit "
macro_append writeChi2_dependencies " MinuitFit "
macro_append writeSpectra_dependencies " MinuitFit "
macro_append mcmc_dependencies " MinuitFit MCMC"
macro_append testKlass_dependencies " MinuitFit"
macro_append clik_example_CC_dependencies " MinuitFit "
macro_append test_clik_dependencies " MinuitFit "
macro_append test_lensing_dependencies " MinuitFit "
macro_append testCLHEP_dependencies " CLHEP "
macro_append testBAO_dependencies " MinuitFit "
macro_append testHiLLiPOP_dependencies " MinuitFit "
macro_append test_jla_dependencies " MinuitFit "
macro_append testPico_dependencies " MinuitFit "
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment