--- PamelaDigitizer/Makefile 2009/02/01 17:01:50 1.14 +++ PamelaDigitizer/Makefile 2009/08/11 14:56:31 1.17 @@ -1,6 +1,6 @@ # PamelaDigitizer # SOFTWARE VERSION -VER= v3r04 +VER= v3r05 # An almost general purpouse Makefile for PAMELA repository # Let's start with some useful definition to make the echo colored RED='\E[1;31;40m' @@ -46,7 +46,8 @@ ROOTLIBS =`root-config --libs` -lHbook #CERNLIBS =`cernlib_noshift kernlib,packlib,genlib` CERNLIBS = -F77LIBS =-lg2c -lnsl +#F77LIBS =-lg2c -lnsl +F77LIBS =--lnsl SYSLIBS =-lm -ldl -rdynamic LD =g++ CXXFLAGS= -O3 -Wall -fPIC ${ROOTCFLAGS} ${PAM_BIT} @@ -60,7 +61,7 @@ #LDFLAGS = -g -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib $(PAM_BIT) -CXXSRCS= Digitizer.cxx DigitizeRunHeader.cxx DigitizeCalo.cxx DigitizeTOF.cxx DigitizeAC.cxx DigitizeS4.cxx DigitizeND.cxx Write.cxx DigitizeTRK.cxx Pamelagp2Digits.cxx DigitVersion.cxx +CXXSRCS= Digitizer.cxx DigitizePSCU.cxx DigitizeCalo.cxx DigitizeTOF.cxx DigitizeAC.cxx DigitizeS4.cxx DigitizeND.cxx Write.cxx DigitizeTRK.cxx Pamelagp2Digits.cxx DigitVersion.cxx OBJS=$(CXXSRCS:%.cxx=%.o) CPPSRCS= CRC.cpp calcrc.cpp @@ -116,7 +117,7 @@ mkverpath: @(${EGREEN} creating file DigitVersion.cxx; ${RESET}) - @echo '#include ' > DigitVersion.cxx; echo ' char *DigitizerInfo(bool print){ if ( print ) printf("\nPAMELA PamelaDigitizer version: ${VER}\n\nCompiled on '${TODAY}' with: '${GCCVER}'\n\nOn: '${UNAMEA}'\n\n"); return("${VER}"); }' >> DigitVersion.cxx + @echo '#include ' > DigitVersion.cxx; echo ' const char *DigitizerInfo(bool print){ if ( print ) printf("\nPAMELA PamelaDigitizer version: ${VER}\n\nCompiled on '${TODAY}' with: '${GCCVER}'\n\nOn: '${UNAMEA}'\n\n"); return("${VER}"); }' >> DigitVersion.cxx @sleep 1.2 clean: