requirements-gcc 5.46 KB
Newer Older
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
1 2 3 4 5 6 7 8 9 10 11 12 13 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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 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
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"
include_dirs "../src/Main"
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"
#application clik_example_C -group=test -s=../src/Main test/clik_example_c.c
#application clik_example_CC -group=test -s=../src/Main test/clik_example_c.cc
application test_clik -group=test -s=../src/Main test/test_clik.cc
application test_lensing -group=test -s=../src/Main test/test_lensing.cc



#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"
library MinuitFit  -no_share -s=../src/Main *.cc $(tocompile)

library MCMC  -no_share  -s=../src/Main/MCMC *.cc

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


#JLA
include_dirs  "../src/Main/JLA"
include_dirs  "../src/Main/JLA/jla_likelihood_v3/src"
library jla  -no_share ../src/Main/JLA/jla_likelihood_v3/src/ini.c ../src/Main/JLA/jla_likelihood_v3/src/jla.cc
application test_jla -group=test -s=../src/Main test/test_jla.cc

# 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\" '
application testPico -group=test -s=../src/Main/pico/exec testPico.cc


#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 
application Minimize -group=exec -s=../src/Main exec/Minimize.cc
application FitClassFromPico -group=exec -s=../src/Main exec/FitClassFromPico.cc
application ScanParam -group=exec -s=../src/Main exec/ScanParam.cc
application ScanParamTwice -group=exec -s=../src/Main exec/ScanParamTwice.cc
#application ScanParamAndRandom -group=exec -s=../src/Main exec/ScanParamAndRandom.cc
application ScanParam2D -group=exec -s=../src/Main exec/ScanParam2D.cc
#application ScanRandomParams -group=exec -s=../src/Main exec/ScanRandomParams.cc
application writeChi2 -group=exec -s=../src/Main exec/writeChi2.cc
application writeSpectra -group=exec -s=../src/Main exec/writeSpectra.cc
application genegauss -group=exec -s=../src/Main exec/genegauss.cc
application AddForegrounds  -group=exec -s=../src/Main exec/AddForegrounds.cc

#MCMC
application mcmc -group=exec -s=../src/Main/MCMC exec/mainMCMC.cc

#tests
application class -group=test ../src/class/main/class.c
application testKlass -group=test -s=../src/Main test/testKlass.cc
application testCLHEP -group=test -s=../src/Main/test testCLHEP.cc
application testBAO -group=test -s=../src/Main/test testBAO.cc
application testHiLLiPOP -group=test -s=../src/Main/test testHiLLiPOP.cc

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