Makefile_pythia8.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 #######################################################################
00010 
00011 SHELL = /bin/sh
00012 
00013 include ../../config.mk
00014 
00015 
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                  $(ROOTGLIBS) \
00039                  $(LINK_LIBS)
00040                  @ln -fs ../examples/pythia8/pythia8.exe ../../$(BINDIR)/pythia8.exe
00041 
00042 # Clean up: remove executables and *.o files
00043 
00044 clean:
00045         rm -f *.exe *.o ../../$(BINDIR)/pythia8*.exe
00046         rm -f allSettings.cmnd
00047 
00048 # Fresh: remove executables, *.o and outdated files.
00049 
00050 fresh:
00051         rm -f *.exe *.o *.root *.cmnd ../../$(BINDIR)/pythia8*.exe

Generated on Mon Jan 4 15:22:34 2010 for HepMCAnalysis by  doxygen 1.4.7