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

Diff of /DarthVader/CalorimeterLevel2/Makefile

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

revision 1.10 by mocchiut, Mon Nov 20 12:08:50 2006 UTC revision 1.14 by mocchiut, Thu Jan 11 16:07:59 2007 UTC
# Line 1  Line 1 
1  # Calorimeter flight analysis software  # Calorimeter flight analysis software
2  # SOFTWARE VERSION  # SOFTWARE VERSION
3  VER= v3r08  VER= v4r03
4  # An almost general purpouse Makefile for PAMELA repository  # An almost general purpouse Makefile for PAMELA repository
5  # Let's start with some usefull definition for colorize the echo  # Let's start with some usefull definition for colorize the echo
6  RED='\E[1;31;40m'  RED='\E[1;31;40m'
# Line 79  CSRCS=${DIRSRC}/delay.c Line 79  CSRCS=${DIRSRC}/delay.c
79  COBJS=$(CSRCS:${DIRSRC}%.c=${DIRLIB}%.o)  COBJS=$(CSRCS:${DIRSRC}%.c=${DIRLIB}%.o)
80    
81  # -- CPP - ROOT libraries --  # -- CPP - ROOT libraries --
82  LIBROOTSRCS=${DIRSRC}/CaloLevel2.cpp  LIBROOTSRCS=${DIRSRC}/CaloLevel1.cpp \
83                ${DIRSRC}/CaloLevel2.cpp
84    
85  LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)  LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)
86  LIBROOTCLIBS=libCaloLevel2  LIBROOTOBJS=${DIRLIB}/millim.o
87    LIBROOTCLIBS=libCaloLevel2 libCaloLevel1
88  FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so)  FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so)
89    
90  # -- CPP - NON-ROOT libraries --  # -- CPP - NON-ROOT libraries --
# Line 111  FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPP Line 113  FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPP
113  # Other objects to install  # Other objects to install
114  EXESRCS=${DIRBIN}/CalorimeterLevel2  EXESRCS=${DIRBIN}/CalorimeterLevel2
115    
116  INCSRCS=${DIRINC}/CaloLevel2.h ${DIRINC}/CaloStruct.h ${DIRINC}/CaloProcessing.h ${DIRINC}/CaloCore.h  INCSRCS=${DIRINC}/CaloLevel1.h ${DIRINC}/CaloLevel2.h ${DIRINC}/CaloStruct.h ${DIRINC}/CaloProcessing.h ${DIRINC}/CaloCore.h
117    
118  MACROSSRCS=  MACROSSRCS=
119    
# Line 162  ${DIRLIB}/%.o: ${DIRSRC}/%.for Line 164  ${DIRLIB}/%.o: ${DIRSRC}/%.for
164          @(${EGREEN} "Creating F77 object file: "${WHITE} "`basename $@`"; ${RESET})          @(${EGREEN} "Creating F77 object file: "${WHITE} "`basename $@`"; ${RESET})
165          @${F77} ${F77FLAGS} -c -o $@ ${DIRSRC}/`basename ${@} .o`.for -I${DIRINC}          @${F77} ${F77FLAGS} -c -o $@ ${DIRSRC}/`basename ${@} .o`.for -I${DIRINC}
166    
167  ${LIBROOTLIBS}: ${LIBROOTSRCS}  ${LIBROOTLIBS}: ${LIBROOTSRCS} ${FOBJS}
168          @(${EGREEN} "ROOTCINT - creating file: "${WHITE} "`basename $(@F) _${VER}.so | sed s/lib//`Dict.cpp"; ${RESET})          @(${EGREEN} "ROOTCINT - creating file: "${WHITE} "`basename $(@F) _${VER}.so | sed s/lib//`Dict.cpp"; ${RESET})
169  #  #
170  #       Create *Dict.cpp and *Dict.h  #       Create *Dict.cpp and *Dict.h
# Line 179  ${LIBROOTLIBS}: ${LIBROOTSRCS} Line 181  ${LIBROOTLIBS}: ${LIBROOTSRCS}
181  #       create .so  #       create .so
182  #  #
183          @(${EGREEN} "Creating shared library: "${WHITE} "`basename $@`"; ${RESET})          @(${EGREEN} "Creating shared library: "${WHITE} "`basename $@`"; ${RESET})
184          @${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ -lg2c -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ ${SUBINC} -I${PAM_INC}/ ${DIRTOP}/${DIRLIB}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${DIRTOP}/${DIRLIB}/`basename $(@F) _${VER}.so | sed s/lib//`Dict.o 1>/dev/null          @${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ -lg2c -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ ${SUBINC} -I${PAM_INC}/ ${DIRTOP}/${DIRLIB}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${DIRTOP}/${DIRLIB}/`basename $(@F) _${VER}.so | sed s/lib//`Dict.o ${LIBROOTOBJS} 1>/dev/null
185          @ln -sf  ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F))          @ln -sf  ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F))
186    
187  ${LIBCPPLIBS}: ${LIBSRCS} ${COBJS} ${FOBJS}  ${LIBCPPLIBS}: ${LIBSRCS} ${COBJS} ${FOBJS}

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.23