/[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.54 by mocchiut, Fri Jan 17 10:14:36 2014 UTC
# Line 1  Line 1 
1  # Tracker flight analysis software  # Tracker flight analysis software
2  # SOFTWARE VERSION  # SOFTWARE VERSION
3  VER= v6r07  VER= v6r10
4  DEBUG=0  DEBUG=0
5  #  #
6  include ../Make.def  include ../Make.def
# Line 100  LIBCPPSRCS=${DIRSRC}/TrkStruct.cpp \ Line 100  LIBCPPSRCS=${DIRSRC}/TrkStruct.cpp \
100             ${DIRSRC}/TrkCore.cpp \             ${DIRSRC}/TrkCore.cpp \
101  #          ${DIRSRC}/TrkLevel0.cpp  #          ${DIRSRC}/TrkLevel0.cpp
102    
103  LIBCPPLIBS=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)  LIBCPPLIBSTRK=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)
104  #LIBCPPCLIBS=libTrkLevel2 libTrkLevel0  #LIBCPPCLIBS=libTrkLevel2 libTrkLevel0
105  LIBCPPCLIBS= libTrkStruct libTrkProcess libTrkCore libTrkVerl2 #libTrkLevel0  LIBCPPCLIBS= libTrkStruct libTrkProcess libTrkCore libTrkVerl2 #libTrkLevel0
106  FULLCPPCLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so)  FULLCPPCLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so)
# Line 155  ROOTINC=$$${shell root-config --incdir} Line 155  ROOTINC=$$${shell root-config --incdir}
155  NROOTINC=${shell root-config --incdir}  NROOTINC=${shell root-config --incdir}
156  # Let's start  # Let's start
157  #all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${FOBJS} ${COBJS} ${CXXEXELIBS}  #all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${FOBJS} ${COBJS} ${CXXEXELIBS}
158  all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBS}  all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBSTRK}
159  all:  all:
160  #       @echo -e ${GREEN} ""  #       @echo -e ${GREEN} ""
161  #       @(${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 170  ${DIRLIB}/%.o : ${DIRSRC}/F77/%.f
170          @(${EGREEN} "Creating tracker F77 object file: "${WHITE} "$@"; ${RESET})          @(${EGREEN} "Creating tracker F77 object file: "${WHITE} "$@"; ${RESET})
171          @${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}/
172    
173    
174    ${LIBCPPLIBSTRK}: ${LIBSRCS} ${COBJS} ${FOBJS}
175    #
176    #       create .o
177    #
178            @(${EGREEN} "Compiling CPP file: "${WHITE} "`basename $(@F) _${VER}.so | sed s/lib//`.cpp"; ${RESET})
179            @${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
180    #
181    #       create .so
182    #
183            @(${EGREEN} "Creating shared library: "${WHITE} "`basename $@`"; ${RESET})
184            @${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ $(LG2C) ${DIRTOP}/${DIRLIB}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${FOBJS} ${COBJS} 1>/dev/null
185            @ln -sf  ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F))
186    
187  # A small target to check environmental variables  # A small target to check environmental variables
188  %_env:  %_env:
189          @${test_env}          @${test_env}

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

  ViewVC Help
Powered by ViewVC 1.1.23