/[PAMELA software]/DarthVader/Makefile
ViewVC logotype

Diff of /DarthVader/Makefile

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

revision 1.1 by mocchiut, Fri May 19 13:15:25 2006 UTC revision 1.4 by mocchiut, Wed May 31 11:24:38 2006 UTC
# Line 82  LIBCPPCLIBS= Line 82  LIBCPPCLIBS=
82  FULLLIBCPPLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so)  FULLLIBCPPLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so)
83    
84  # -- CPP - Executables --  # -- CPP - Executables --
85  CXXEXESRCS=${DIRSRC}/DarthVader.cpp  CXXEXESRCS=${DIRSRC}/DarthVader.cpp \
86               ${DIRSRC}/R2-D2.cpp
87  CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o)  CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o)
88  CXXEXELIBS:=DarthVader  CXXEXELIBS:=DarthVader R2-D2
89    
90  # -- list of tracker objects needed to link  # -- list of tracker objects needed to link
91  #TRKOBJS=${DIRTOP}/../lib2/libTrkLevel2.so ${DIRTOP}/../lib2/libtrack.so  #TRKOBJS=${DIRTOP}/../lib2/libTrkLevel2.so ${DIRTOP}/../lib2/libtrack.so
92  #TRKOBJS=$(shell for lib in `ls ${DIRLIB}`; do echo ${lib}; done)  #TRKOBJS=$(shell for lib in `ls ${DIRLIB}`; do echo ${lib}; done)
93  OBJS=${DIRLIB}/*  #OBJS=${DIRLIB}/*.*
94    OBJS=$(shell cd ${DIRLIB}&>/dev/null;for file in `ls *.*`; do if [ $${file} != "" ] && [ $${file} != "DarthVader.o" ] && [ $${file} != "R2-D2.o" ]; then echo ${DIRLIB}/$${file}; fi; done)
95  #TRKOBJS=  #TRKOBJS=
96    
97  # -- directory where to find tracker headers needed to compile  # -- directory where to find tracker headers needed to compile
# Line 104  SUBINC=$(shell for dir in `echo ${SUBDIR Line 106  SUBINC=$(shell for dir in `echo ${SUBDIR
106  FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPPLIBS}  FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPPLIBS}
107    
108  # Other objects to install  # Other objects to install
109  EXESRCS=${DIRBIN}/DarthVader  EXESRCS=${DIRBIN}/DarthVader ${DIRBIN}/R2-D2
110    
111  INCSRCS=  INCSRCS=
112    
# Line 206  ${LIBCPPLIBS}: ${LIBSRCS} ${COBJS} ${FOB Line 208  ${LIBCPPLIBS}: ${LIBSRCS} ${COBJS} ${FOB
208    
209  ${CXXEXELIBS}: ${CPPOBJS} ${COBJS} ${CXXEXEOBJS}  ${CXXEXELIBS}: ${CPPOBJS} ${COBJS} ${CXXEXEOBJS}
210          @(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET})          @(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET})
211  #       @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRLIB}/$@.o ${FULLROOTCLIBS} ${FULLLIBCPPLIBS} ${CPPOBJS} ${FOBJS} ${TRKOBJS} ${PAM_YODA}/lib/libyoda.so -I${DIRINC} -I${PAM_INC} -I${PAM_YODA}/include/yoda/ -lThread `root-config --cflags --glibs` `cernlib mathlib`          @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRTOP}/${DIRLIB}/$@.o ${OBJS} ${PAM_YODA}/lib/libyoda.so -lThread `root-config --cflags --glibs` `cernlib mathlib`
         @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${OBJS} ${PAM_YODA}/lib/libyoda.so -lThread `root-config --cflags --glibs` `cernlib mathlib`  
212    
213  # A small target to check environmental variables  # A small target to check environmental variables
214  %_env:  %_env:
# Line 387  for i in ${TOBEMOVED} ; do \ Line 388  for i in ${TOBEMOVED} ; do \
388  wv=$${i##/*/}; \  wv=$${i##/*/}; \
389  dest=$${i/$${wv}/}; \  dest=$${i/$${wv}/}; \
390  ${EYELLOW} " Copying directory: "${WHITE} ${ORIGIN}/$${i##/*/} ;\  ${EYELLOW} " Copying directory: "${WHITE} ${ORIGIN}/$${i##/*/} ;\
391  ${EYELLOW} "          to: "${WHITE} $${i} ; ${RESET}; \  ${EYELLOW} "          to: "${WHITE} ${PAM_CALIB} ; ${RESET}; \
392  cp -rf ${ORIGIN}/$${i##/*/} $${i}; \  cp -rf ${ORIGIN}/$${i##/*/} ${PAM_CALIB}; \
393  done  done
394  endef  endef
395    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.23