/[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.51 by mocchiut, Mon Mar 29 10:08:25 2010 UTC
# Line 1  Line 1 
1  # DarthVader flight analysis software  # DarthVader flight analysis software
2  # SOFTWARE VERSION  # SOFTWARE VERSION IS
3  VER= v0r01  VER= v9r01
4  # An almost general purpouse Makefile for PAMELA repository  #
5  # Let's start with some usefull definition for colorize the echo  include Make.def
6  RED='\E[1;31;40m'  #CERNLIB
7  GREEN='\E[1;32;40m'  CERNLIB=./docs/cernlib_pam
8  YELLOW='\E[1;33;40m'  #CERNLIB=cernlib
9  BLUE='\E[1;34;40m'  
 WHITE='\E[1;37;40m'  
 VIOLET='\E[1;35;40m'  
 CYAN='\E[1;36;40m'  
 # Here the echo definition to use them  
 EVIOLET=echo -e ${VIOLET}  
 ECYAN=echo -e ${CYAN}  
 ERED=echo -e ${RED}  
 EGREEN=echo -e ${GREEN}  
 EYELLOW=echo -e ${YELLOW}  
 EBLUE=echo -e ${BLUE}  
 EWHITE=echo -e ${WHITE}  
 # Reset the terminal  
 RESET=tput sgr0  
 # Here the variables used to override the standard make flags  
 #MAKE  
 MAKE=make  
 # C  
 CC=gcc  
 #CFLAGS=-Wall -O -fPIC -pthread -g  
 CFLAGS=-Wall -O -fPIC -pthread  
 # Enviroment:  
 GCCVER=`gcc --version | head -1`  
 UNAMEA=`uname -a`  
 TODAY=`date`  
 # F77  
 F77=g77  
 #F77FLAGS=  -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -g -extend_source -static -fno-backslash  
 F77FLAGS=  -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -extend_source -static -fno-backslash  
 # C++  
 CXX=g++  
 #CXXFLAGS=-Wall -O -fPIC -pthread -g  
 CXXFLAGS=-Wall -O -fPIC -pthread  
 # ROOTCINT  
 ROOTCINT=rootcint  
10  # Here the variables definig the local directories  # Here the variables definig the local directories
11  DIRTOP=${shell pwd}  DIRTOP=${shell pwd}
12  #DIRLIB=../lib/${ARCH}  #DIRLIB=../lib/${ARCH}
# Line 82  LIBCPPCLIBS= Line 48  LIBCPPCLIBS=
48  FULLLIBCPPLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so)  FULLLIBCPPLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so)
49    
50  # -- CPP - Executables --  # -- CPP - Executables --
51  CXXEXESRCS=${DIRSRC}/DarthVader.cpp  CXXEXESRCS=${DIRSRC}/DarthVader.cpp
52  CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o)  CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o)
53  CXXEXELIBS:=DarthVader  CXXEXELIBS:=DarthVader
54    
55  # -- list of tracker objects needed to link  # -- list of objects needed to link
56  #TRKOBJS=${DIRTOP}/../lib2/libTrkLevel2.so ${DIRTOP}/../lib2/libtrack.so  ##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)
57  #TRKOBJS=$(shell for lib in `ls ${DIRLIB}`; do echo ${lib}; done)  OBJS=$(shell cd ${DIRLIB}&>/dev/null;for file in `ls lib*.so`; do if [ $${file} != "" ]; then echo ${DIRLIB}/$${file}; fi; done) ${CPPOBJS}
58  OBJS=${DIRLIB}/*  DARTHVLIB=${DIRLIB}/libDarthVader_${VER}.so
 #TRKOBJS=  
59    
60  # -- directory where to find tracker headers needed to compile  # -- directory where to find tracker headers needed to compile
61  #TRKHEAD=${DIRTOP}/../tracker/inc  #TRKHEAD=${DIRTOP}/../tracker/inc
62  #TRKHEAD=-I${PAM_INC} -ITrackerLevel2/inc/ -IRunInfo/inc/ -IGLTables/inc/  #TRKHEAD=-I${PAM_INC} -ITrackerLevel2/inc/ -IRunInfo/inc/ -IGLTables/inc/
63    
64  #  #
65  SUBDIR=./GLTables ./RunInfo ./S4Level2 ./NDLevel2 ./TrackerLevel2 ./TriggerLevel2 ./ToFLevel2 ./CalorimeterLevel2 ./AnticounterLevel2 ./OrbitalInfo  SUBDIR=./RunInfo ./S4Level2 ./NDLevel2 ./TrackerLevel2 ./TriggerLevel2 ./ToFLevel2 ./CalorimeterLevel2 ./AnticounterLevel2 ./OrbitalInfo
66  SUBINC=$(shell for dir in `echo ${SUBDIR}`; do echo -I$${dir}/inc; done)  SUBINC=$(shell for dir in `echo ${SUBDIR}`; do echo -I$${dir}/inc; done)
67    
68  # List of all libraries we want to install  # List of all libraries we want to install
69  FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPPLIBS}  FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPPLIBS} ${DARTHVLIB}
70    
71  # Other objects to install  # Other objects to install
72  EXESRCS=${DIRBIN}/DarthVader  EXESRCS=${DIRBIN}/DarthVader
73    
74  INCSRCS=  INCSRCS=
75    
76  MACROSSRCS=  MACROSSRCS=
77    
78  CALIBFILES=${DIRCALIB}/trk-param ${DIRCALIB}/cal-param ${DIRCALIB}/tof-param  CALIBFILES=${DIRCALIB}/trk-param ${DIRCALIB}/cal-param ${DIRCALIB}/tof-param ${DIRCALIB}/orb-param
79    
80  DOCFILES=  DOCFILES=
81    
# Line 134  NROOTINC=${shell root-config --incdir} Line 99  NROOTINC=${shell root-config --incdir}
99  #all: test mkbindir mklibdir mkverpath ${FOBJS} ${CPPOBJS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${CXXEXELIBS}  #all: test mkbindir mklibdir mkverpath ${FOBJS} ${CPPOBJS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${CXXEXELIBS}
100    
101  all:  all:
102          @for dir in `echo ${SUBDIR}`; do  \          @for dir in `echo ${SUBDIR}`; do (${EBLUE}  "Making all in $${dir}";  ${RESET}); (cd $${dir} &>/dev/null && ${MAKE} -s all); done
103           echo "Making all in $${dir}"; \  #       @for dir in `echo ${SUBDIR}`; do (${EBLUE}  "Making all in $${dir}";  ${RESET}); (cd $${dir} && ${MAKE} all); done
104           (cd $${dir} && ${MAKE} all); \          @make -s locall ;
         done; make locall  
105    
106  locall: prepare libs exe  locall: prepare libs exe
107  locall:  locall:
# Line 161  libs: prepare ${LIBROOTLIBS} ${LIBCPPLIB Line 125  libs: prepare ${LIBROOTLIBS} ${LIBCPPLIB
125  # Here some general rules to produce objects in our local dir  # Here some general rules to produce objects in our local dir
126  ${DIRLIB}/%.o: ${DIRSRC}/%.cpp  ${DIRLIB}/%.o: ${DIRSRC}/%.cpp
127          @(${EGREEN} "Creating CPP object file: "${WHITE} "`basename $@`"; ${RESET})          @(${EGREEN} "Creating CPP object file: "${WHITE} "`basename $@`"; ${RESET})
128          @${CXX} ${CXXFLAGS} -c -o $@ ${DIRSRC}/`basename ${@} .o`.cpp -I${DIRINC} ${SUBINC} -I${PAM_YODA}/include/yoda/ `root-config --cflags`          @${CXX} ${CXXFLAGS} -c -o $@ ${DIRSRC}/`basename ${@} .o`.cpp -I${DIRINC} ${SUBINC} -I${PAM_YODA}/include/yoda/ -I${PAM_INC}/ `root-config --cflags`
129    
130  ${DIRLIB}/%.o: ${DIRSRC}/%.c  ${DIRLIB}/%.o: ${DIRSRC}/%.c
131          @(${EGREEN} "Creating C object file: "${WHITE} "`basename $@`"; ${RESET})          @(${EGREEN} "Creating C object file: "${WHITE} "`basename $@`"; ${RESET})
132          @${CXX} ${CXXFLAGS} -c -o $@ ${DIRSRC}/`basename ${@} .o`.c -I${DIRINC}  -I${PAM_YODA}/include/yoda/ `root-config --cflags`          @${CXX} ${CXXFLAGS} -c -o $@ ${DIRSRC}/`basename ${@} .o`.c -I${DIRINC}  -I${PAM_YODA}/include/yoda/ -I${PAM_INC}/ `root-config --cflags`
133    
134  ${DIRLIB}/%.o: ${DIRSRC}/%.for  ${DIRLIB}/%.o: ${DIRSRC}/%.for
135          @(${EGREEN} "Creating F77 object file: "${WHITE} "`basename $@`"; ${RESET})          @(${EGREEN} "Creating F77 object file: "${WHITE} "`basename $@`"; ${RESET})
# Line 176  ${LIBROOTLIBS}: ${LIBROOTSRCS} Line 140  ${LIBROOTLIBS}: ${LIBROOTSRCS}
140  #  #
141  #       Create *Dict.cpp and *Dict.h  #       Create *Dict.cpp and *Dict.h
142  #  #
143          @${ROOTCINT} -f ${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`Dict.cpp -c -I${ROOTINC} -I${PAM_YODA}/include/yoda/ ${DIRINC}/`basename $(@F) _${VER}.so | sed s/lib//`.h ${DIRINC}/`basename $(@F) _${VER}.so | sed s/lib//`LinkDef.h          @${ROOTCINT} -f ${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`Dict.cpp -c -I${ROOTINC} -I${PAM_YODA}/include/yoda/ -I${PAM_INC}/ ${DIRINC}/`basename $(@F) _${VER}.so | sed s/lib//`.h ${DIRINC}/`basename $(@F) _${VER}.so | sed s/lib//`LinkDef.h
144  #  #
145  #       create .o  #       create .o
146  #  #
147          @(${EGREEN} "Compiling CPP file: "${WHITE} "`basename $(@F) _${VER}.so | sed s/lib//`.cpp"; ${RESET})          @(${EGREEN} "Compiling CPP file: "${WHITE} "`basename $(@F) _${VER}.so | sed s/lib//`.cpp"; ${RESET})
148          @cd ${DIRSRC} &>/dev/null && ${CXX} ${CXXFLAGS} -c `basename $(@F) _${VER}.so | sed s/lib//`.cpp -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ -I${NROOTINC};          @cd ${DIRSRC} &>/dev/null && ${CXX} ${CXXFLAGS} -c `basename $(@F) _${VER}.so | sed s/lib//`.cpp -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ -I${PAM_INC}/ -I${NROOTINC};
149          @(${EGREEN} "Compiling CPP file: "${WHITE} "`basename $(@F) _${VER}.so | sed s/lib//`Dict.cpp"; ${RESET})          @(${EGREEN} "Compiling CPP file: "${WHITE} "`basename $(@F) _${VER}.so | sed s/lib//`Dict.cpp"; ${RESET})
150          @cd ${DIRSRC} &>/dev/null && ${CXX} ${CXXFLAGS} -c `basename $(@F) _${VER}.so | sed s/lib//`Dict.cpp -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ -I${NROOTINC};          @cd ${DIRSRC} &>/dev/null && ${CXX} ${CXXFLAGS} -c `basename $(@F) _${VER}.so | sed s/lib//`Dict.cpp -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ -I${PAM_INC}/ -I${NROOTINC};
151  #  #
152  #       create .so  #       create .so
153  #  #
154          @(${EGREEN} "Creating shared library: "${WHITE} "`basename $@`"; ${RESET})          @(${EGREEN} "Creating shared library: "${WHITE} "`basename $@`"; ${RESET})
155          @${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ -lg2c -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${DIRTOP}/${DIRSRC}/`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/ -I${PAM_INC}/ ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`Dict.o 1>/dev/null
156          @ln -sf  ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F))          @ln -sf  ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F))
157    
158  ${LIBCPPLIBS}: ${LIBSRCS} ${COBJS} ${FOBJS}  ${LIBCPPLIBS}: ${LIBSRCS} ${COBJS} ${FOBJS}
# Line 196  ${LIBCPPLIBS}: ${LIBSRCS} ${COBJS} ${FOB Line 160  ${LIBCPPLIBS}: ${LIBSRCS} ${COBJS} ${FOB
160  #       create .o  #       create .o
161  #  #
162          @(${EGREEN} "Compiling CPP file: "${WHITE} "`basename $(@F) _${VER}.so | sed s/lib//`.cpp"; ${RESET})          @(${EGREEN} "Compiling CPP file: "${WHITE} "`basename $(@F) _${VER}.so | sed s/lib//`.cpp"; ${RESET})
163          @cd ${DIRSRC} &>/dev/null && ${CXX} ${CXXFLAGS} -c `basename $(@F) _${VER}.so | sed s/lib//`.cpp -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ -I${NROOTINC} ${SUBINC};          @cd ${DIRSRC} &>/dev/null && ${CXX} ${CXXFLAGS} -c `basename $(@F) _${VER}.so | sed s/lib//`.cpp -I${DIRTOP}/${DIRINC} -I${DIRTOP} ${SUBINC} -I${PAM_YODA}/include/yoda/ -I${PAM_INC}/ -I${NROOTINC};
164  #  #
165  #       create .so  #       create .so
166  #  #
167          @(${EGREEN} "Creating shared library: "${WHITE} "`basename $@`"; ${RESET})          @(${EGREEN} "Creating shared library: "${WHITE} "`basename $@`"; ${RESET})
168          @${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ -lg2c -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${SUBINC} -I${PAM_YODA}/include/yoda/ ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${FOBJS} ${COBJS} 1>/dev/null          @${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ $(LG2C) -I${DIRTOP}/${DIRINC} -I${DIRTOP} ${SUBINC} -I${PAM_YODA}/include/yoda/ -I${PAM_INC}/ ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${FOBJS} ${COBJS} 1>/dev/null
169          @ln -sf  ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F))          @ln -sf  ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F))
170    
171  ${CXXEXELIBS}: ${CPPOBJS} ${COBJS} ${CXXEXEOBJS}  ${CXXEXELIBS}: ${CPPOBJS} ${COBJS} ${CXXEXEOBJS}
172          @(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET})          @(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET})
173  #       @${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_LIB}/libGLTables.so ${PAM_LIB}/libsgp4.so ${PAM_YODA}/lib/libyoda.so -lThread `root-config --cflags --glibs` `${CERNLIB} mathlib`
174          @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${OBJS} ${PAM_YODA}/lib/libyoda.so -lThread `root-config --cflags --glibs` `cernlib mathlib`          @(${EGREEN} "Creating libDarthVader.so library: "${WHITE} "libDarthVader_${VER}.so"; ${RESET})
175            @${CXX} ${CXXFLAGS} -Xlinker -soname=libDarthVader_${VER}.so -shared -o ${DIRTOP}/${DIRLIB}/libDarthVader_${VER}.so $(LG2C) ${DIRTOP}/${DIRLIB}/libAcLevel2.so ${DIRTOP}/${DIRLIB}/libCaloLevel0.so ${DIRTOP}/${DIRLIB}/libCaloLevel1.so ${DIRTOP}/${DIRLIB}/libCaloLevel2.so  ${PAM_LIB}/libsgp4.so ${DIRTOP}/${DIRLIB}/libNDLevel2.so ${DIRTOP}/${DIRLIB}/libS4Level2.so ${DIRTOP}/${DIRLIB}/libToFLevel2.so ${DIRTOP}/${DIRLIB}/libTrigLevel2.so ${DIRTOP}/${DIRLIB}/libTrkLevel2.so ${DIRTOP}/${DIRLIB}/libTrkLevel1.so ${DIRTOP}/${DIRLIB}/libTrkLevel0.so ${DIRTOP}/${DIRLIB}/libTrkHough.so  ${DIRTOP}/${DIRLIB}/libTrkCalib.so ${DIRTOP}/${DIRLIB}/libTrkParams.so ${PAM_LIB}/libGLTables.so ${DIRTOP}/${DIRLIB}/libRunInfo.so ${DIRTOP}/${DIRLIB}/libOrbitalInfo.so ${DIRTOP}/${DIRLIB}/libOrientationInfo.so ${DIRTOP}/${DIRLIB}/libInclinationInfo.so `root-config --glibs` `${CERNLIB} mathlib`
176    
177    #       @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRTOP}/${DIRLIB}/$@.o ${OBJS} ${PAM_YODA}/lib/libyoda.so ${PAM_YODA}/lib/libutils.so -lThread `root-config --cflags --glibs` `cernlib mathlib`
178    
179  # A small target to check environmental variables  # A small target to check environmental variables
180  %_env:  %_env:
# Line 227  ${DIRLIB}: Line 194  ${DIRLIB}:
194  # Here what has to be deleted in clean target  # Here what has to be deleted in clean target
195  clean:  clean:
196          @for dir in `echo ${SUBDIR}`; do  \          @for dir in `echo ${SUBDIR}`; do  \
197           echo "Making clean in $${dir}"; \           (${EBLUE}  "Making clean in $${dir}";  ${RESET});\
198           (cd $${dir} && ${MAKE} clean); \           (cd $${dir} &>/dev/null && ${MAKE} -s clean); \
199          done; make locclean          done; make -s locclean
200    
201  locclean: TOBEDEL= ${DIRSRC}/*.o ${DIRSRC}/*Dict.cpp ${DIRSRC}/*Dict.h ${FOBJS} ${FULLLIBS} ${DIRBIN}/${CXXEXELIBS} ${CPPOBJS} ${CXXEXEOBJS} ${FULLLINKCLIBS} ${FULLMACROCLIBS} ${FULLLINKMACROCLIBS} ${DIRSRC}/DarthVaderVerl2.cpp  locclean: TOBEDEL= ${DIRSRC}/*.o ${DIRSRC}/*Dict.cpp ${DIRSRC}/*Dict.h ${FOBJS} ${FULLLIBS} ${DIRBIN}/${CXXEXELIBS} ${CPPOBJS} ${CXXEXEOBJS} ${FULLLINKCLIBS} ${FULLMACROCLIBS} ${FULLLINKMACROCLIBS} ${DIRSRC}/DarthVaderVerl2.cpp
202  locclean:  locclean:
# Line 237  locclean: Line 204  locclean:
204    
205  distclean:  distclean:
206          @for dir in `echo ${SUBDIR}`; do  \          @for dir in `echo ${SUBDIR}`; do  \
207           echo "Making distclean in $${dir}"; \          (${EBLUE}  "Making distclean in $${dir}";  ${RESET});\
208           (cd $${dir} && ${MAKE} distclean); \           (cd $${dir} &>/dev/null  && ${MAKE} -s distclean); \
209          done; make locdistclean          done; make -s locdistclean
210    
211  locdistclean: clean  locdistclean: clean
212  locdistclean: TOBEDEL= ${DIRBIN} ${DIRLIB}  locdistclean: TOBEDEL= ${DIRBIN} ${DIRLIB}
# Line 249  locdistclean: Line 216  locdistclean:
216    
217  forceinstall:  forceinstall:
218          @for dir in `echo ${SUBDIR}`; do  \          @for dir in `echo ${SUBDIR}`; do  \
219           echo "Making forceinstall in $${dir}"; \          (${EBLUE}  "Making forceinstall in $${dir}";  ${RESET});\
220           (cd $${dir} && ${MAKE} forceinstall); \           (cd $${dir} &>/dev/null && ${MAKE} -s forceinstall); \
221          done; make locforceinstall          done; make locforceinstall
222    
223  locforceinstall: FORCE=-f  locforceinstall: FORCE=-f
# Line 258  locforceinstall: install Line 225  locforceinstall: install
225    
226  upgrade:  upgrade:
227          @for dir in `echo ${SUBDIR}`; do  \          @for dir in `echo ${SUBDIR}`; do  \
228           echo "Making upgrade in $${dir}"; \          (${EBLUE}  "Making upgrade in $${dir}";  ${RESET});\
229           (cd $${dir} && ${MAKE} upgrade); \           (cd $${dir}&>/dev/null && ${MAKE} -s upgrade); \
230          done; make locupgrade          done; make -s locupgrade
231    
232  locupgrade: FORCE=-u  locupgrade: FORCE=-u
233  locupgrade: locinstall  locupgrade: locinstall
234    
235    upgradenc:
236            @for dir in `echo ${SUBDIR}`; do  \
237            (${EBLUE}  "Making upgradenc in $${dir}";  ${RESET});\
238             (cd $${dir}&>/dev/null && ${MAKE} -s upgrade); \
239            done; make -s locupgradenc
240    
241    locupgradenc: FORCE=-u
242    locupgradenc: locinstallnc
243    
244  install:  install:
245          @for dir in `echo ${SUBDIR}`; do  \          @for dir in `echo ${SUBDIR}`; do  \
246           echo "Making install in $${dir}"; \          (${EBLUE}  "Making install in $${dir}";  ${RESET});\
247           (cd $${dir} && ${MAKE} install); \           (cd $${dir} &>/dev/null && ${MAKE} -s install); \
248          done; make locinstall          done; make -s locinstall
249    
250  locinstall: installlib installinc installmacros installcalib installdoc installexe installcmacro  locinstall: installlib installinc installmacros installcalib installdoc installexe installcmacro
251    
252    locinstallnc: installlib installinc installmacros installdoc installexe installcmacro
253    
254  installlib: LINK=y  installlib: LINK=y
255  installlib: TOBEMOVED= $(FULLLIBS:${DIRLIB}%=${PAM_LIB}%)  installlib: TOBEMOVED= $(FULLLIBS:${DIRLIB}%=${PAM_LIB}%)
256  installlib: ORIGIN=${DIRLIB}  installlib: ORIGIN=${DIRLIB}
# Line 311  installdoc: Line 289  installdoc:
289          @${test_and_cp}          @${test_and_cp}
290    
291  mkverpath:  mkverpath:
292          @echo '#include <TSystem.h>' >  ${DIRTOP}/${DIRSRC}/DarthVaderVerl2.cpp; echo ' char *DarthVaderInfo(bool print){ if ( print ) printf("\nPAMELA Level2 flight package version: ${VER}\n\nCompiled on '${TODAY}' with: '${GCCVER}'\n\nOn: '${UNAMEA}'\n\n"); return("${VER}"); }' >>  ${DIRTOP}/${DIRSRC}/DarthVaderVerl2.cpp          @echo '#include <TSystem.h>' >  ${DIRTOP}/${DIRSRC}/DarthVaderVerl2.cpp; echo 'const char *DarthVaderInfo(bool print){ if ( print ) printf("\nPAMELA Level2 flight package version: ${VER}\n\nCompiled on '${TODAY}' with: '${GCCVER}'\n\nOn: '${UNAMEA}'\n\n"); return("${VER}"); }' >>  ${DIRTOP}/${DIRSRC}/DarthVaderVerl2.cpp
293          @sleep 0.8          @sleep 0.8
294    
295    
# Line 387  for i in ${TOBEMOVED} ; do \ Line 365  for i in ${TOBEMOVED} ; do \
365  wv=$${i##/*/}; \  wv=$${i##/*/}; \
366  dest=$${i/$${wv}/}; \  dest=$${i/$${wv}/}; \
367  ${EYELLOW} " Copying directory: "${WHITE} ${ORIGIN}/$${i##/*/} ;\  ${EYELLOW} " Copying directory: "${WHITE} ${ORIGIN}/$${i##/*/} ;\
368  ${EYELLOW} "          to: "${WHITE} $${i} ; ${RESET}; \  ${EYELLOW} "          to: "${WHITE} ${PAM_CALIB} ; ${RESET}; \
369  cp -rf ${ORIGIN}/$${i##/*/} $${i}; \  cp -rf ${ORIGIN}/$${i##/*/} ${PAM_CALIB}; \
370  done  done
371  endef  endef
372    

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

  ViewVC Help
Powered by ViewVC 1.1.23