/[PAMELA software]/DarthVader/TrackerLevel2/Makefile
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/Makefile

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

revision 1.51 by mocchiut, Tue Nov 5 14:02:12 2013 UTC revision 1.56 by pam-fi, Thu Feb 27 11:24:42 2014 UTC
# Line 1  Line 1 
1  # Tracker flight analysis software  # Tracker flight analysis software
2  # SOFTWARE VERSION  # SOFTWARE VERSION
3  VER= v6r07  VER= v6r11
4  DEBUG=0  DEBUG=0
5  #  #
6  include ../Make.def  include ../Make.def
# Line 66  LIBROOTSRCS=${DIRSRC}/TrkParams.cpp \ Line 66  LIBROOTSRCS=${DIRSRC}/TrkParams.cpp \
66          ${DIRSRC}/TrkLevel1.cpp \          ${DIRSRC}/TrkLevel1.cpp \
67          ${DIRSRC}/TrkLevel0.cpp \          ${DIRSRC}/TrkLevel0.cpp \
68          ${DIRSRC}/TrkHough.cpp \          ${DIRSRC}/TrkHough.cpp \
69          ${DIRSRC}/TrkCalib.cpp          ${DIRSRC}/TrkCalib.cpp \
70            ${DIRSRC}/ExtTrack.cpp
71    
72  #LIBROOTSRCS=    #LIBROOTSRCS=  
73  LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)  LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)
# Line 86  LIBROOTOBJS=${DIRLIB}/readB.o \ Line 87  LIBROOTOBJS=${DIRLIB}/readB.o \
87          ${DIRLIB}/cncomp.o  \          ${DIRLIB}/cncomp.o  \
88          ${DIRLIB}/filladc.o  \          ${DIRLIB}/filladc.o  \
89          ${DIRLIB}/reductionflight.o          ${DIRLIB}/reductionflight.o
90  LIBROOTCLIBS= libTrkParams libTrkLevel2 libTrkLevel1 libTrkLevel0 libTrkHough libTrkCalib  LIBROOTCLIBS= libTrkParams libTrkLevel2 libTrkLevel1 libTrkLevel0 libTrkHough libTrkCalib libExtTrack
91    
92  #LIBROOTCLIBS=  #LIBROOTCLIBS=
93  FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so)  FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so)
# Line 98  LIBCPPSRCS=${DIRSRC}/TrkStruct.cpp \ Line 99  LIBCPPSRCS=${DIRSRC}/TrkStruct.cpp \
99             ${DIRSRC}/TrkProcess.cpp \             ${DIRSRC}/TrkProcess.cpp \
100             ${DIRSRC}/TrkVerl2.cpp \             ${DIRSRC}/TrkVerl2.cpp \
101             ${DIRSRC}/TrkCore.cpp \             ${DIRSRC}/TrkCore.cpp \
102               ${DIRSRC}/ExtTrkingAlg.cpp \
103  #          ${DIRSRC}/TrkLevel0.cpp  #          ${DIRSRC}/TrkLevel0.cpp
104    
105  LIBCPPLIBS=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)  LIBCPPLIBSTRK=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)
106  #LIBCPPCLIBS=libTrkLevel2 libTrkLevel0  #LIBCPPCLIBS=libTrkLevel2 libTrkLevel0
107  LIBCPPCLIBS= libTrkStruct libTrkProcess libTrkCore libTrkVerl2 #libTrkLevel0  LIBCPPCLIBS= libTrkStruct libTrkProcess libTrkCore libTrkVerl2 libExtTrkingAlg #libTrkLevel0
108  FULLCPPCLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so)  FULLCPPCLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so)
109  #-------------------------------------------------  #-------------------------------------------------
110  # librerie F77 NON utilizzabili da root  # librerie F77 NON utilizzabili da root
# Line 128  SUBINC=$(shell for dir in `echo ${SUBDIR Line 130  SUBINC=$(shell for dir in `echo ${SUBDIR
130  # variabili per l'installazione  # variabili per l'installazione
131  EXESRCS=${DIRBIN}/TrackerLevel2  EXESRCS=${DIRBIN}/TrackerLevel2
132  INCSRCS= \  INCSRCS= \
133            ${DIRINC}/ExtTrack.h \
134            ${DIRINC}/ExtTrkingAlg.h \
135          ${DIRINC}/TrkLevel2.h \          ${DIRINC}/TrkLevel2.h \
136          ${DIRINC}/TrkLevel1.h \          ${DIRINC}/TrkLevel1.h \
137          ${DIRINC}/TrkLevel0.h \          ${DIRINC}/TrkLevel0.h \
# Line 155  ROOTINC=$$${shell root-config --incdir} Line 159  ROOTINC=$$${shell root-config --incdir}
159  NROOTINC=${shell root-config --incdir}  NROOTINC=${shell root-config --incdir}
160  # Let's start  # Let's start
161  #all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${FOBJS} ${COBJS} ${CXXEXELIBS}  #all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${FOBJS} ${COBJS} ${CXXEXELIBS}
162  all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBS}  all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBSTRK}
163  all:  all:
164  #       @echo -e ${GREEN} ""  #       @echo -e ${GREEN} ""
165  #       @(${EGREEN} " Finished, now you can install the package \n  (use: make install or make upgrade or make forceinstall) "; ${RESET})  #       @(${EGREEN} " Finished, now you can install the package \n  (use: make install or make upgrade or make forceinstall) "; ${RESET})
# Line 170  ${DIRLIB}/%.o : ${DIRSRC}/F77/%.f Line 174  ${DIRLIB}/%.o : ${DIRSRC}/F77/%.f
174          @(${EGREEN} "Creating tracker F77 object file: "${WHITE} "$@"; ${RESET})          @(${EGREEN} "Creating tracker F77 object file: "${WHITE} "$@"; ${RESET})
175          @${F77} ${F77FLAGS} -c -o $@ ${DIRSRC}/F77/`basename ${@} .o`.f -I${DIRTOP}/${DIRINC}/F77 -I${NROOTINC} ${SUBINC} -I${PAM_YODA}/include/yoda -I${PAM_INC}/          @${F77} ${F77FLAGS} -c -o $@ ${DIRSRC}/F77/`basename ${@} .o`.f -I${DIRTOP}/${DIRINC}/F77 -I${NROOTINC} ${SUBINC} -I${PAM_YODA}/include/yoda -I${PAM_INC}/
176    
177    
178    ${LIBCPPLIBSTRK}: ${LIBSRCS} ${COBJS} ${FOBJS}
179    #
180    #       create .o
181    #
182            @(${EGREEN} "Compiling CPP file: "${WHITE} "`basename $(@F) _${VER}.so | sed s/lib//`.cpp"; ${RESET})
183            @${CXX} ${CXXFLAGS} -c ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`.cpp -o ${DIRTOP}/${DIRLIB}/`basename $(@F) _${VER}.so | sed s/lib//`.o -I${DIRTOP}/${DIRINC} -I${DIRTOP} ${SUBINC} -I${PAM_YODA}/include/yoda/ -I${PAM_INC}/ -I${NROOTINC} -I${DIRTOP}/../CalorimeterLevel2/inc  -I${DIRTOP}/../ToFLevel2/inc -I${DIRTOP}/../TriggerLevel2/inc -I${DIRTOP}/../OrbitalInfo/inc
184    #
185    #       create .so
186    #
187            @(${EGREEN} "Creating shared library: "${WHITE} "`basename $@`"; ${RESET})
188            @${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ $(LG2C) ${DIRTOP}/${DIRLIB}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${FOBJS} ${COBJS} 1>/dev/null
189            @ln -sf  ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F))
190    
191  # A small target to check environmental variables  # A small target to check environmental variables
192  %_env:  %_env:
193          @${test_env}          @${test_env}

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.56

  ViewVC Help
Powered by ViewVC 1.1.23