00001 #######################################################################
00002 #
00003 # Makefile for HepMCAnalysis shared library to run at CERN and DESY
00004 #
00005 # pathes (variables) and objects are set in setup script and config.mk
00006 #
00007 # Sebastian Johnert 17.10.2008
00008 #
00009 # Changed by Zhonghua Qin for Hewig++ example 27.10.2008
00010 #######################################################################
00011
00012 SHELL = /bin/sh
00013
00014 include ../../config.mk
00015
00016 ## libraries for compiling Herwigpp
00017
00018 Herwigpplibs = $(Herwigppdir)/lib/Herwig++/Herwig.so
00019 ThePEGlibs = $(ThePEGdir)/lib/ThePEG/libThePEG.so
00020
00021 #################################
00022
00023 EXAMPLES = herwigpp_$(Herwigppversion)
00024
00025 # Create an executable linked to HepMC, CLHEP ...
00026
00027 all: $(EXAMPLES)
00028
00029 herwigpp_$(Herwigppversion): $(Herwigpplibs) $(ThePEGlibs) $(MYCLASS_PATH)/lib/libHepMCAnalysis.so
00030 @mkdir -p ../../$(BINDIR)
00031 $(CXX) $(CXXFLAGS) \
00032 -DHWMODULEDIR=\"$(Herwigppdir)/include/Herwig++\" \
00033 -DTHEPEGMODULEDIR=\"$(ThePEGdir)/include/ThePEG\" \
00034 -DHWREPODIR=\"$(Herwigppdir)/share/Herwig++\" \
00035 -I$(MYCLASS_PATH)/include \
00036 -I$(ThePEGdir)/include \
00037 -I$(GSLdir)/include \
00038 -I$(Herwigppdir)/include/Herwig++ \
00039 $(ROOTCFLAGS) \
00040 herwigpp_$(Herwigppversion).cc -o herwigpp_$(Herwigppversion).exe \
00041 -L$(ThePEGdir)/lib/ThePEG -lThePEG \
00042 -L$(Herwigppdir)/lib/Herwig++ \
00043 $(HepMClib) $(HepPDTlib) $(CLHEPlib) \
00044 -L$(MYCLASS_PATH)/lib -lHepMCAnalysis \
00045 $(ROOTGLIBS) \
00046 $(FLIBS)
00047 @ln -fs ../examples/herwigpp/herwigpp_$(Herwigppversion).exe ../../$(BINDIR)/herwigpp_$(Herwigppversion).exe
00048
00049 # Clean up: remove executables and *.o files
00050
00051 clean:
00052 rm -f *.exe *.o ../../$(BINDIR)/herwigpp*.exe
00053 rm -f LHC.tex LHC.out LHC.log Looptools.log LHC-UE.out
00054
00055 # Fresh: remove executables, *.o and outdated files.
00056
00057 fresh:
00058 rm -f *.exe *.o *.root *.log LHC.* ../../$(BINDIR)/herwigpp*.exe