~maddevelopers/mg5amcnlo/dim6_eft

« back to all changes in this revision

Viewing changes to Template/NLO/Source/make_opts

  • Committer: Hua-Sheng Shao
  • Date: 2013-12-17 15:25:49 UTC
  • mto: (177.91.47 MG5_aMC_2.1_withTIR)
  • mto: This revision was merged to the branch mainline in revision 255.
  • Revision ID: erdissshaw@gmail.com-20131217152549-jjeekfx2u347txmh
1)relinked the annoying symbol links due to my stuipid copy.2)fix a small bug after merging.3)add TIR links in make_opts

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Environment variables
2
 
 
3
 
ifeq ($(origin FFLAGS),undefined)
4
 
  #FFLAGS= -O -w
5
 
  FFLAGS = -O -fno-automatic
6
 
  #FFLAGS+= -g -fbounds-check -ffpe-trap=invalid,zero,overflow,underflow,denormal -Wall
7
 
endif
8
 
 
9
 
ifeq ($(origin CXXFLAGS),undefined)
10
 
  #CXXFLAGS= -g 
11
 
  CXXFLAGS = -O 
12
 
endif
13
 
 
14
 
ifeq ($(origin CFLAGS),undefined)
15
 
  #CFLAGS= -g 
16
 
  CFLAGS = -O 
17
 
endif
18
 
 
19
 
  
20
 
 
21
 
FFLAGS+= -ffixed-line-length-132
22
 
 
23
 
# Set FC unless it's defined by an environment variable
24
 
ifeq ($(origin FC),default)
25
 
#  FC=g77
26
 
#  FC=gfortran
27
 
   FC=/afs/cern.ch/sw/lcg/external/gcc/4.7.0/x86_64-slc5-gcc47-opt/bin/gfortran
28
 
endif
29
 
 
30
 
# Options: dynamic, lhapdf
31
 
 
32
 
UNAME := $(shell uname)
33
 
 
34
 
# Option dynamic
35
 
 
36
 
ifdef dynamic
37
 
  ifeq ($(UNAME), Darwin)
38
 
    libext=dylib
39
 
    FFLAGS+= -fno-common
40
 
    LDFLAGS += -bundle
41
 
    define CREATELIB
42
 
      $(FC) -dynamiclib -undefined dynamic_lookup -o $(1) $(2)
43
 
    endef
44
 
  else
45
 
    libext=so
46
 
    FFLAGS+= -fPIC
47
 
    LDFLAGS += -shared
48
 
    define CREATELIB
49
 
      $(FC) $(FFLAGS) $(LDFLAGS) -o $(1) $(2)
50
 
    endef
51
 
  endif
52
 
else
53
 
  libext=a
54
 
  define CREATELIB
55
 
    $(AR) cru $(1) $(2)
56
 
    ranlib $(1)
57
 
  endef
58
 
endif
59
 
 
60
 
# Option lhapdf
61
 
 
62
 
ifdef lhapdf
63
 
  alfas_functions=alfas_functions_lhapdf
64
 
  lhapdf=-lLHAPDF -lstdc++
65
 
  reweight_xsec_events_pdf_dummy=
66
 
else
67
 
  alfas_functions=alfas_functions
68
 
  lhapdf=
69
 
  reweight_xsec_events_pdf_dummy=reweight_xsec_events_pdf_dummy.o
70
 
endif
71
 
 
72
 
# Madloop
73
 
ifdef madloop
74
 
  libmadloop=libMadLoop.a
75
 
  libcuttools=-lcts
76
 
else
77
 
  libmadloop=
78
 
  libcuttools=
79
 
endif
80
 
 
81
 
# OLP (virtuals) necessary link
82
 
libOLP=