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
00017
00018 Pythia6_LIB = -L$(Pythia6dir)/lib -lpythia6 -lpythia6_dummy -lpythia6_pdfdummy
00019 Cascade_LIB = -L$(Cascadedir)/lib -lbases -lcascade2
00020
00021 pythia6_OBJ = initpydata.o initPythia.o
00022 cascade_OBJ = upevnt.o upinit.o pyremn.o
00023
00024 #for test runs because I do not know how to loop over the lines of the steering file
00025 ThePEGlibs = $(ThePEGdir)/lib/ThePEG/libThePEG.so
00026
00027 #################################
00028
00029 EXAMPLES = cascade \
00030
00031 # Create an executable linked to HepMC, CLHEP ...
00032
00033 all: $(EXAMPLES)
00034
00035 cascade: $(cascade_OBJ) $(pythia6_OBJ) $(MYCLASS_PATH)/lib/libHepMCAnalysis.so
00036 @mkdir -p ../../$(BINDIR)
00037 $(CXX) $(CXXFLAGS) \
00038 -I$(Pythia6dir)/include -I$(Cascadedir)/include -I$(MYCLASS_PATH)/include \
00039 $(cascade_OBJ) $(pythia6_OBJ) $(MYCLASS_PATH)/lib/libHepMCAnalysis.so \
00040 $(ROOTCFLAGS) \
00041 cascade.cc -o cascade.exe \
00042 $(Cascade_LIB) \
00043 $(Pythia6_LIB) \
00044 $(HepMClib) \
00045 $(CLHEPlib) \
00046 -L$(MYCLASS_PATH)/lib -lHepMCAnalysis \
00047 $(Cascade_LIB) \
00048 $(ROOTGLIBS) \
00049 -L$(CERNLIB) -lmathlib -lkernlib -lpacklib \
00050 $(LINK_LIBS)
00051 @ln -fs ../examples/cascade/cascade.exe ../../$(BINDIR)/cascade.exe
00052
00053 # Clean up: remove executables and outdated files.
00054
00055 fresh:
00056 rm -f *.exe *.root *.o ../../$(BINDIR)/cascade*.exe
00057
00058 clean:
00059 rm -f *.exe *.o ../../$(BINDIR)/cascade*.exe