Makefile

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 = fresh pythia6 \
00026 
00027 # Create an executable linked to HepMC, CLHEP ...
00028 
00029    all: $(EXAMPLES)
00030 
00031 
00032    pythia6: $(Pythia6libs) $(MY_PATH)/config/lib/libConfig.so
00033                  @mkdir -p ../../$(BINDIR)
00034                  $(CXX) $(CXXFLAGS) \
00035                  -I$(MY_PATH)/config/include \
00036                  -I$(Pythia6dir)/include \
00037                  $(ROOTCFLAGS) \
00038                  generator.cc -o generator.exe \
00039                  -L$(Pythia6dir)/lib  -lpythia6 -lpythia6_dummy  \
00040                 -L$(LHAPDFdir)/lib -llhapdf -llhapdf_dummy \
00041                  $(HepMClib) $(HepPDTlib) $(CLHEPlib) $(FastJetlib)\
00042                  -L$(MY_PATH)/config/lib -lConfig \
00043                  $(ROOTGLIBS) \
00044                  $(LINK_LIBS)
00045                  @ln -fs ../generators/pythia6/generator.exe ../../$(BINDIR)/pythia6.exe
00046 
00047 
00048 # Clean up: remove executables and *.o files
00049 
00050 clean:
00051         rm -f *.exe *.o  ../../$(BINDIR)/pythia6*.exe
00052 
00053 # Fresh: remove executables, *.o and outdated files.
00054 
00055 fresh:
00056         rm -f *.exe *.o *.root ../../$(BINDIR)/pythia6*.exe
00057 
00058 
00059 
00060 
00061 
00062 

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