00001 ################################################################################
00002 #
00003 # config file for HepMCAnalysis library and examples
00004 #
00005 # pathes (variables) are set in setup script
00006 #
00007 #
00008 # Judith Katzy, Sebastian Johnert 16.10.2008
00009 #
00010 #
00011 ############################### Libraries ######################################
00012
00013 INCLUDEF = -I$(FastJetdir)/include
00014 INCLUDEH = -I$(HepMCdir)/include -I$(CLHEPdir)/include \
00015 -I$(HepPDTdir)/include -I$(ROOTSYS)/include
00016 INCLUDES = $(INCLUDEH) $(INCLUDEF)
00017
00018 ROOTGLIBS = `root-config --glibs`
00019 ROOTCFLAGS = `root-config --cflags` -Wno-long-long
00020
00021 CLHEPlib = -L$(CLHEPdir)/lib -lCLHEP
00022 HepPDTlib = -L$(HepPDTdir)/lib -lHepPDT -lHepPID
00023 HepMClib = $(HepMCdir)/lib/libHepMC.so $(HepMCdir)/lib/libHepMCfio.a
00024 #FastJetlib = -L$(FastJetdir)/lib -lfastjet -lSISConePlugin -lCDFConesPlugin -lsiscone
00025 # the next line is needed for use up FastJetversion 2.4.1
00026 FastJetlib = -L$(FastJetdir)/lib -lfastjet -lSISConePlugin -lCDFConesPlugin -lsiscone -lsiscone_spherical
00027 ifeq ($(GFORTRAN), 1)
00028 LINK_LIBS = -lgfortran
00029 else
00030 LINK_LIBS = -lfrtbegin -lg2c
00031 endif
00032
00033 ################################################################################
00034
00035 BINDIR = bin
00036 LIBDIR = lib
00037
00038 ############################## Compiler options #################################
00039
00040 CXX = g++
00041 F77 = g77 #Fortran compiler (needed?)
00042 CXXFLAGS = -O2 -Wall -fPIC -pthread $(INCLUDES)
00043 FFLAGS = -O2 -fno-second-underscore $(INCLUDES)
00044 #LD = g++ #needed?
00045
00046
00047 .SUFFIXES: .o .cc .f .exe
00048
00049 ################################################################################
00050 # instructions for building a .o file from a .cxx file
00051 #
00052 #.cc.o: $(HDRS) $<
00053 # @echo "Compiling $< with $(CXX) $(CXXFLAGS) "
00054 # @$(CXX) $(CXXFLAGS) -c $< -o $@
00055
00056 ################################################################################
00057 # instructions for building a .o file from a .f file
00058 #
00059 .f.o: $<
00060 @echo "Compiling $< with $(F77) ..."
00061 @$(F77) $(FFLAGS) -c $< -o $@
00062