requirements-gcc 4.6 KB
Newer Older
1 2
package CAMEL

3
use class HEAD
4 5

#compiler options
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
6
#default is gcc here are the C++ compiler options
Plaszczynski Stephane's avatar
gcc dev  
Plaszczynski Stephane committed
7 8 9 10 11 12
macro cppflags " -O3  -pipe -ansi -Woverloaded-virtual -Wpedantic -Wunused -Wmaybe-uninitialized -Wno-deprecated -Wno-div-by-zero "

# although it may be strange we do not compile CAMEL with OMP because CLASS is not thread safe
# no worries: CLASS is compiled with OMP
#macro_append cppflags "-fopenmp "
#macro_append cpplinkflags  " -fopenmp "
13 14 15 16


#CAMEL includes
include_dirs " ../src"
17
include_dirs "../src/camel"
18 19 20 21
include_dirs "../src/Minuit2-5.28.00/src"
include_dirs "../src/Minuit2-5.28.00/inc"
include_dirs  "../src/cxxsupport"
include_dirs  "../src/AbsRand"
22 23
include_dirs  "../src/camel/JLA"
include_dirs  "../src/camel/JLA/jla_likelihood_v3/src"
24 25 26


#cfitsio
27 28
include_dirs "$(CLIKDIR)/include"
macro_append  CAMEL_linkopts " -L$(CLIKDIR) -lcfitsio"
29

Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
30
#JLA :requires cblas/lapack
31 32 33
macro_append cppflags ' -DJLA '
include_dirs  "/usr/include/atlas"
macro_append  CAMEL_linkopts " -L/usr/lib64/atlas -lcblas -llapack -ljla "
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
34
application test_jla -group=test -s=../src/camel test/test_jla.cc
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49


#PLANCK
macro_append cppflags " -DCLIK  $(CLIKCFLAGS)"
macro_append cflags " -DCLIK  $(CLIKCFLAGS)"
macro_append  CAMEL_linkopts " $(CLIKLIBS) "

#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"


Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
50
# PICO 
51 52
macro_append cppflags " -DPICO $(PICOINC) "
macro_append CAMEL_linkopts " -L$(PICO_CODE) -lpico -lpython2.7 "
Plaszczynski Stephane's avatar
comment  
Plaszczynski Stephane committed
53 54
# the previous line should be sufficient otherwise try the PICOLIBS 
# (set in camel_setup.sh)
55
#macro_append CAMEL_linkopts " $(PICOLIBS)"
56
macro_append cppflags ' -DPICODATA=\"$(PICO_DATA)\" '
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
57
application testPico -group=test -s=../src/camel/pico/exec testPico.cc
58

Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
59
###FROM THERE YOU DONT NEED TO TOUCH
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
60
###########################################################################################
61 62 63 64 65
#CAMEL LIBRARIES
library Minuit -no_share ../src/Minuit2-5.28.00/src/*.cxx
library Util -no_share -x=ddl.cc ../src/cxxsupport/*.cc
library AbsRand -no_share ../src/AbsRand/*.cc
library CLHEP -no_share ../src/CLHEP/src/*.cc
66
library jla  -no_share ../src/camel/JLA/jla_likelihood_v3/src/ini.c ../src/camel/JLA/jla_likelihood_v3/src/jla.cc
67 68

macro camelsrc "*.cc CMB/*.cc BAO/*.cc Lensing/*.cc pico/*.cc JLA/*.cc Class/*.cc Constraints/*.cc"
69 70
library MinuitFit  -no_share -s=../src/camel $(camelsrc)
library MCMC  -no_share  -s=../src/camel/MCMC *.cc
71 72

macro CAMEL_linkopts "-L$(CAMEL_root)/${CMTCONFIG} -lMinuitFit -lMinuit -lMCMC -lCLHEP -lAbsRand -lUtil "
73
macro_append cppflags ' -DRELPATH=\"$(CAMELROOT)/lik\" '
74 75 76 77


#CAMEL applications
# pour relinker si changement: toutes les application du package
78
macro CAMEL_stamps " $(PACKAGE_ROOT)/$(CMTCONFIG)/MinuitFit.stamp $(PACKAGE_ROOT)/$(CMTCONFIG)/MCMC.stamp "
79 80 81
macro application_suffix ""

#groupe exec
82 83
application writeChi2 -group=exec -s=../src/camel exec/writeChi2.cc
application writeSpectra -group=exec -s=../src/camel exec/writeSpectra.cc
84
application writeSpectraPk -group=exec -s=../src/camel exec/writeSpectraPk.cc
85
application Minimize -group=exec -s=../src/camel exec/Minimize.cc
Sophie Henrot-Versille's avatar
Sophie Henrot-Versille committed
86
application Profile -group=exec -s=../src/camel exec/Profile.cc
87 88
application ScanParam -group=exec -s=../src/camel exec/ScanParam.cc
application mcmc -group=exec -s=../src/camel/MCMC exec/mainMCMC.cc
89 90

#tests
91 92 93 94
application testKlass -group=test -s=../src/camel test/testKlass.cc
application testCLHEP -group=test -s=../src/camel/test testCLHEP.cc
application testBAO -group=test -s=../src/camel/test testBAO.cc
application testHiLLiPOP -group=test -s=../src/camel/test testHiLLiPOP.cc
95 96
application dump_clik -group=test -s=../src/camel test/test_clik.cc
application dump_lensing -group=test -s=../src/camel test/test_lensing.cc
97 98 99

#lIST OF ALL DEPENDENCIES
macro_append Minimize_dependencies " MinuitFit "
Sophie Henrot-Versille's avatar
Sophie Henrot-Versille committed
100
macro_append Profile_dependencies " MinuitFit "
101 102 103
macro_append ScanParam_dependencies " MinuitFit "
macro_append writeChi2_dependencies " MinuitFit "
macro_append writeSpectra_dependencies " MinuitFit "
104
macro_append writeSpectraPkependencies " MinuitFit "
105 106
macro_append mcmc_dependencies " MinuitFit "
macro_append mcmc_dependencies " MCMC "
107 108 109 110 111 112 113 114 115 116
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 "