--- PamelaDigitizer/Makefile 2008/10/15 14:03:21 1.12 +++ PamelaDigitizer/Makefile 2009/08/11 14:56:31 1.17 @@ -1,6 +1,6 @@ # PamelaDigitizer # SOFTWARE VERSION -VER= v3r03 +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' @@ -42,10 +42,12 @@ # Compilers settings ROOTCFLAGS =`root-config --cflags` -ROOTLDFLAGS =`root-config --ldflags` +ROOTLDFLAGS =`root-config --ldflags` ROOTLIBS =`root-config --libs` -lHbook -CERNLIBS =`cernlib_noshift kernlib,packlib,genlib` -F77LIBS =-lg2c -lnsl +#CERNLIBS =`cernlib_noshift kernlib,packlib,genlib` +CERNLIBS = +#F77LIBS =-lg2c -lnsl +F77LIBS =--lnsl SYSLIBS =-lm -ldl -rdynamic LD =g++ CXXFLAGS= -O3 -Wall -fPIC ${ROOTCFLAGS} ${PAM_BIT} @@ -59,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 @@ -92,7 +94,7 @@ @rm -f *.o Digitizer: Digitizer.o ${OBJS} ${DICO} - $(LD) $(LDFLAGS) -o $@ $^ ${ROOTLIBS} ${CERNLIBS} ${F77LIBS} ${SYSLIBS} + $(LD) $(LDFLAGS) -o $@ $^ ${ROOTLIBS} ${CERNLIBS} ${F77LIBS} ${SYSLIBS} depend: ${DEPS} @@ -115,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: @@ -134,6 +136,7 @@ @echo " Removing Pamelagp2Digits ....." @rm -f ${JUNK} @rm -f Pamelagp2Digits; ${RESET} + @touch DigitVersion.cxx install: # @echo "TEST: copying the executable in the PAM_BIN directory";