1
# Environment variables
3
ifeq ($(origin FFLAGS),undefined)
5
FFLAGS = -O -fno-automatic
6
#FFLAGS+= -g -fbounds-check -ffpe-trap=invalid,zero,overflow,underflow,denormal -Wall
9
ifeq ($(origin CXXFLAGS),undefined)
14
ifeq ($(origin CFLAGS),undefined)
21
FFLAGS+= -ffixed-line-length-132
23
# Set FC unless it's defined by an environment variable
24
ifeq ($(origin FC),default)
27
FC=/afs/cern.ch/sw/lcg/external/gcc/4.7.0/x86_64-slc5-gcc47-opt/bin/gfortran
30
# Options: dynamic, lhapdf
32
UNAME := $(shell uname)
37
ifeq ($(UNAME), Darwin)
42
$(FC) -dynamiclib -undefined dynamic_lookup -o $(1) $(2)
49
$(FC) $(FFLAGS) $(LDFLAGS) -o $(1) $(2)
63
alfas_functions=alfas_functions_lhapdf
64
lhapdf=-lLHAPDF -lstdc++
65
reweight_xsec_events_pdf_dummy=
67
alfas_functions=alfas_functions
69
reweight_xsec_events_pdf_dummy=reweight_xsec_events_pdf_dummy.o
74
libmadloop=libMadLoop.a
81
# OLP (virtuals) necessary link