/[PAMELA software]/DarthVader/Makefile
ViewVC logotype

Diff of /DarthVader/Makefile

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

revision 1.1.1.2 by mocchiut, Sat Jun 17 12:12:48 2006 UTC revision 1.63 by mocchiut, Mon Jul 28 15:42:01 2014 UTC
# Line 1  Line 1 
1  # Trigger flight analysis software  # DarthVader flight analysis software
2  # SOFTWARE VERSION  # SOFTWARE VERSION IS
3  VER= v3r00  VER= v10r11
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  
 # 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}
13  DIRBIN=../bin/${ARCH}  #DIRBIN=../bin/${ARCH}
14  #DIRLIB=lib/${ARCH}  DIRLIB=lib/${ARCH}
15  #DIRBIN=bin/${ARCH}  DIRBIN=bin/${ARCH}
16  DIRSRC=src  DIRSRC=src
17  DIRINC=inc  DIRINC=inc
18  DIRDOC=doc  DIRDOC=doc
19  DIRMACROS=macros  DIRMACROS=macros
20  DIRCALIB=calib  DIRCALIB=param
21  # Here the  PAMELA environmental variables to be checked  # Here the  PAMELA environmental variables to be checked
22  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_CALIB_env PAM_YODA_env
23    
24  # Here the local variables used to build the targets  # Here the local variables used to build the targets
25  # -- F77 - no libraries --  # -- F77 - no libraries --
# Line 59  FSRCS= Line 27  FSRCS=
27  FOBJS=$(FSRCS:${DIRSRC}%.for=${DIRLIB}%.o)  FOBJS=$(FSRCS:${DIRSRC}%.for=${DIRLIB}%.o)
28    
29  # -- CPP - no libraries --  # -- CPP - no libraries --
30  CPPSRCS=  CPPSRCS=${DIRSRC}/DarthVaderVerl2.cpp
31  CPPOBJS=$(CPPSRCS:${DIRSRC}%.cpp=${DIRLIB}%.o)  CPPOBJS=$(CPPSRCS:${DIRSRC}%.cpp=${DIRLIB}%.o)
32    
33  # -- C - no libraries --  # -- C - no libraries --
34  CSRCS=  CSRCS=
35  COBJS=$(CSRCS:${DIRSRC}%.c=${DIRLIB}%.o)  COBJS=$(CSRCS:${DIRSRC}%.c=${DIRLIB}%.o)
36    
37  # -- CPP - ROOT libraries --  # -- CPP - ROOT libraries --
38  LIBROOTSRCS=${DIRSRC}/TrigLevel2.cpp  LIBROOTSRCS=
39    
40  LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)  LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)
41  LIBROOTCLIBS=libTrigLevel2  LIBROOTCLIBS=
42  FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so)  FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so)
43    
44  # -- CPP - NON-ROOT libraries --  # -- CPP - NON-ROOT libraries --
45  LIBCPPSRCS= ${DIRSRC}/TrigCore.cpp \  LIBCPPSRCS=
         ${DIRSRC}/TrigVerl2.cpp  
46  LIBCPPLIBS=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)  LIBCPPLIBS=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)
47  LIBCPPCLIBS=libTrigCore libTrigVerl2  LIBCPPCLIBS=
48  FULLLIBCPPLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so)  FULLLIBCPPLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so)
49    
50  # -- CPP - Executables --  # -- CPP - Executables --
51  CXXEXESRCS=${DIRSRC}/TriggerLevel2.cpp  CXXEXESRCS=${DIRSRC}/DarthVader.cpp
52  CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o)  CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o)
53  CXXEXELIBS:=TriggerLevel2  CXXEXELIBS:=DarthVader
54    
55    # -- list of objects needed to link
56    ##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    OBJS=$(shell cd ${DIRLIB}&>/dev/null;for file in `ls lib*.so`; do if [ $${file} != "" ]; then echo ${DIRLIB}/$${file}; fi; done) ${CPPOBJS}
58    DARTHVLIB=${DIRLIB}/libDarthVader_${VER}.so
59    
 # -- list of tracker objects needed to link  
 TRKOBJS=${DIRLIB}/libGLTables.so ${DIRLIB}/libRunInfo.so  
60  # -- directory where to find tracker headers needed to compile  # -- directory where to find tracker headers needed to compile
61  SUBDIR=../GLTables ../RunInfo  #TRKHEAD=${DIRTOP}/../tracker/inc
62    #TRKHEAD=-I${PAM_INC} -ITrackerLevel2/inc/ -IRunInfo/inc/ -IGLTables/inc/
63    
64    #
65    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}/TriggerLevel2  EXESRCS=${DIRBIN}/DarthVader
73    
74  INCSRCS=${DIRINC}/TrigLevel2.h  INCSRCS=
75    
76  MACROSSRCS=  MACROSSRCS=
77    
78  CALIBFILES=  CALIBFILES=${DIRCALIB}/trk-param ${DIRCALIB}/cal-param ${DIRCALIB}/tof-param ${DIRCALIB}/orb-param
79    
80  DOCFILES=  DOCFILES=
81    
82  # Here the Variables used for info target  # Here the Variables used for info target
83  PACKAGE=Trigger analysis flight software  PACKAGE=PAMELA analysis flight software
84  EXECUTABLES= ${EXESRCS}  EXECUTABLES= ${EXESRCS}
85  LIBS= ${FULLLIBS}  LIBS= ${FULLLIBS}
86  DOCS=  DOCS=
# Line 118  INCLUDE= ${INCSRCS} Line 92  INCLUDE= ${INCSRCS}
92  TOBEDEL = junk  TOBEDEL = junk
93  ROOTINC=$$${shell root-config --incdir}  ROOTINC=$$${shell root-config --incdir}
94  NROOTINC=${shell root-config --incdir}  NROOTINC=${shell root-config --incdir}
95    # Directories where you place detectors software
96    #SUBDIR=./GLTables ./RunInfo ./TrackerLevel2 ./CalorimeterLevel2
97    
98  # Let's start  # Let's start
99  #all: test mkbindir mklibdir mkverpath ${FOBJS} ${CPPOBJS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${CXXEXELIBS}  #all: test mkbindir mklibdir mkverpath ${FOBJS} ${CPPOBJS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${CXXEXELIBS}
100  all: prepare libs  
101  all:  all:
102            @for dir in `echo ${SUBDIR}`; do (${EBLUE}  "Making all in $${dir}";  ${RESET}); (cd $${dir} &>/dev/null && ${MAKE} -s all); done
103    #       @for dir in `echo ${SUBDIR}`; do (${EBLUE}  "Making all in $${dir}";  ${RESET}); (cd $${dir} && ${MAKE} all); done
104            @make -s locall ;
105    
106    locall: prepare libs exe
107    locall:
108          @echo -e ${GREEN} ""          @echo -e ${GREEN} ""
109          @(${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})
110          @echo -e ${GREEN} ""          @echo -e ${GREEN} ""
111          @${RESET}          @${RESET}
112    
113  standalone: all exe  #subdir:
114    #       @for dir in `echo ${SUBDIR}`; do  \
115    #        echo "Making ${target} in $${dir}"; \
116    #        (cd $${dir} && ${MAKE} ${target}); \
117    #        done;
118    
119  prepare: test mkbindir mklibdir mkverpath  prepare: test mkbindir mklibdir mkverpath
120    
# Line 138  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/  -I${PAM_YODA}/include/utils/ `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} ${SUBINC} -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 153  ${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          @${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${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          @${CXX} ${CXXFLAGS} -c ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`Dict.cpp -o ${DIRTOP}/${DIRLIB}/`basename $(@F) _${VER}.so | sed s/lib//`Dict.o -I${DIRTOP}/${DIRINC} -I${DIRTOP} ${SUBINC} -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/ ${SUBINC} ${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/ -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 173  ${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          @${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${NROOTINC};          @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} ${SUBINC} -I${PAM_YODA}/include/yoda/ ${DIRTOP}/${DIRLIB}/`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} ${TRKOBJS} ${CPPOBJS} ${COBJS} ${FOBJS} ${PAM_YODA}/lib/libyoda.so -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            @(${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 ${DIRTOP}/${DIRLIB}/libExtTrkingAlg.so ${DIRTOP}/${DIRLIB}/libExtTrack.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 201  ${DIRLIB}: Line 192  ${DIRLIB}:
192          @${test_and_mk}          @${test_and_mk}
193    
194  # Here what has to be deleted in clean target  # Here what has to be deleted in clean target
195  clean: TOBEDEL= ${DIRSRC}/*.o ${DIRSRC}/*Dict.cpp ${DIRSRC}/*Dict.h ${FOBJS} ${FULLLIBS} ${DIRBIN}/${CXXEXELIBS} ${CPPOBJS} ${CXXEXEOBJS} ${FULLLINKCLIBS} ${FULLMACROCLIBS} ${FULLLINKMACROCLIBS} ${DIRSRC}/TrigVerl2.cpp  clean:
196  clean:          @for dir in `echo ${SUBDIR}`; do  \
197          @${test_and_rm}           (${EBLUE}  "Making clean in $${dir}";  ${RESET});\
198             (cd $${dir} &>/dev/null && ${MAKE} -s clean); \
199            done; make -s locclean
200    
201  distclean: clean  locclean: TOBEDEL= ${DIRSRC}/*.o ${DIRSRC}/*Dict.cpp ${DIRSRC}/*Dict.h ${FOBJS} ${FULLLIBS} ${DIRBIN}/${CXXEXELIBS} ${CPPOBJS} ${CXXEXEOBJS} ${FULLLINKCLIBS} ${FULLMACROCLIBS} ${FULLLINKMACROCLIBS} ${DIRSRC}/DarthVaderVerl2.cpp
202  distclean: TOBEDEL= ${DIRBIN} ${DIRLIB}  locclean:
 distclean:  
203          @${test_and_rm}          @${test_and_rm}
204    
205    distclean:
206            @for dir in `echo ${SUBDIR}`; do  \
207            (${EBLUE}  "Making distclean in $${dir}";  ${RESET});\
208             (cd $${dir} &>/dev/null  && ${MAKE} -s distclean); \
209            done; make -s locdistclean
210    
211    locdistclean: clean
212    locdistclean: TOBEDEL= ${DIRBIN} ${DIRLIB}
213    locdistclean:
214            @${test_and_rm}
215    
 forceinstall: FORCE=-f  
 forceinstall: install  
   
 forceinstallstandalone: FORCE=-f  
 forceinstallstandalone: installstandalone  
   
 upgrade: FORCE=-u  
 upgrade: install  
216    
217  upgradestandalone: FORCE=-u  forceinstall:
218  upgradestandalone: installstandalone          @for dir in `echo ${SUBDIR}`; do  \
219            (${EBLUE}  "Making forceinstall in $${dir}";  ${RESET});\
220             (cd $${dir} &>/dev/null && ${MAKE} -s forceinstall); \
221            done; make locforceinstall
222    
223    locforceinstall: FORCE=-f
224    locforceinstall: install
225    
226    upgrade:
227            @for dir in `echo ${SUBDIR}`; do  \
228            (${EBLUE}  "Making upgrade in $${dir}";  ${RESET});\
229             (cd $${dir}&>/dev/null && ${MAKE} -s upgrade); \
230            done; make -s locupgrade
231    
232    locupgrade: FORCE=-u
233    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:
245            @for dir in `echo ${SUBDIR}`; do  \
246            (${EBLUE}  "Making install in $${dir}";  ${RESET});\
247             (cd $${dir} &>/dev/null && ${MAKE} -s install); \
248            done; make -s locinstall
249    
250  install: installlib installinc installmacros installcalib installdoc installcmacro  locinstall: installlib installinc installmacros installcalib installdoc installexe installcmacro
251    
252  installstandalone: install installexe  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}%)
# Line 257  installmacros: Line 281  installmacros:
281  installcalib: TOBEMOVED= $(CALIBFILES:${DIRCALIB}/%=${PAM_CALIB}/%)  installcalib: TOBEMOVED= $(CALIBFILES:${DIRCALIB}/%=${PAM_CALIB}/%)
282  installcalib: ORIGIN=${DIRCALIB}  installcalib: ORIGIN=${DIRCALIB}
283  installcalib:  installcalib:
284          @${test_and_cp}          @${cp_dir}
285    
286  installdoc: TOBEMOVED= $(DOCFILES:${DIRDOC}/%=${PAM_DOC}/%)  installdoc: TOBEMOVED= $(DOCFILES:${DIRDOC}/%=${PAM_DOC}/%)
287  installdoc: ORIGIN=${DIRDOC}  installdoc: ORIGIN=${DIRDOC}
# Line 265  installdoc: Line 289  installdoc:
289          @${test_and_cp}          @${test_and_cp}
290    
291  mkverpath:  mkverpath:
292          @echo '#include <TSystem.h>' >  ${DIRTOP}/${DIRSRC}/TrigVerl2.cpp; echo ' char *TrigInfo(bool print){ if ( print ) printf("\nTrigger Level2 flight package version: ${VER}\n\nCompiled on '${TODAY}' with: '${GCCVER}'\n\nOn: '${UNAMEA}'\n\n"); return("${VER}"); }' >>  ${DIRTOP}/${DIRSRC}/TrigVerl2.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 335  fi \ Line 359  fi \
359  done  done
360  endef  endef
361    
362    define  cp_dir
363    wd=`pwd`;\
364    for i in ${TOBEMOVED} ; do \
365    wv=$${i##/*/}; \
366    dest=$${i/$${wv}/}; \
367    ${EYELLOW} " Copying directory: "${WHITE} ${ORIGIN}/$${i##/*/} ;\
368    ${EYELLOW} "          to: "${WHITE} ${PAM_CALIB} ; ${RESET}; \
369    cp -rf ${ORIGIN}/$${i##/*/} ${PAM_CALIB}; \
370    done; \
371    ${EYELLOW} " Extracting mask directories into: "${WHITE} ${PAM_CALIB}/trk-param ; ${RESET}; \
372    cd  ${PAM_CALIB}/trk-param/ ;\
373    tar jxf mask_param.tar.bz2; \
374    rm -rf mask_param.tar.bz2; \
375    cd - &>/dev/null; \
376    ${EYELLOW} " done "; ${RESET}
377    endef
378    
379  define  test_and_mk  define  test_and_mk
380  ${EGREEN} "Testing for :" ${WHITE} "$@"; ${RESET}  ${EGREEN} "Testing for :" ${WHITE} "$@"; ${RESET}
381  test -d "$@" || \  test -d "$@" || \

Legend:
Removed from v.1.1.1.2  
changed lines
  Added in v.1.63

  ViewVC Help
Powered by ViewVC 1.1.23