~maddevelopers/mg5amcnlo/2.9.4

« back to all changes in this revision

Viewing changes to Template/NLO/MCatNLO/HWPPAnalyzer/Makefile

pass to v2.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- Makefile -*- (for emacs)
 
2
# src/Makefile-UserModules.  Generated from Makefile-UserModules.in by configure.
 
3
#
 
4
# Herwig++ 2.3.2
 
5
#
 
6
# This Makefile is intended for compiling Herwig++ plugins
 
7
# You can find example plugins in the Contrib directory
 
8
#
 
9
# This Makefile received very little testing, 
 
10
# any bug reports are very welcome!
 
11
#
 
12
 
 
13
#
 
14
# C++ flags
 
15
 
16
 
 
17
# Comment out the following variables to eliminate HepMC by brute force
 
18
HEPMC  = $(HEPMCPATH)
 
19
HEPMCINCLUDE = -I$(HEPMC)/include
 
20
HEPMCLIB =   -L$(HEPMC)/lib -lHepMC 
 
21
HEPMCFIO =   -L$(HEPMC)/lib -lHepMCfio 
 
22
TOPDIR = ../
 
23
INCDIR = include
 
24
CXX = g++
 
25
F77 = gfortran -w -fno-automatic -ffixed-line-length-132
 
26
 
 
27
CXXFLAGS = -g -W -Wall -O3
 
28
 
 
29
# add additional package header directories here
 
30
CXXFLAGS += $(shell $(HWPPPATH)/bin/herwig-config --cppflags )
 
31
 
 
32
ALLCCFILES=$(shell echo *.cc)
 
33
all : HepMCFortran.so
 
34
 
 
35
%.o: ../HWAnalyzer/%.f
 
36
        $(F77) -c $< -fPIC -I$(TOPDIR)/$(INCDIR) -o $@
 
37
 
 
38
%.o: ../srcHerwig/%.f
 
39
        $(F77) -c $< -fPIC -I$(TOPDIR)/$(INCDIR) -o $@
 
40
 
 
41
%.o: %.f
 
42
        $(F77) -c $< -fPIC -I$(TOPDIR)/$(INCDIR) -o $@
 
43
 
 
44
%.o: %.cc
 
45
        $(CXX) -c $< -fPIC $(INCLOPTION) -I$(TOPDIR)/$(INCDIR) -o $@
 
46
 
 
47
HepMCFortran.so : HepMCFortran.cc HepMCFortran.h $(FORFILE)
 
48
        $(CXX) -shared -fPIC $(CXXFLAGS) $(LDFLAGS) $(EXTRAPATHS) $(EXTRALIBS) $(INCLOPTION) $(HEPMCINCLUDE) $(HEPMCLIB) $(HEPMCFIO) $< -o $@ $(FORFILE)
 
49
 
 
50
clean:
 
51
        rm -f $(ALLCCFILES:.cc=.so)