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 = $(FastJetdir)/lib/libfastjet.so $(FastJetdir)/lib/libSISConePlugin.so $(FastJetdir)/lib/libCDFConesPlugin.so $(FastJetdir)/lib/libsiscone.so
00025
00026 ifeq ($(GFORTRAN), 1)
00027 LINK_LIBS = -lgfortran
00028 else
00029 LINK_LIBS = -lfrtbegin -lg2c
00030 endif
00031
00032 ################################################################################
00033
00034 BINDIR = bin
00035 LIBDIR = lib
00036
00037 ############################## Compiler options #################################
00038
00039 CXX = g++
00040 F77 = g77 #Fortran compiler (needed?)
00041 CXXFLAGS = -O2 -Wall -fPIC -pthread $(INCLUDES)
00042 FFLAGS = -O2 -fno-second-underscore $(INCLUDES)
00043 #LD = g++ #needed?
00044
00045
00046 .SUFFIXES: .o .cc .f .exe
00047
00048 ################################################################################
00049 # instructions for building a .o file from a .cxx file
00050 #
00051 #.cc.o: $(HDRS) $<
00052 # @echo "Compiling $< with $(CXX) $(CXXFLAGS) "
00053 # @$(CXX) $(CXXFLAGS) -c $< -o $@
00054
00055 ################################################################################
00056 # instructions for building a .o file from a .f file
00057 #
00058 .f.o: $<
00059 @echo "Compiling $< with $(F77) ..."
00060 @$(F77) $(FFLAGS) -c $< -o $@
00061