/[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.47 by pamelats, Wed Dec 30 14:36:50 2009 UTC revision 1.55 by mocchiut, Fri Jan 17 12:56:49 2014 UTC
# Line 1  Line 1 
1  # Tracker flight analysis software  # Tracker flight analysis software
2  # SOFTWARE VERSION  # SOFTWARE VERSION
3  VER= v6r03  VER= v6r11
4  DEBUG=0  DEBUG=0
5  #  #
6  include ../Make.def  include ../Make.def
# Line 33  DIRINC=inc Line 33  DIRINC=inc
33  DIRDOC=doc  DIRDOC=doc
34  DIRMACROS=macros  DIRMACROS=macros
35  DIRCALIB=calib  DIRCALIB=calib
36    
37  # Here the  PAMELA environmental variables to be checked  # Here the  PAMELA environmental variables to be checked
38  PAM_ENV= PAM_BIN_env PAM_LIB_env PAM_INC_env PAM_DOC_env PAM_YODA_env  PAM_ENV= PAM_BIN_env PAM_LIB_env PAM_INC_env PAM_DOC_env PAM_YODA_env
39  # Here the local variables used to build the targets  # Here the local variables used to build the targets
# Line 99  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 154  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 169  ${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.47  
changed lines
  Added in v.1.55

  ViewVC Help
Powered by ViewVC 1.1.23