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 ## libraries for compiling 00016 00017 Pythia6_LIB = -L$(Pythia6dir)/lib -lpythia6 -lpythia6_dummy -lpythia6_pdfdummy 00018 Cascade_LIB = -L$(Cascadedir)/lib -lbases -lcascade2 00019 00020 pythia6_OBJ = initpydata.o initPythia.o 00021 cascade_OBJ = upevnt.o upinit.o pyremn.o 00022 00023 #for test runs because I do not know how to loop over the lines of the steering file 00024 ThePEGlibs = $(ThePEGdir)/lib/ThePEG/libThePEG.so 00025 00026 ################################# 00027 00028 EXAMPLES = cascade \ 00029 00030 # Create an executable linked to HepMC, CLHEP ... 00031 00032 all: $(EXAMPLES) 00033 00034 cascade: $(cascade_OBJ) $(pythia6_OBJ) $(MYCLASS_PATH)/lib/libHepMCAnalysis.so 00035 @mkdir -p ../../$(BINDIR) 00036 $(CXX) $(CXXFLAGS) \ 00037 -I$(Pythia6dir)/include -I$(Cascadedir)/include -I$(MYCLASS_PATH)/include \ 00038 $(cascade_OBJ) $(pythia6_OBJ) $(MYCLASS_PATH)/lib/libHepMCAnalysis.so \ 00039 $(ROOTCFLAGS) \ 00040 cascade.cc -o cascade.exe \ 00041 $(Cascade_LIB) \ 00042 $(Pythia6_LIB) \ 00043 $(HepMClib) \ 00044 $(CLHEPlib) \ 00045 -L$(MYCLASS_PATH)/lib -lHepMCAnalysis \ 00046 $(Cascade_LIB) \ 00047 -L$(CLHEPdir)/lib -lCLHEP \ 00048 $(ROOTGLIBS) \ 00049 -L$(CERNLIB) -lmathlib -lkernlib -lpacklib \ 00050 $(FLIBS) 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