~madteam/mg5amcnlo/series2.0

« back to all changes in this revision

Viewing changes to vendor/CutTools/makefile

  • Committer: olivier Mattelaer
  • Date: 2014-06-11 19:47:48 UTC
  • mfrom: (253.1.38 2.1.2)
  • mto: (253.1.70 2.1.2)
  • mto: This revision was merged to the branch mainline in revision 254.
  • Revision ID: olivier.mattelaer@uclouvain.be-20140611194748-nhxx3210gudd1qfw
merge with 2.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#PRECISION= MP
3
3
CTS_VERSION = v1.9.2
4
4
SRC = ./src
 
5
CTS_DIR = cuttools_$(CTS_VERSION)
 
6
CTS_TAR = $(CTS_DIR).tar.gz
 
7
 
 
8
# Check for ../make_opts
 
9
ifeq ($(wildcard ../make_opts), ../make_opts)
 
10
  include ../make_opts
 
11
else
 
12
  FFLAGS = 
 
13
  FC=gfortran
 
14
endif
 
15
 
 
16
# These flags are vital for CT, so we enforce them here
 
17
FFLAGS += -fno-automatic -O2 -funroll-all-loops
 
18
#FFLAGS += -fno-automatic -Ofast -funroll-all-loops  
 
19
 
5
20
EXE = 
6
 
FC  = gfortran
7
 
FFLAGS = -fno-automatic -O2 -funroll-all-loops  
8
 
#FFLAGS = -fno-automatic -Ofast -funroll-all-loops  
9
21
BLD = includects
10
 
CTS_DIR = cuttools_$(CTS_VERSION)
11
 
CTS_TAR = $(CTS_DIR).tar.gz
12
22
 
13
23
ARGS = \
14
24
  EXE="$(EXE)" \
46
56
 
47
57
default: force
48
58
        cd $(BLD) && $(MAKE) $(ARGS) $@
 
59
        $(FC) -dumpversion > $(BLD)/compiler_version.log
 
60
# Below was an overkill
 
61
#       $(FC) --version | egrep -o "\d*\.\d*?(\.\d*)" | sed -n 1p > $(BLD)/compiler_version.log
49
62
 
50
63
force: $(BLD)/version.h
51
64