Makefile.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 ## 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 = fresh cascade \
00029 
00030 # Create an executable linked to HepMC, CLHEP ...
00031 
00032    all: $(EXAMPLES)
00033 
00034 cascade: $(cascade_OBJ) $(pythia6_OBJ) $(MY_PATH)/config/lib/libConfig.so
00035         @mkdir -p ../../$(BINDIR)
00036         $(CXX) $(CXXFLAGS) \
00037         -I$(MY_PATH)/config/include \
00038         -I$(Pythia6dir)/include -I$(Cascadedir)/include  \
00039         $(cascade_OBJ) $(pythia6_OBJ) $(MYCLASS_PATH)/lib/libHepMCAnalysis.so \
00040         $(ROOTCFLAGS) \
00041     generator.cc -o generator.exe \
00042         $(Cascade_LIB) \
00043         $(Pythia6_LIB) \
00044         $(HepMClib) \
00045         $(CLHEPlib) \
00046         -L$(MY_PATH)/config/lib -lConfig \
00047         $(Cascade_LIB) \
00048         $(ROOTGLIBS) \
00049         -L$(CERNLIB) -lmathlib -lkernlib -lpacklib \
00050         $(FLIBS) 
00051         @ln -fs ../generators/cascade/generator.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

Generated on Wed Aug 31 09:44:46 2011 for HepMCAnalysis by  doxygen 1.4.7