Makefile_pythia6.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 LHAPDF_LIBS = $(LHAPDFdir)/lib/liblhapdf.so
00016 LHAPDF_INCLUDES = $(LHAPDFdir)/include/LHAPDF/
00017 
00018 
00019 ## libraries for compiling Pythia6
00020 
00021 Pythia6libs = $(Pythia6dir)/lib/pydata.o $(Pythia6dir)/lib/libpythia6.so $(Pythia6dir)/lib/libpythia6_dummy.so
00022 
00023 #################################
00024 
00025 EXAMPLES = pythia6 \
00026 
00027 # Create an executable linked to HepMC, CLHEP ...
00028 
00029    all: $(EXAMPLES)
00030 
00031 
00032    pythia6: $(Pythia6libs) $(MYCLASS_PATH)/lib/libHepMCAnalysis.so
00033                  @mkdir -p ../../$(BINDIR)
00034                  $(CXX) $(CXXFLAGS) \
00035                  -I$(MYCLASS_PATH)/include \
00036                  -I$(Pythia6dir)/include \
00037                  $(ROOTCFLAGS) \
00038                  pythia6.cc -o pythia6.exe \
00039                  -L$(Pythia6dir)/lib  -lpythia6 -lpythia6_dummy  \
00040                 -L$(LHAPDFdir)/lib -llhapdf -llhapdf_dummy \
00041                  -L$(CLHEPdir)/lib -lCLHEP \
00042                  $(HepMClib) $(HepPDTlib) $(CLHEPlib) $(FastJetlib)\
00043                  -L$(MYCLASS_PATH)/lib -lHepMCAnalysis \
00044                  $(ROOTGLIBS) \
00045                  $(LINK_LIBS)
00046                  @ln -fs ../examples/pythia6/pythia6.exe ../../$(BINDIR)/pythia6.exe
00047 
00048 
00049 # Clean up: remove executables and *.o files
00050 
00051 clean:
00052         rm -f *.exe *.o  ../../$(BINDIR)/pythia6*.exe
00053 
00054 # Fresh: remove executables, *.o and outdated files.
00055 
00056 fresh:
00057         rm -f *.exe *.o *.root ../../$(BINDIR)/pythia6*.exe
00058 
00059 
00060 
00061 
00062 
00063 

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