requirements-gcc 5.49 KB
Newer Older
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
1 2 3 4 5 6 7 8 9 10 11 12
package CAPTAINFLAM

#compiler options
macro cppflags " -O2 -pipe -ansi -Woverloaded-virtual "
macro cflags  " -O2  -fopenmp "

#CLASS
macro_append cflags  " -DHYREC "
macro_append CAPTAINFLAM_linkopts "  -fopenmp -lm"

#CAMEL includes
include_dirs " ../src"
13
include_dirs "../src/camel"
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
include_dirs "../src/Minuit2-5.28.00/src"
include_dirs "../src/Minuit2-5.28.00/inc"
include_dirs "../src/class/include"
include_dirs  "../src/class/hyrec"
include_dirs  "../src/cxxsupport"
include_dirs  "../src/AbsRand"

#cfitio
include_dirs "" \
	ccali-sl6	"$(HL2_USR_LOCAL)/cfitsio"
macro_append CAPTAINFLAM_linkopts " -lcfitsio" \
	ccali-sl6	" $(HL2_USR_LOCAL)/cfitsio/libcfitsio.a "

#lapack/cblas
macro_append cppflags ' -DJLA '
include_dirs  "/usr/include/atlas"
macro_append  CAPTAINFLAM_linkopts " -L/usr/lib64/atlas -lcblas -llapack -ljla "

#CLIK
macro CLIKDIR "/home/plaszczy/planck/plc_2.1/plc-2.1b1"
include_dirs  "$(CLIKDIR)/include"
include_dirs  "$(CLIKDIR)/src"
macro_append cflags " -DCLIK ${CLIKCFLAGS}"
macro_append cppflags " -DCLIK ${CLIKCFLAGS}"
macro_append  CAPTAINFLAM_linkopts " -L$(CLIKDIR)/lib -lclik "
path_append LD_LIBRARY_PATH "$(CLIKDIR)/lib"
40 41 42 43
#application clik_example_C -group=test -s=../src/camel test/clik_example_c.c
#application clik_example_CC -group=test -s=../src/camel test/clik_example_c.cc
application test_clik -group=test -s=../src/camel test/test_clik.cc
application test_lensing -group=test -s=../src/camel test/test_lensing.cc
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
44 45 46 47 48 49 50 51 52 53 54 55



#CAMEL LIBRARIES
library Minuit -no_share ../src/Minuit2-5.28.00/src/*.cxx
library Class -no_share ../src/class/source/*.c ../src/class/tools/*.c ../src/class/hyrec/*.c  -x=source/trg.c
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


macro tocompile "CMB/*.cc BAO/*.cc Lensing/*.cc pico/*.cc JLA/*.cc Class/*.cc Constraints/*.cc"
56
library MinuitFit  -no_share -s=../src/camel *.cc $(tocompile)
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
57

58
library MCMC  -no_share  -s=../src/camel/MCMC *.cc
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
59 60 61 62 63 64

macro CAPTAINFLAM_linkopts "-L$(CAPTAINFLAM_root)/${CMTCONFIG} -lMinuitFit -lMinuit -lMCMC -lCLHEP -lClass -lAbsRand -lUtil "
macro_append cppflags ' -DPARFILE=\"$(CAMELROOT)/par\" '


#JLA
65 66 67 68
include_dirs  "../src/camel/JLA"
include_dirs  "../src/camel/JLA/jla_likelihood_v3/src"
library jla  -no_share ../src/camel/JLA/jla_likelihood_v3/src/ini.c ../src/camel/JLA/jla_likelihood_v3/src/jla.cc
application test_jla -group=test -s=../src/camel test/test_jla.cc
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
69 70 71 72 73 74 75

# PICO
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 CAPTAINFLAM_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=\"/home/plaszczy/softs/pypico-3.2.0/pico3_tailmonty_v33.dat\" '
76
application testPico -group=test -s=../src/camel/pico/exec testPico.cc
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
77 78 79 80 81 82 83 84 85


#CAMEL applications
# pour relinker si changement: toutes les application du package
macro CAPTAINFLAM_stamps $(PACKAGE_ROOT)/$(CMTCONFIG)/MinuitFit.stamp
macro application_suffix ""

#groupe exec
# dependencies 
86 87 88 89 90 91 92 93 94 95 96
application Minimize -group=exec -s=../src/camel exec/Minimize.cc
application FitClassFromPico -group=exec -s=../src/camel exec/FitClassFromPico.cc
application ScanParam -group=exec -s=../src/camel exec/ScanParam.cc
application ScanParamTwice -group=exec -s=../src/camel exec/ScanParamTwice.cc
#application ScanParamAndRandom -group=exec -s=../src/camel exec/ScanParamAndRandom.cc
application ScanParam2D -group=exec -s=../src/camel exec/ScanParam2D.cc
#application ScanRandomParams -group=exec -s=../src/camel exec/ScanRandomParams.cc
application writeChi2 -group=exec -s=../src/camel exec/writeChi2.cc
application writeSpectra -group=exec -s=../src/camel exec/writeSpectra.cc
application genegauss -group=exec -s=../src/camel exec/genegauss.cc
application AddForegrounds  -group=exec -s=../src/camel exec/AddForegrounds.cc
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
97 98

#MCMC
99
application mcmc -group=exec -s=../src/camel/MCMC exec/mainMCMC.cc
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
100 101 102

#tests
application class -group=test ../src/class/main/class.c
103 104 105 106
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
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133

#FI
application fitFI -group=FI -s=../src/FI *.cc exec/fitFI.cc
application fitcl_txt -group=FI -s=../src/FI *.cc exec/fitcl_txt.cc


#lIST OF ALL DEPENDENCIES
macro_append Minimize_dependencies " MinuitFit "
macro_append FitClassFromPico_dependencies " MinuitFit "
macro_append ScanParam_dependencies " MinuitFit "
macro_append ScanParamTwice_dependencies " MinuitFit "
macro_append ScanParam2D_dependencies " MinuitFit "
macro_append writeChi2_dependencies " MinuitFit "
macro_append writeSpectra_dependencies " MinuitFit "
macro_append genegauss_dependencies " MinuitFit "
macro_append AddForegrounds_dependencies " MinuitFit "
macro_append mcmc_dependencies " MinuitFit MCMC"
macro_append class_dependencies " MinuitFit Class"
macro_append testKlass_dependencies " MinuitFit Class"
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 "