--- PamCut/makefile 2009/06/15 14:43:30 1.3 +++ PamCut/makefile 2009/12/04 14:38:36 1.6 @@ -28,15 +28,19 @@ # to the compiler options for the main analysis program. OPTIMIZE = -g3 #-DDEBUGPAMCUT + # Library flags # Pamela software is modular, so some libraries may not be available in some istallations. # To avoid linking problems, here you can define flags to exclude those parts of the # PamCut software which make use of unavailable libraries. Remember to place # the code to be excluded between proper preprocessor directives. See the documentation or the cut # TofNucleiZCut for an example. -EXCLUSIONFLAGS = #-DNO_TOFNUCLEI -DNO_CALONUCLEI -DNO_TRKNUCLEI - +# Since PamCut headers may refer to the optional libraries, it's important to define the same +# flags when compiling the analysis code. Otherwise, analysis code will include PamCut headers which, +# if no exclusion flag is set, will try to include optional software headers. +# Conversely, if you use optional libraries remember to tell it to the linker. +EXCLUSIONFLAGS = -DNO_CALONUCLEI -DNO_TRKNUCLEI -DNO_TOFNUCLEI # Put below the files on which every .cpp must depend on, ie., those files that, # if modified, will trigger a complete recompilation of the project. @@ -62,8 +66,13 @@ endif # All Target -all: libPamCut.so version - +all: libPamCut.so + @echo + @echo "**** Compiler version and compilation host ****" + @$(C++) --version | grep GCC + @hostname + @echo + # Tool invocations libPamCut.so: $(OBJS) $(USER_OBJS) @echo 'Building target: $@' @@ -96,12 +105,5 @@ fi @echo PamCut installed. -version: - @echo - @echo "**** Compiler version and compilation host ****" - @$(C++) --version | grep GCC - @hostname - @echo - -.PHONY: all clean distclean install dependents version +.PHONY: all clean distclean install