/[PAMELA software]/PamelaDigitizer/Makefile
ViewVC logotype

Diff of /PamelaDigitizer/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by mocchiut, Thu Sep 25 08:49:42 2008 UTC revision 1.18 by mocchiut, Fri Jan 17 13:08:41 2014 UTC
# Line 1  Line 1 
1  # PamelaDigitizer  # PamelaDigitizer
2  # SOFTWARE VERSION  # SOFTWARE VERSION
3  VER= v3r00  VER= v3r06
4  # An almost general purpouse Makefile for PAMELA repository  # An almost general purpouse Makefile for PAMELA repository
5  # Let's start with some useful definition to make the echo colored  # Let's start with some useful definition to make the echo colored
6  RED='\E[1;31;40m'  RED='\E[1;31;40m'
# Line 42  ROOTCINT=rootcint Line 42  ROOTCINT=rootcint
42    
43  # Compilers settings  # Compilers settings
44  ROOTCFLAGS  =`root-config --cflags`  ROOTCFLAGS  =`root-config --cflags`
45  ROOTLDFLAGS =`root-config --ldflags`  ROOTLDFLAGS =`root-config --ldflags`
46  ROOTLIBS    =`root-config --libs` -lHbook  ROOTLIBS    =`root-config --libs` -lHbook
47  CERNLIBS    =`cernlib_noshift kernlib,packlib,genlib`  #CERNLIBS    =`cernlib_noshift kernlib,packlib,genlib`
48  F77LIBS     =-lg2c -lnsl  CERNLIBS    =
49    #F77LIBS     =-lg2c -lnsl
50    F77LIBS     =-lnsl
51  SYSLIBS     =-lm -ldl -rdynamic  SYSLIBS     =-lm -ldl -rdynamic
52  LD          =g++  LD          =g++
53  CXXFLAGS= -O3 -Wall -fPIC ${ROOTCFLAGS} ${PAM_BIT}  CXXFLAGS= -O3 -Wall -fPIC ${ROOTCFLAGS} ${PAM_BIT}
54  #CXXFLAGS= -g -Wall -O ${ROOTCFLAGS} ${PAM_BIT}  #CXXFLAGS= -g -Wall -O ${ROOTCFLAGS} ${PAM_BIT}
55  # flags needed on the pamelatov's:  # flags needed on the pamelatov's:
56  #LDFLAGS = $(PAM_BIT)  
57  LDFLAGS = -lmathlib -lpacklib -lkernlib -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib $(PAM_BIT)  #LDFLAGS = $(PAM_BIT) -g -lmathlib -lpacklib -lkernlib -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib
58    #LDFLAGS = -g -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib
59    LDFLAGS = $(PAM_BIT) $(CERNLIBS)
60    #LDFLAGS = -lmathlib -lpacklib -lkernlib -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib $(PAM_BIT)
61    
62  #LDFLAGS = -g -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib $(PAM_BIT)  #LDFLAGS = -g -llapack -lg2c -lm -lnsl -lcrypt -L/cern/2005/lib $(PAM_BIT)
63    
64  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
65  OBJS=$(CXXSRCS:%.cxx=%.o)  OBJS=$(CXXSRCS:%.cxx=%.o)
66    
67  CPPSRCS= CRC.cpp calcrc.cpp  CPPSRCS= CRC.cpp calcrc.cpp
# Line 88  Pamelagp2Digits: Line 94  Pamelagp2Digits:
94          @rm -f *.o          @rm -f *.o
95    
96  Digitizer: Digitizer.o ${OBJS} ${DICO}  Digitizer: Digitizer.o ${OBJS} ${DICO}
97          $(LD) $(LDFLAGS) -o $@ $^ ${ROOTLIBS} ${CERNLIBS} ${F77LIBS} ${SYSLIBS}          $(LD) $(LDFLAGS) -o $@ $^ ${ROOTLIBS} ${CERNLIBS} ${F77LIBS} ${SYSLIBS}
98    
99  depend: ${DEPS}  depend: ${DEPS}
100    
# Line 111  depend: ${DEPS} Line 117  depend: ${DEPS}
117    
118  mkverpath:  mkverpath:
119          @(${EGREEN} creating file DigitVersion.cxx; ${RESET})          @(${EGREEN} creating file DigitVersion.cxx; ${RESET})
120          @echo '#include <TSystem.h>' >  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 <TSystem.h>' >  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
121          @sleep 1.2          @sleep 1.2
122    
123  clean:  clean:
# Line 130  clean: Line 136  clean:
136          @echo " Removing Pamelagp2Digits ....."          @echo " Removing Pamelagp2Digits ....."
137          @rm -f ${JUNK}          @rm -f ${JUNK}
138          @rm -f Pamelagp2Digits; ${RESET}          @rm -f Pamelagp2Digits; ${RESET}
139            @touch DigitVersion.cxx
140    
141  install:  install:
142  #       @echo "TEST: copying the executable in the PAM_BIN directory";  #       @echo "TEST: copying the executable in the PAM_BIN directory";

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.23