-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
96 lines (95 loc) · 2.87 KB
/
Makefile
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
modname = 331v3 # as an example
PreDef = -DGENERATIONMIXING -DONLYDOUBLE
# setting various paths
InDir = ../include
Mdir = ${InDir}
VPATH = 3-Body-Decays:LoopDecays:TwoLoopMasses:Observables:SM
name = ../lib/libSPheno331v3.a
# check if SARAH module and SPheno are compatibel
minV=330.00
cVersion =$(shell expr $(version) \>= $(minV))
#
# options for various compilers
#
# Default Compiler
F90=gfortran
comp= -c -O -module ${Mdir} -I${InDir}
LFlagsB= -O
# Intels ifort,debug modus
ifeq (${F90},ifortg)
F90=ifort
comp= -c -g -module ${Mdir} -I${InDir}
LFlagsB= -g
endif
# gfortran
ifeq (${F90},gfortran)
comp= -c -g -ffree-line-length-none -J${Mdir} -I${InDir}
LFlagsB= -g
endif
# g95
ifeq (${F90},g95)
comp= -c -O -fmod=${Mdir} -I${InDir}
LFlagsB= -O
endif
# Lahey F95 compiler
ifeq (${F90},lf95)
comp=-c -O -M ${Mdir} -I${InDir}
LFlagsB=-O
endif
# NAG f95/2003
ifeq (${F90},nagfor)
comp= -c -O -mdir ${Mdir} -I${InDir}
LFlagsB= -O -DONLYDOUBLE -mdir ${MDir} -I${InDir}
endif
.SUFFIXES : .o .ps .f90 .F90 .a
bin/SPheno331v3:
ifeq (${cVersion},1)
cd ../src ; ${MAKE} F90=${F90}
${MAKE} F90=${F90} ${name}
${MAKE} F90=${F90} SPheno331v3.o
${F90} -o SPheno331v3 ${LFlagsB} SPheno331v3.o ../lib/libSPheno331v3.a ../lib/libSPheno.a
mv SPheno331v3 ../bin
rm SPheno331v3.o
${name}: ${name}(Settings.o) ${name}(Model_Data_331v3.o) \
${name}(RGEs_331v3.o) \
${name}(Couplings_331v3.o) ${name}(TreeLevelMasses_331v3.o) ${name}(TadpoleEquations_331v3.o) \
${name}(LoopCouplings_331v3.o) ${name}(CouplingsForDecays_331v3.o) \
${name}(TreeLevel_Decays_331v3.o) \
${name}(AddLoopFunctions.o) ${name}(Kinematics.o) \
${name}(2LPoleFunctions.o) ${name}(2LPole_331v3.o) \
${name}(LoopMasses_331v3.o) \
${name}(RGEs_SM_HC.o) ${name}(Couplings_SM_HC.o) ${name}(TreeLevelMasses_SM_HC.o) ${name}(LoopMasses_SM_HC.o) \
${name}(BranchingRatios_331v3.o) ${name}(HiggsCS_331v3.o) ${name}(RunSM_331v3.o) \
${name}(FlavorKit_LFV_331v3.o) ${name}(FlavorKit_QFV_331v3.o) ${name}(FlavorKit_Observables_331v3.o)\
${name}(LowEnergy_331v3.o) \
${name}(Boundaries_331v3.o) ${name}(InputOutput_331v3.o)
else
@echo -------------------------------------------------------------------
@echo ERROR:
@echo The installed SPheno is version not compatibel with this module
@echo Please, upgrade at least to SPheno version 3.3.0.
@echo The current SPheno version can be downloaded from
@echo http://www.hepforge.org/downloads/spheno
@echo -------------------------------------------------------------------
endif
clean:
rm -f *.o *~ */*.o */*~
cleanall:
rm -f bin/SPheno3 lib/*.a *~ */*.o */*~ include/*
#
# Suffix rules
#
.f90.a:
${F90} ${comp} $<
ar -ruc -U $@ $*.o
rm -f $*.o
.F90.a:
${F90} ${comp} ${PreDef} $<
ar -ruc -U $@ $*.o
rm -f $*.o
.f90.o:
${F90} ${comp} $<
.f90.ps:
a2ps -o $*.ps $<
.h.ps:
a2ps -o $*.ps $<