############################################################################## # In order to compile and run MC-TESTER without autoconfig # # copy this file into main MC-TESTER directory and rename it 'make.inc' # # you will need to adjust it to your platform # # WARNING: 'make.inc' will be deleted if 'make Clean' is executed # # use 'make clean' # ############################################################################## ############################### # 1) paths # ############################### # Absolute path to HepMC -- required for additinal library to be compiled. HEPMCLOCATION = # To compile example-C++/pythia (to run see below) PYTHIALOCATION = # Absolute path to installation directory (will be used if you 'make install') PREFIX = /usr/local/ ############################### # 2) compiler linker etc # ############################### # Fortran compiler and its flags. If you have g++ version 4.1 or later # use gfortran, otherwise try g77 or f77. (check the g++ version by typing # 'g++ --version'. Flags for fortran compiler normally should work unchanged F77 = gfortran F77FLAGS = -g -O2 -fPIC -fno-automatic -fno-backslash -ffixed-line-length-132 FFLAGS = $(F77FLAGS) # Linker. 'ld' works fine in most cases, but to ensure it's called properly, # The fortran compiler is used to invoke the linker. These variables # should normally be left intact LD = $(F77) LDFLAGS = -g SOFLAGS = -shared RANLIB = ranlib AR = ar DIFF = diff -ib # Preprocessor. The best one is of course 'cpp', but if not accessible # try 'g++ -E' or 'gcc -E'. All three flags are necessary CPP = cpp CPPFLAGS= -C -P -traditional-cpp # C++ compiler and its flags. If other than default version is needed, # try 'g++-34', 'g++-41' or 'g++34', 'g++41' etc. (if they exist, which # can be checked by typing the appropriate name in console) CXX = g++ CXXFLAGS = -g -O2 -fPIC -Wall -D_USE_ROOT_ # C compiler and its flags. Not used by TAUOLA, but needed by SANC library. # Behavies in the same way as C++ compiler. GCC = gcc GCCFLAGS= -O3 -fomit-frame-pointer -DHAVE_UNDERSCORE ########################################################### # 4) Declarations (this section should be left untouched) # ########################################################### USE_ROOT = yes ROOTCFLAGS := $(shell root-config --cflags) ROOTGLIBS := $(shell root-config --libs) XLIB = -L/usr/X11R6/lib -lXpm -lX11 -lm -ldl -rdynamic ROOTLIB = $(ROOTLIBS) $(XLIB) ROOTBIN := $(shell root-config --bindir) override EXT_LIBS += $(ROOTLIB) override CXXFLAGS += $(ROOTCFLAGS) ############################################ # 4) commands to run examples-C++/pythia # ############################################ ############################################################################## # invoke commands # # export PYTHIA8DATA=/xmldoc # # export PATH=:${PATH} # # export LD_LIBRARY_PATH=:${LD_LIBRARY_PATH} # ############################################################################## ############################### # 5) some info # ############################### ############################################################################## # # # PYTHIA 8.1: PYTHIALOCATION must be set to Pythia main directory. Pythia # # must be compiled with HepMC. Global variable PYTHIA8DATA must # # be set. Try: # # export PYTHIA8DATA=/xmldoc # # same as PYTHIALOCATION # # ROOT: ROOT must also be installed. Its binaries must be located in # # $PATH global variable. Check it by executing 'root' in # # console. If root is not set, try: # # export PATH=:${PATH} # # Also, for rootcint, ROOT libraries must be provided. Try: # # export LD_LIBRARY_PATH=:${LD_LIBRARY_PATH} # # WARNING: Check that all is compiled/linked with same versions of # # compilers, HepMC etc. # ##############################################################################