/[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.2 by mocchiut, Wed May 24 12:27:34 2006 UTC
# Line 1  Line 1 
1  # Trigger flight analysis software  # DarthVader flight analysis software
2  # SOFTWARE VERSION  # SOFTWARE VERSION
3  VER= v3r00  VER= v0r01
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 21  EWHITE=echo -e ${WHITE} Line 21  EWHITE=echo -e ${WHITE}
21  # Reset the terminal  # Reset the terminal
22  RESET=tput sgr0  RESET=tput sgr0
23  # Here the variables used to override the standard make flags  # Here the variables used to override the standard make flags
24    #MAKE
25    MAKE=make
26  # C  # C
27  CC=gcc  CC=gcc
28  #CFLAGS=-Wall -O -fPIC -pthread -g  #CFLAGS=-Wall -O -fPIC -pthread -g
# Line 41  CXXFLAGS=-Wall -O -fPIC -pthread Line 43  CXXFLAGS=-Wall -O -fPIC -pthread
43  ROOTCINT=rootcint  ROOTCINT=rootcint
44  # Here the variables definig the local directories  # Here the variables definig the local directories
45  DIRTOP=${shell pwd}  DIRTOP=${shell pwd}
46  DIRLIB=../lib/${ARCH}  #DIRLIB=../lib/${ARCH}
47  DIRBIN=../bin/${ARCH}  #DIRBIN=../bin/${ARCH}
48  #DIRLIB=lib/${ARCH}  DIRLIB=lib/${ARCH}
49  #DIRBIN=bin/${ARCH}  DIRBIN=bin/${ARCH}
50  DIRSRC=src  DIRSRC=src
51  DIRINC=inc  DIRINC=inc
52  DIRDOC=doc  DIRDOC=doc
53  DIRMACROS=macros  DIRMACROS=macros
54  DIRCALIB=calib  DIRCALIB=param
55  # Here the  PAMELA environmental variables to be checked  # Here the  PAMELA environmental variables to be checked
56  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
57    
58  # Here the local variables used to build the targets  # Here the local variables used to build the targets
59  # -- F77 - no libraries --  # -- F77 - no libraries --
# Line 59  FSRCS= Line 61  FSRCS=
61  FOBJS=$(FSRCS:${DIRSRC}%.for=${DIRLIB}%.o)  FOBJS=$(FSRCS:${DIRSRC}%.for=${DIRLIB}%.o)
62    
63  # -- CPP - no libraries --  # -- CPP - no libraries --
64  CPPSRCS=  CPPSRCS=${DIRSRC}/DarthVaderVerl2.cpp
65  CPPOBJS=$(CPPSRCS:${DIRSRC}%.cpp=${DIRLIB}%.o)  CPPOBJS=$(CPPSRCS:${DIRSRC}%.cpp=${DIRLIB}%.o)
66    
67  # -- C - no libraries --  # -- C - no libraries --
68  CSRCS=  CSRCS=
69  COBJS=$(CSRCS:${DIRSRC}%.c=${DIRLIB}%.o)  COBJS=$(CSRCS:${DIRSRC}%.c=${DIRLIB}%.o)
70    
71  # -- CPP - ROOT libraries --  # -- CPP - ROOT libraries --
72  LIBROOTSRCS=${DIRSRC}/TrigLevel2.cpp  LIBROOTSRCS=
73    
74  LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)  LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)
75  LIBROOTCLIBS=libTrigLevel2  LIBROOTCLIBS=
76  FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so)  FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so)
77    
78  # -- CPP - NON-ROOT libraries --  # -- CPP - NON-ROOT libraries --
79  LIBCPPSRCS= ${DIRSRC}/TrigCore.cpp \  LIBCPPSRCS=
         ${DIRSRC}/TrigVerl2.cpp  
80  LIBCPPLIBS=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)  LIBCPPLIBS=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)
81  LIBCPPCLIBS=libTrigCore libTrigVerl2  LIBCPPCLIBS=
82  FULLLIBCPPLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so)  FULLLIBCPPLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so)
83    
84  # -- CPP - Executables --  # -- CPP - Executables --
85  CXXEXESRCS=${DIRSRC}/TriggerLevel2.cpp  CXXEXESRCS=${DIRSRC}/DarthVader.cpp
86  CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o)  CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o)
87  CXXEXELIBS:=TriggerLevel2  CXXEXELIBS:=DarthVader
88    
89  # -- list of tracker objects needed to link  # -- list of tracker objects needed to link
90  TRKOBJS=${DIRLIB}/libGLTables.so ${DIRLIB}/libRunInfo.so  #TRKOBJS=${DIRTOP}/../lib2/libTrkLevel2.so ${DIRTOP}/../lib2/libtrack.so
91    #TRKOBJS=$(shell for lib in `ls ${DIRLIB}`; do echo ${lib}; done)
92    OBJS=${DIRLIB}/*.*
93    #TRKOBJS=
94    
95  # -- directory where to find tracker headers needed to compile  # -- directory where to find tracker headers needed to compile
96  SUBDIR=../GLTables ../RunInfo  #TRKHEAD=${DIRTOP}/../tracker/inc
97    #TRKHEAD=-I${PAM_INC} -ITrackerLevel2/inc/ -IRunInfo/inc/ -IGLTables/inc/
98    
99    #
100    SUBDIR=./GLTables ./RunInfo ./S4Level2 ./NDLevel2 ./TrackerLevel2 ./TriggerLevel2 ./ToFLevel2 ./CalorimeterLevel2 ./AnticounterLevel2 ./OrbitalInfo
101  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)
102    
103  # List of all libraries we want to install  # List of all libraries we want to install
104  FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPPLIBS}  FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPPLIBS}
105    
106  # Other objects to install  # Other objects to install
107  EXESRCS=${DIRBIN}/TriggerLevel2  EXESRCS=${DIRBIN}/DarthVader
108    
109  INCSRCS=${DIRINC}/TrigLevel2.h  INCSRCS=
110    
111  MACROSSRCS=  MACROSSRCS=
112    
113  CALIBFILES=  CALIBFILES=${DIRCALIB}/trk-param ${DIRCALIB}/cal-param ${DIRCALIB}/tof-param
114    
115  DOCFILES=  DOCFILES=
116    
117  # Here the Variables used for info target  # Here the Variables used for info target
118  PACKAGE=Trigger analysis flight software  PACKAGE=PAMELA analysis flight software
119  EXECUTABLES= ${EXESRCS}  EXECUTABLES= ${EXESRCS}
120  LIBS= ${FULLLIBS}  LIBS= ${FULLLIBS}
121  DOCS=  DOCS=
# Line 118  INCLUDE= ${INCSRCS} Line 127  INCLUDE= ${INCSRCS}
127  TOBEDEL = junk  TOBEDEL = junk
128  ROOTINC=$$${shell root-config --incdir}  ROOTINC=$$${shell root-config --incdir}
129  NROOTINC=${shell root-config --incdir}  NROOTINC=${shell root-config --incdir}
130    # Directories where you place detectors software
131    #SUBDIR=./GLTables ./RunInfo ./TrackerLevel2 ./CalorimeterLevel2
132    
133  # Let's start  # Let's start
134  #all: test mkbindir mklibdir mkverpath ${FOBJS} ${CPPOBJS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${CXXEXELIBS}  #all: test mkbindir mklibdir mkverpath ${FOBJS} ${CPPOBJS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${CXXEXELIBS}
135  all: prepare libs  
136  all:  all:
137            @for dir in `echo ${SUBDIR}`; do  \
138             echo "Making all in $${dir}"; \
139             (cd $${dir} && ${MAKE} all); \
140            done; make locall
141    
142    locall: prepare libs exe
143    locall:
144          @echo -e ${GREEN} ""          @echo -e ${GREEN} ""
145          @(${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})
146          @echo -e ${GREEN} ""          @echo -e ${GREEN} ""
147          @${RESET}          @${RESET}
148    
149  standalone: all exe  #subdir:
150    #       @for dir in `echo ${SUBDIR}`; do  \
151    #        echo "Making ${target} in $${dir}"; \
152    #        (cd $${dir} && ${MAKE} ${target}); \
153    #        done;
154    
155  prepare: test mkbindir mklibdir mkverpath  prepare: test mkbindir mklibdir mkverpath
156    
# Line 138  libs: prepare ${LIBROOTLIBS} ${LIBCPPLIB Line 161  libs: prepare ${LIBROOTLIBS} ${LIBCPPLIB
161  # Here some general rules to produce objects in our local dir  # Here some general rules to produce objects in our local dir
162  ${DIRLIB}/%.o: ${DIRSRC}/%.cpp  ${DIRLIB}/%.o: ${DIRSRC}/%.cpp
163          @(${EGREEN} "Creating CPP object file: "${WHITE} "`basename $@`"; ${RESET})          @(${EGREEN} "Creating CPP object file: "${WHITE} "`basename $@`"; ${RESET})
164          @${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/ `root-config --cflags`
165    
166  ${DIRLIB}/%.o: ${DIRSRC}/%.c  ${DIRLIB}/%.o: ${DIRSRC}/%.c
167          @(${EGREEN} "Creating C object file: "${WHITE} "`basename $@`"; ${RESET})          @(${EGREEN} "Creating C object file: "${WHITE} "`basename $@`"; ${RESET})
168          @${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/ `root-config --cflags`
169    
170  ${DIRLIB}/%.o: ${DIRSRC}/%.for  ${DIRLIB}/%.o: ${DIRSRC}/%.for
171          @(${EGREEN} "Creating F77 object file: "${WHITE} "`basename $@`"; ${RESET})          @(${EGREEN} "Creating F77 object file: "${WHITE} "`basename $@`"; ${RESET})
# Line 158  ${LIBROOTLIBS}: ${LIBROOTSRCS} Line 181  ${LIBROOTLIBS}: ${LIBROOTSRCS}
181  #       create .o  #       create .o
182  #  #
183          @(${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})
184          @${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${NROOTINC};
185          @(${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})
186          @${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${NROOTINC};
187  #  #
188  #       create .so  #       create .so
189  #  #
190          @(${EGREEN} "Creating shared library: "${WHITE} "`basename $@`"; ${RESET})          @(${EGREEN} "Creating shared library: "${WHITE} "`basename $@`"; ${RESET})
191          @${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/ ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`Dict.o 1>/dev/null
192          @ln -sf  ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F))          @ln -sf  ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F))
193    
194  ${LIBCPPLIBS}: ${LIBSRCS} ${COBJS} ${FOBJS}  ${LIBCPPLIBS}: ${LIBSRCS} ${COBJS} ${FOBJS}
# Line 173  ${LIBCPPLIBS}: ${LIBSRCS} ${COBJS} ${FOB Line 196  ${LIBCPPLIBS}: ${LIBSRCS} ${COBJS} ${FOB
196  #       create .o  #       create .o
197  #  #
198          @(${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})
199          @${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${NROOTINC} ${SUBINC};
200  #  #
201  #       create .so  #       create .so
202  #  #
203          @(${EGREEN} "Creating shared library: "${WHITE} "`basename $@`"; ${RESET})          @(${EGREEN} "Creating shared library: "${WHITE} "`basename $@`"; ${RESET})
204          @${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} -I${SUBINC} -I${PAM_YODA}/include/yoda/ ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${FOBJS} ${COBJS} 1>/dev/null
205          @ln -sf  ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F))          @ln -sf  ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F))
206    
207  ${CXXEXELIBS}: ${CPPOBJS} ${COBJS} ${CXXEXEOBJS}  ${CXXEXELIBS}: ${CPPOBJS} ${COBJS} ${CXXEXEOBJS}
208          @(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET})          @(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET})
209          @${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}/$@ ${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`
210            @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${OBJS} ${PAM_YODA}/lib/libyoda.so -lThread `root-config --cflags --glibs` `cernlib mathlib`
211    
212  # A small target to check environmental variables  # A small target to check environmental variables
213  %_env:  %_env:
# Line 201  ${DIRLIB}: Line 225  ${DIRLIB}:
225          @${test_and_mk}          @${test_and_mk}
226    
227  # Here what has to be deleted in clean target  # Here what has to be deleted in clean target
228  clean: TOBEDEL= ${DIRSRC}/*.o ${DIRSRC}/*Dict.cpp ${DIRSRC}/*Dict.h ${FOBJS} ${FULLLIBS} ${DIRBIN}/${CXXEXELIBS} ${CPPOBJS} ${CXXEXEOBJS} ${FULLLINKCLIBS} ${FULLMACROCLIBS} ${FULLLINKMACROCLIBS} ${DIRSRC}/TrigVerl2.cpp  clean:
229  clean:          @for dir in `echo ${SUBDIR}`; do  \
230          @${test_and_rm}           echo "Making clean in $${dir}"; \
231             (cd $${dir} && ${MAKE} clean); \
232            done; make locclean
233    
234  distclean: clean  locclean: TOBEDEL= ${DIRSRC}/*.o ${DIRSRC}/*Dict.cpp ${DIRSRC}/*Dict.h ${FOBJS} ${FULLLIBS} ${DIRBIN}/${CXXEXELIBS} ${CPPOBJS} ${CXXEXEOBJS} ${FULLLINKCLIBS} ${FULLMACROCLIBS} ${FULLLINKMACROCLIBS} ${DIRSRC}/DarthVaderVerl2.cpp
235  distclean: TOBEDEL= ${DIRBIN} ${DIRLIB}  locclean:
 distclean:  
236          @${test_and_rm}          @${test_and_rm}
237    
238    distclean:
239            @for dir in `echo ${SUBDIR}`; do  \
240             echo "Making distclean in $${dir}"; \
241             (cd $${dir} && ${MAKE} distclean); \
242            done; make locdistclean
243    
244    locdistclean: clean
245    locdistclean: TOBEDEL= ${DIRBIN} ${DIRLIB}
246    locdistclean:
247            @${test_and_rm}
248    
 forceinstall: FORCE=-f  
 forceinstall: install  
   
 forceinstallstandalone: FORCE=-f  
 forceinstallstandalone: installstandalone  
   
 upgrade: FORCE=-u  
 upgrade: install  
   
 upgradestandalone: FORCE=-u  
 upgradestandalone: installstandalone  
249    
250  install: installlib installinc installmacros installcalib installdoc installcmacro  forceinstall:
251            @for dir in `echo ${SUBDIR}`; do  \
252             echo "Making forceinstall in $${dir}"; \
253             (cd $${dir} && ${MAKE} forceinstall); \
254            done; make locforceinstall
255    
256    locforceinstall: FORCE=-f
257    locforceinstall: install
258    
259    upgrade:
260            @for dir in `echo ${SUBDIR}`; do  \
261             echo "Making upgrade in $${dir}"; \
262             (cd $${dir} && ${MAKE} upgrade); \
263            done; make locupgrade
264    
265    locupgrade: FORCE=-u
266    locupgrade: locinstall
267    
268    install:
269            @for dir in `echo ${SUBDIR}`; do  \
270             echo "Making install in $${dir}"; \
271             (cd $${dir} && ${MAKE} install); \
272            done; make locinstall
273    
274  installstandalone: install installexe  locinstall: installlib installinc installmacros installcalib installdoc installexe installcmacro
275    
276  installlib: LINK=y  installlib: LINK=y
277  installlib: TOBEMOVED= $(FULLLIBS:${DIRLIB}%=${PAM_LIB}%)  installlib: TOBEMOVED= $(FULLLIBS:${DIRLIB}%=${PAM_LIB}%)
# Line 257  installmacros: Line 303  installmacros:
303  installcalib: TOBEMOVED= $(CALIBFILES:${DIRCALIB}/%=${PAM_CALIB}/%)  installcalib: TOBEMOVED= $(CALIBFILES:${DIRCALIB}/%=${PAM_CALIB}/%)
304  installcalib: ORIGIN=${DIRCALIB}  installcalib: ORIGIN=${DIRCALIB}
305  installcalib:  installcalib:
306          @${test_and_cp}          @${cp_dir}
307    
308  installdoc: TOBEMOVED= $(DOCFILES:${DIRDOC}/%=${PAM_DOC}/%)  installdoc: TOBEMOVED= $(DOCFILES:${DIRDOC}/%=${PAM_DOC}/%)
309  installdoc: ORIGIN=${DIRDOC}  installdoc: ORIGIN=${DIRDOC}
# Line 265  installdoc: Line 311  installdoc:
311          @${test_and_cp}          @${test_and_cp}
312    
313  mkverpath:  mkverpath:
314          @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 ' 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
315          @sleep 0.8          @sleep 0.8
316    
317    
# Line 335  fi \ Line 381  fi \
381  done  done
382  endef  endef
383    
384    define  cp_dir
385    wd=`pwd`;\
386    for i in ${TOBEMOVED} ; do \
387    wv=$${i##/*/}; \
388    dest=$${i/$${wv}/}; \
389    ${EYELLOW} " Copying directory: "${WHITE} ${ORIGIN}/$${i##/*/} ;\
390    ${EYELLOW} "          to: "${WHITE} $${i} ; ${RESET}; \
391    cp -rf ${ORIGIN}/$${i##/*/} $${i}; \
392    done
393    endef
394    
395  define  test_and_mk  define  test_and_mk
396  ${EGREEN} "Testing for :" ${WHITE} "$@"; ${RESET}  ${EGREEN} "Testing for :" ${WHITE} "$@"; ${RESET}
397  test -d "$@" || \  test -d "$@" || \

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

  ViewVC Help
Powered by ViewVC 1.1.23