Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8308542
makefile
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
9 KB
Subscribers
None
makefile
View Options
###########################################################################
############################## USER EDITABLE ##############################
###########################################################################
#############################
# 1) Choose your compilers
#############################
compiler=g++
compilerf77=gfortran
# To Turn on VERBOSE mode uncomment the next line
#MODE=-DVERBOSE
#INSERT YOUR INSTALLATION PATHS NEXT for the libraries you want to include! (Leave blank if you do not want to use them)
##############################
## WARNING ## --> Be careful to REMOVE extra spaces after each path (hit enter)!
#############################
############################
# 2) Standard search Paths
############################
#Optionally add search paths here to include files and libraries
#Use format = -I/Incpath1 -I/Incpath2 etc...
SystemIncPath= -I/usr/local/include
#Use format = -L/libpath1 -L/libpath2 etc...
SystemLibPath= -L/usr/lib64
##################################
# 3) External HEP interfaces Paths
##################################
SuperisoPath=
#Example: /home/user1/local/src/superiso_v3.3
#Tested with superiso v3.3
Hdecaypath=
#/home/mops2/local_src/hdecay6-0-0
#/home/mops2/Work/Computational/ProgramsCodes/scanners/branches/Interfaces/InterfaceHdecay/hdecay
SusHiPath=
#/home/mops2/local_src/SusHi-1.1.0
#Example: /home/user1/local/src/SusHi-1.1.0
#Tested with SusHi-1.1.0
LHAPDFpath=
#/usr/local/
# Example: /usr/local/
HBPath=
#Example: /home/user1/local/src/HiggsBounds-4.0.0
#Compilation tested with HiggsBounds-4.0.0
HSPath=
#Example: /home/user1/local/src/HiggsSignals-1.0.0
#Compilation tested with HiggsSignals-1.0.0
# THIS IS NOT A PATH!
MicromegasOn=
#Set to non-empty string to activate. Example: ON
#Tested with Micromegas 2.4.5.
################################################
################################################
################################################
#### _______ _________ _______ _______ ####
#### ( ____ \\__ __/( ___ )( ____ ) ####
#### | ( \/ ) ( | ( ) || ( )| ####
#### | (_____ | | | | | || (____)| ####
#### (_____ ) | | | | | || _____) ####
#### )| | | | | | || ( ####
#### /\____) | | | | (___) || ) ####
#### \_______) )_( (_______)|/ ####
#### ####
################################################
################################################
################################################
############## DO NOT TOUCH BELOW ##############
################################################
################################################
WrapersSrc=ScannerScore/ExtInterfaces
TopDir=$(shell pwd)
ScannerSsrc=ScannerScore
ScannerSModelUtils=ScannerScore/ModelUtils
ifeq ($(MODE),-DDEBUG)
MODEDEBUG=-DVERBOSE
$(info VERBOSE ON IN DEBUG MODE )
endif
ifneq ($(SuperisoPath),)
objectsuperiso=$(WrapersSrc)/SuperisoWrap.o
linksuperiso=-lisospin
IvarSuperiso=-I$(SuperisoPath) -I$(SuperisoPath)/src
LvarSuperiso=-L$(SuperisoPath)/src
MODESUPERISO=-DSUPERISOMODE
$(info You have defined in the makefile the Superiso library path $(SuperisoPath) )
endif
ifneq ($(HBPath),)
linkHB=-lHB
IvarHB=-I$(HBPath)
LvarHB=-L$(HBPath)
MODEHB=-DHBMODE
$(info You have defined in the makefile the Higgs Bounds library path $(HBPath))
endif
ifneq ($(HSPath),)
linkHS=-lHS
IvarHS=-I$(HSPath)
LvarHS=-L$(HSPath)
MODEHS=-DHSMODE
$(info You have defined in the makefile the Higgs Signals library path $(HSPath))
endif
ifneq ($(SusHiPath),)
objectsushi=$(WrapersSrc)/SusHiWrap.o $(WrapersSrc)/SusHiWrapCppFuncs.o
linksushi=-lsushi -lshare
IvarSusHi=-I$(SusHiPath)/src
LvarSusHi=-L$(SusHiPath)/lib
MODESUSHI=-DSUSHIMODE
$(info You have defined in the makefile the SusHi library path $(SusHiPath))
endif
ifneq ($(Hdecaypath),)
objectshdecay=$(Hdecaypath)/dmb.o $(Hdecaypath)/feynhiggs.o $(Hdecaypath)/hgg.o $(Hdecaypath)/susylha.o $(Hdecaypath)/elw.o $(Hdecaypath)/haber.o $(Hdecaypath)/hgaga.o $(Hdecaypath)/hsqsq.o $(WrapersSrc)/HdecayWrap.o $(WrapersSrc)/HdecayWrapCppFuncs.o $(WrapersSrc)/hdecaycopy.o
MODEHDECAY=-DHDECAYMODE
$(info You have defined in the makefile the Hdecay source path $(Hdecaypath))
endif
ifneq ($(LHAPDFpath),)
linklhapdf=-lLHAPDF
IvarLHAPDF=-I$(LHAPDFpath)
LvarLHAPDF=-L$(LHAPDFpath)
$(info You have defined in the makefile the LHAPDF library path $(LHAPDFpath))
endif
##### MICROMEGAS ######
ifneq ($(MicromegasOn),)
ifneq ($(MAKECMDGOALS),clean)
AllFlags = ../CalcHEP_src/FlagsForMake
ifeq (,$(wildcard $(AllFlags) ))
$(error File $(AllFlags) is absent. Presumably you forgot to compile main code)
endif
include ../CalcHEP_src/FlagsForMake
endif
cLib = $(CALCHEP)/lib
SSS = ../sources/micromegas.a $(cLib)/dynamic_me.a work/work_aux.a $(wildcard lib/aLib.a) \
$(cLib)/sqme_aux.$(SO) $(cLib)/libSLHAplus.a \
../CalcHEP_src/lib/num_c.a ../CalcHEP_src/lib/serv.a $(LX11)
linkMicromegas=$(SSS) $(lDL)
MicromegasUser=$(CXXFLAGS)
objectsMicromegas=libsMicromegas
IvarMicromegas=-I../sources
MOclean1=$(MAKE) -C lib clean
MOclean2=$(MAKE) -C work clean
MOclean3=rm -fr calchep/tmp/* calchep/results/*
MOclean4=../sources/cleanexe
MODEMICROMEGAS=-DMICROMEGASMODE
$(info You have turned ON MicrOmegas.)
endif
##########
MODETOTAL=$(MODE) $(MODEDEBUG) $(MODESUPERISO) $(MODEHB) $(MODEHS) $(MODESUSHI) $(MODEMICROMEGAS) $(MODEHDECAY)
objects=$(ScannerSsrc)/ScannerSMain.o $(ScannerSsrc)/ScannerSModelclasses.o $(ScannerSsrc)/ScannerSTools.o $(ScannerSsrc)/ScannerSAux.o $(ScannerSsrc)/ScannerSUser.o $(ScannerSsrc)/ScannerSInterface.o $(ScannerSsrc)/ScannerSVerbose.o $(ScannerSsrc)/ScannerSEWPO.o $(ScannerSModelUtils)/ScannerS2HDM.o $(ScannerSsrc)/ScannerSAnalysisUtils.o $(objectsushi) $(objectsuperiso) $(objectshdecay)
Ivar=$(IvarSuperiso) $(IvarHB) $(IvarHS) $(IvarSusHi) $(IvarLHAPDF) $(SystemIncPath) $(IvarMicromegas)
LibVar=$(LvarSuperiso) $(LvarHB) $(LvarHS) $(LvarSusHi) $(LvarLHAPDF) $(SystemLibPath)
ScannerS: $(objects) $(objectsMicromegas)
$(compiler) $(Ivar) -o ScannerS $(objects) $(LibVar) -lgsl -lgslcblas $(linkMicromegas) $(linksushi) $(linklhapdf) $(linkHS) $(linkHB) -lgfortran $(linksuperiso)
$(ScannerSsrc)/ScannerSMain.o: $(ScannerSsrc)/ScannerSMain.cpp
cd $(ScannerSsrc); $(compiler) $(Ivar) -c ScannerSMain.cpp $(MODETOTAL); cd $(TopDir)
$(ScannerSsrc)/ScannerSAnalysisUtils.o: $(ScannerSsrc)/ScannerSAnalysisUtils.cpp
cd $(ScannerSsrc); $(compiler) $(Ivar) -c ScannerSAnalysisUtils.cpp $(MODETOTAL); cd $(TopDir)
$(ScannerSModelUtils)/ScannerS2HDM.o: $(ScannerSModelUtils)/ScannerS2HDM.cpp
cd $(ScannerSModelUtils); $(compiler) $(Ivar) -c ScannerS2HDM.cpp $(MODETOTAL); cd $(TopDir)
$(ScannerSsrc)/ScannerSModelclasses.o: $(ScannerSsrc)/ScannerSModelclasses.cpp
cd $(ScannerSsrc); $(compiler) $(Ivar) -c ScannerSModelclasses.cpp $(MODETOTAL); cd $(TopDir)
$(ScannerSsrc)/ScannerSTools.o: $(ScannerSsrc)/ScannerSTools.cpp
cd $(ScannerSsrc); $(compiler) $(Ivar) -c ScannerSTools.cpp $(MODETOTAL); cd $(TopDir)
$(ScannerSsrc)/ScannerSAux.o: $(ScannerSsrc)/ScannerSAux.cpp
cd $(ScannerSsrc); $(compiler) $(Ivar) -c ScannerSAux.cpp $(MODETOTAL); cd $(TopDir)
$(ScannerSsrc)/ScannerSUser.o: ScannerSUser.cpp
cd $(ScannerSsrc); $(compiler) $(Ivar) $(MicromegasUser) -c ../ScannerSUser.cpp $(MODETOTAL); cd $(TopDir)
$(ScannerSsrc)/ScannerSInterface.o: $(ScannerSsrc)/ScannerSInterface.cpp
cd $(ScannerSsrc); $(compiler) $(Ivar) -c ScannerSInterface.cpp $(MODETOTAL); cd $(TopDir)
$(ScannerSsrc)/ScannerSVerbose.o: $(ScannerSsrc)/ScannerSVerbose.cpp
cd $(ScannerSsrc); $(compiler) $(Ivar) -c ScannerSVerbose.cpp $(MODETOTAL); cd $(TopDir)
$(ScannerSsrc)/ScannerSEWPO.o: $(ScannerSsrc)/ScannerSEWPO.cpp
cd $(ScannerSsrc); $(compiler) $(Ivar) -c ScannerSEWPO.cpp $(MODETOTAL); cd $(TopDir)
$(WrapersSrc)/SuperisoWrap.o: $(WrapersSrc)/SuperisoWrap.cpp
cd $(WrapersSrc); $(compiler) $(Ivar) -c SuperisoWrap.cpp $(MODETOTAL); cd $(TopDir)
$(WrapersSrc)/SusHiWrapCppFuncs.o: $(WrapersSrc)/SusHiWrapCppFuncs.cpp
cd $(WrapersSrc); $(compiler) $(Ivar) -c SusHiWrapCppFuncs.cpp $(MODETOTAL); cd $(TopDir)
$(WrapersSrc)/SusHiWrap.o: $(WrapersSrc)/SusHiWrap.f
cd $(WrapersSrc); $(compiler) $(Ivar) -c SusHiWrap.f $(MODETOTAL); cd $(TopDir)
libsMicromegas:
$(MAKE) -C work
$(MAKE) -C lib
$(WrapersSrc)/HdecayWrap.o: $(WrapersSrc)/HdecayWrap.f
cp $(Hdecaypath)/hdecay.f $(WrapersSrc)/hdecaycopy.f; cd $(WrapersSrc); sed -i 's/PROGRAM HDECAY/SUBROUTINE HDECAYDUMMYSCANNERS/g' hdecaycopy.f; $(compilerf77) -c HdecayWrap.f $(MODETOTAL); sed -i 's/TRILOG/HDECAY3LOG/g' $(Hdecaypath)/*.f; cd $(TopDir)
$(WrapersSrc)/HdecayWrapCppFuncs.o: $(WrapersSrc)/HdecayWrapCppFuncs.cpp
cd $(WrapersSrc); $(compiler) -c HdecayWrapCppFuncs.cpp $(MODETOTAL); cd $(TopDir)
$(WrapersSrc)/hdecaycopy.o: $(WrapersSrc)/hdecaycopy.f
cd $(WrapersSrc); $(compilerf77) -c hdecaycopy.f $(MODETOTAL); cd $(TopDir)
$(Hdecaypath)/dmb.o: $(Hdecaypath)/dmb.f
cd $(Hdecaypath); $(compilerf77) -c $(Hdecaypath)/dmb.f $(MODETOTAL); cd $(TopDir)
$(Hdecaypath)/feynhiggs.o: $(Hdecaypath)/feynhiggs.f
cd $(Hdecaypath); $(compilerf77) -c $(Hdecaypath)/feynhiggs.f $(MODETOTAL); cd $(TopDir)
$(Hdecaypath)/hgg.o: $(Hdecaypath)/hgg.f
cd $(Hdecaypath); $(compilerf77) -c $(Hdecaypath)/hgg.f $(MODETOTAL); cd $(TopDir)
$(Hdecaypath)/susylha.o: $(Hdecaypath)/susylha.f
cd $(Hdecaypath); $(compilerf77) -c $(Hdecaypath)/susylha.f $(MODETOTAL); cd $(TopDir)
$(Hdecaypath)/elw.o: $(Hdecaypath)/elw.f
cd $(Hdecaypath); $(compilerf77) -c $(Hdecaypath)/elw.f $(MODETOTAL); cd $(TopDir)
$(Hdecaypath)/haber.o: $(Hdecaypath)/haber.f
cd $(Hdecaypath); $(compilerf77) -c $(Hdecaypath)/haber.f $(MODETOTAL); cd $(TopDir)
$(Hdecaypath)/hgaga.o: $(Hdecaypath)/hgaga.f
cd $(Hdecaypath); $(compilerf77) -c $(Hdecaypath)/hgaga.f $(MODETOTAL); cd $(TopDir)
$(Hdecaypath)/hsqsq.o: $(Hdecaypath)/hsqsq.f
cd $(Hdecaypath); $(compilerf77) -c $(Hdecaypath)/hsqsq.f $(MODETOTAL); cd $(TopDir)
clean:
rm $(objects) ScannerS
$(MOclean1)
$(MOclean2)
$(MOclean3)
$(MOclean4)
rm $(WrapersSrc)/hdecaycopy.f
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 12:22 PM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4014387
Default Alt Text
makefile (9 KB)
Attached To
rSCANNERSSVN scannerssvn
Event Timeline
Log In to Comment