1
# -*- Makefile -*- (for emacs)
2
# src/Makefile-UserModules. Generated from Makefile-UserModules.in by configure.
6
# This Makefile is intended for compiling Herwig++ plugins
7
# You can find example plugins in the Contrib directory
9
# This Makefile received very little testing,
10
# any bug reports are very welcome!
17
# Comment out the following variables to eliminate HepMC by brute force
19
HEPMCINCLUDE = -I$(HEPMC)/include
20
HEPMCLIB = -L$(HEPMC)/lib -lHepMC
21
HEPMCFIO = -L$(HEPMC)/lib -lHepMCfio
25
F77 = gfortran -w -fno-automatic -ffixed-line-length-132
27
CXXFLAGS = -g -W -Wall -O3
29
# add additional package header directories here
30
CXXFLAGS += $(shell $(HWPPPATH)/bin/herwig-config --cppflags )
32
ALLCCFILES=$(shell echo *.cc)
35
%.o: ../HWAnalyzer/%.f
36
$(F77) -c $< -fPIC -I$(TOPDIR)/$(INCDIR) -o $@
39
$(F77) -c $< -fPIC -I$(TOPDIR)/$(INCDIR) -o $@
42
$(F77) -c $< -fPIC -I$(TOPDIR)/$(INCDIR) -o $@
45
$(CXX) -c $< -fPIC $(INCLOPTION) -I$(TOPDIR)/$(INCDIR) -o $@
47
HepMCFortran.so : HepMCFortran.cc HepMCFortran.h $(FORFILE)
48
$(CXX) -shared -fPIC $(CXXFLAGS) $(LDFLAGS) $(EXTRAPATHS) $(EXTRALIBS) $(INCLOPTION) $(HEPMCINCLUDE) $(HEPMCLIB) $(HEPMCFIO) $< -o $@ $(FORFILE)
51
rm -f $(ALLCCFILES:.cc=.so)