Makefile_herwigpp.svn-base

Go to the documentation of this file.
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                    -L$(CLHEPdir)/lib -lCLHEP \
00040                    $(ROOTCFLAGS) \
00041                    herwigpp_$(Herwigppversion).cc -o herwigpp_$(Herwigppversion).exe \
00042                    -L$(ThePEGdir)/lib/ThePEG -lThePEG \
00043                    -L$(Herwigppdir)/lib/Herwig++ \
00044                    $(HepMClib) $(HepPDTlib) $(CLHEPlib) \
00045                    -L$(MYCLASS_PATH)/lib -lHepMCAnalysis \
00046                    $(ROOTGLIBS) \
00047                    $(FLIBS)
00048                    @ln -fs ../examples/herwigpp/herwigpp_$(Herwigppversion).exe ../../$(BINDIR)/herwigpp_$(Herwigppversion).exe
00049 
00050 # Clean up: remove executables and *.o files
00051 
00052 clean:
00053         rm -f *.exe *.o ../../$(BINDIR)/herwigpp*.exe 
00054         rm -f LHC.tex LHC.out LHC.log Looptools.log LHC-UE.out
00055 
00056 # Fresh: remove executables, *.o and outdated files.
00057 
00058 fresh:
00059         rm -f *.exe *.o *.root *.log LHC.* ../../$(BINDIR)/herwigpp*.exe

Generated on Wed Aug 31 09:44:48 2011 for HepMCAnalysis by  doxygen 1.4.7