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
00019 Pythia8libs = $(Pythia8dir)/lib/libpythia8.so $(Pythia8dir)/lib/libhepmcinterface.so
00020
00021 #################################
00022
00023 EXAMPLES = fresh pythia8 \
00024
00025 # Create an executable linked to HepMC, CLHEP ...
00026
00027 all: $(EXAMPLES)
00028
00029 pythia8: $(Pythia8libs) $(MY_PATH)/config/lib/libConfig.so
00030 @mkdir -p ../../$(BINDIR)
00031 $(CXX) $(CXXFLAGS) \
00032 -I$(MY_PATH)/config/include \
00033 -I$(Pythia8dir)/include \
00034 $(ROOTCFLAGS) \
00035 generator.cc -o generator.exe \
00036 -L$(Pythia8dir)/lib -lpythia8 -lhepmcinterface -llhapdfdummy \
00037 $(HepMClib) $(HepPDTlib) $(CLHEPlib) $(FastJetlib)\
00038 -L$(MY_PATH)/config/lib -lConfig \
00039 $(ROOTGLIBS) \
00040 $(LINK_LIBS)
00041 @ln -fs ../generators/pythia8/generator.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 *.dat ../../$(BINDIR)/pythia8*.exe