############################################################################### # Pythia 8 example ############################################################################### # include global default settings from make.inc file (compilers' flags, etc). include ../make.inc ################################################################################ # #Libraries to include HEPEVT_LIB = ../../lib/libHEPEvent.so TESTER_LIB = ../../lib/libMCTester.so #External libraries to include ROOT_LIBS := $(shell $(ROOTSYS)/bin/root-config --libs) -lg2c #EVTGEN_INSTALL_LOCATION= TESTER_INC=../../include PROGRAM=evtgen_test #testEvtGen all: $(PROGRAM).exe @echo " ***************************************************" @echo " Executable file OK. " @echo " To generate events and prepare histograms, please execute: " @echo " $(PROGRAM).exe" @echo " then execute " @echo " make move1 " @echo " or " @echo " make move2 " @echo " to move result files to either" @echo " /analyze/prod1 or" @echo " /analyze/prod2 directory." @echo " ***************************************************" $(PROGRAM).exe: ${HEPEVT_LIB} ${TESTER_LIB} ${PROGRAM}.cc pythia_loc ${CXX} ${CXXFLAGS} -I${CLHEP_INSTALL_LOCATION}/include -I${EVTGEN_INSTALL_LOCATION} \ -I${TESTER_INC} ${PROGRAM}.cc -I/cern/pro/include/stdhep -o $@ \ -L${EVTGEN_INSTALL_LOCATION}/lib/archive -levtgenlhc \ -L${PYTHIA6_INSTALL_LOCATION}/lib/archive -lpythia6 -lpythia6_pdfdummy -lpythia6_dummy -lrootinterface \ -L${PHOTOS_INSTALL_LOCATION}/lib/archive -lphotos \ ${CLHEP_INSTALL_LOCATION}/lib/libCLHEP.a \ ${TESTER_LIB} ${HEPEVT_LIB} ${ROOT_LIBS} pythia_loc: #check pythia root is set ifeq (${EVTGEN_INSTALL_LOCATION}, ) @echo "##############################################" @echo "Please set EVTGEN_INSTALL_LOCATION to the " @echo "directory where your EvtGen include/ and " @echo "lib/ directories can be found " @echo "##############################################" @false else @echo "Using EVTGEN_INSTALL_LOCATION="${EVTGEN_INSTALL_LOCATION} endif $(HEPEVT_LIB): @echo "#######################################" @echo " You should have executed make in the toplevel" @echo " direcory of MC-TESTER!" @echo "#######################################" @false $(TESTER_LIB): @echo "#######################################" @echo " You should have executed make in the toplevel" @echo " direcory of MC-TESTER!" @echo "#######################################" @false # # Cleanup targets: # move1: cp mc-tester.root ../../analyze/prod1/ move2: cp mc-tester.root ../../analyze/prod2/ clean: rm -f $(PROGRAM).exe $(PRG_OBJ) rm -rf *~ *.root Clean: clean rm -rf $(PRG_SRC1) make -C gen1 clean ############################################################################## # Other dependencies: ##############################################################################