Makefile_alpgen

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 # Include files
00020 INC= hepevt.inc hnt.inc pythia6300.inc
00021 
00022 # Files used for the shower evolution
00023 SHOWER= *.f alpsho.f
00024 
00025 # object files
00026 OBJ=$(SHOWER:.f=.o)
00027 
00028 # compilation
00029 %.o: %.f
00030                 $(F77) -c -o $*.o $*.f 
00031 
00032 ## libraries for compiling Pythia6
00033 
00034 Pythia6libs = $(Pythia6dir)/lib/pydata.o $(Pythia6dir)/lib/libpythia6.so $(Pythia6dir)/lib/libpythia6_dummy.so
00035 
00036 #################################
00037 
00038 EXAMPLES = alpgen_pythia6 \
00039 #pyuser 
00040 # Create an executable linked to HepMC, CLHEP ...
00041 
00042    all: $(EXAMPLES)
00043 
00044 # LINKING GENERIC EXECUTABLE FOR PYTHIA EVENT-EVOLUTION
00045   pyuser: pyuser.o atopyt.o \
00046         pythia6325.o  alpsho.o
00047         gfortran -o pyuser pyuser.o \
00048         atopyt.o pythia6325.o alpsho.o
00049 
00050 
00051 alpgen_pythia6: $(Pythia6libs) $(MYCLASS_PATH)/lib/libHepMCAnalysis.so alpgen_spec.o test_hepmc.o atopyt.o alpsho.o 
00052                  @mkdir -p ../../$(BINDIR)
00053                  $(CXX) $(CXXFLAGS) \
00054                  -I$(MYCLASS_PATH)/include \
00055                  -I$(Pythia6dir)/include \
00056                  $(ROOTCFLAGS) \
00057                  alpgen_pythia6.cc -o alpgen_pythia6.exe \
00058                  alpsho.o atopyt.o test_hepmc.o alpgen_spec.o \
00059                  -L$(Pythia6dir)/lib  -lpythia6 -lpythia6_dummy  \
00060                 -L$(LHAPDFdir)/lib -llhapdf -llhapdf_dummy \
00061                  $(HepMClib) $(HepPDTlib) $(CLHEPlib) $(FastJetlib)\
00062                 -L$(CLHEPdir)/lib -lCLHEP \
00063                  -L$(MYCLASS_PATH)/lib -lHepMCAnalysis \
00064                  $(ROOTGLIBS) \
00065                  $(FLIBS)
00066                  @ln -fs ../examples/alpgen/alpgen_pythia6.exe ../../$(BINDIR)/alpgen_pythia6.exe
00067 
00068 
00069 # Clean up: remove executables and *.o files
00070 
00071 clean:
00072         rm -f *.exe *.o  ../../$(BINDIR)/alpgen_pythia6*.exe
00073 
00074 # Fresh: remove executables, *.o and outdated files.
00075 
00076 fresh:
00077         rm -f *.exe *.o *.root ../../$(BINDIR)/alpgen_pythia6*.exe
00078 
00079 
00080 
00081 
00082 
00083 

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