~mg5core1/mg5amcnlo/2.6.4

« back to all changes in this revision

Viewing changes to Template/NLO/Source/make_opts

  • Committer: Marco Zaro
  • Date: 2012-08-28 21:06:34 UTC
  • mto: (78.35.14 AutoMint)
  • mto: This revision was merged to the branch mainline in revision 249.
  • Revision ID: marco.zaro@gmail.com-20120828210634-5a06yvda3hplw8ur
doing some renaming:
 Template/FKS-born -> Template/NLO
 fks_born.py -> fks_base.py
 fks_born_helas_objects.py -> fks_helas_objects.py
 export_fks_born.py -> export_fks.py

also functions/classes and tests renamed
all unit tests ok, exporting ok

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
FFLAGS+= -ffixed-line-length-132
 
10
 
 
11
# Set FC unless it's defined by an environment variable
 
12
ifeq ($(origin FC),default)
 
13
#  FC=g77
 
14
  FC=gfortran
 
15
endif
 
16
 
 
17
# Options: dynamic, lhapdf
 
18
 
 
19
UNAME := $(shell uname)
 
20
 
 
21
# Option dynamic
 
22
 
 
23
ifdef dynamic
 
24
  ifeq ($(UNAME), Darwin)
 
25
    libext=dylib
 
26
    FFLAGS+= -fno-common
 
27
    LDFLAGS += -bundle
 
28
    define CREATELIB
 
29
      $(FC) -dynamiclib -undefined dynamic_lookup -o $(1) $(2)
 
30
    endef
 
31
  else
 
32
    libext=so
 
33
    FFLAGS+= -fPIC
 
34
    LDFLAGS += -shared
 
35
    define CREATELIB
 
36
      $(FC) $(FFLAGS) $(LDFLAGS) -o $(1) $(2)
 
37
    endef
 
38
  endif
 
39
else
 
40
  libext=a
 
41
  define CREATELIB
 
42
    $(AR) cru $(1) $(2)
 
43
    ranlib $(1)
 
44
  endef
 
45
endif
 
46
 
 
47
# Option lhapdf
 
48
 
 
49
ifdef lhapdf
 
50
  alfas_functions=alfas_functions_lhapdf
 
51
  lhapdf=-lLHAPDF -lstdc++
 
52
  reweight_xsec_events_pdf_dummy=
 
53
else
 
54
  alfas_functions=alfas_functions
 
55
  lhapdf=
 
56
  reweight_xsec_events_pdf_dummy=reweight_xsec_events_pdf_dummy.o
 
57
endif
 
58
 
 
59
# Madloop
 
60
ifdef madloop
 
61
  libmadloop=libMadLoop.a -lcts
 
62
else
 
63
  libmadloop=
 
64
endif
 
65