Makefile_pythia8

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 #######################################################################
00010 
00011 SHELL = /bin/sh
00012 
00013 include ../../config.mk
00014 
00015 CXX = g++
00016 ## libraries for compiling Pythia8
00017 
00018 Pythia8libs = $(Pythia8dir)/lib/libpythia8.so $(Pythia8dir)/lib/libhepmcinterface.so
00019 
00020 #################################
00021 
00022 EXAMPLES = pythia8 \
00023 
00024 # Create an executable linked to HepMC, CLHEP ...
00025 
00026    all: $(EXAMPLES)
00027 
00028    pythia8: $(Pythia8libs) $(MYCLASS_PATH)/lib/libHepMCAnalysis.so
00029                  @mkdir -p ../../$(BINDIR)
00030                  $(CXX) $(CXXFLAGS) \
00031                  -I$(MYCLASS_PATH)/include \
00032                  -I$(Pythia8dir)/include \
00033                  $(ROOTCFLAGS) \
00034                  pythia8.cc -o pythia8.exe \
00035                  -L$(Pythia8dir)/lib -lpythia8 -lhepmcinterface -llhapdfdummy \
00036                  $(HepMClib) $(HepPDTlib) $(CLHEPlib) $(FastJetlib)\
00037                  -L$(MYCLASS_PATH)/lib -lHepMCAnalysis \
00038                  -L$(CLHEPdir)/lib -lCLHEP \
00039                  $(ROOTGLIBS) \
00040                  $(LINK_LIBS)
00041                  @ln -fs ../examples/pythia8/pythia8.exe ../../$(BINDIR)/pythia8.exe
00042 
00043 # Clean up: remove executables and *.o files
00044 
00045 clean:
00046         rm -f *.exe *.o ../../$(BINDIR)/pythia8*.exe
00047         rm -f allSettings.cmnd
00048 
00049 # Fresh: remove executables, *.o and outdated files.
00050 
00051 fresh:
00052         rm -f *.exe *.o *.root *.cmnd ../../$(BINDIR)/pythia8*.exe

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