1 |
# Tracker flight analysis software |
# Tracker flight analysis software |
2 |
# SOFTWARE VERSION |
# SOFTWARE VERSION |
3 |
VER= v6r03 |
VER= v6r11 |
4 |
DEBUG=0 |
DEBUG=0 |
5 |
# |
# |
6 |
include ../Make.def |
include ../Make.def |
33 |
DIRDOC=doc |
DIRDOC=doc |
34 |
DIRMACROS=macros |
DIRMACROS=macros |
35 |
DIRCALIB=calib |
DIRCALIB=calib |
36 |
|
|
37 |
# Here the PAMELA environmental variables to be checked |
# Here the PAMELA environmental variables to be checked |
38 |
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_YODA_env |
39 |
# Here the local variables used to build the targets |
# Here the local variables used to build the targets |
66 |
${DIRSRC}/TrkLevel1.cpp \ |
${DIRSRC}/TrkLevel1.cpp \ |
67 |
${DIRSRC}/TrkLevel0.cpp \ |
${DIRSRC}/TrkLevel0.cpp \ |
68 |
${DIRSRC}/TrkHough.cpp \ |
${DIRSRC}/TrkHough.cpp \ |
69 |
${DIRSRC}/TrkCalib.cpp |
${DIRSRC}/TrkCalib.cpp \ |
70 |
|
${DIRSRC}/ExtTrack.cpp |
71 |
|
|
72 |
#LIBROOTSRCS= |
#LIBROOTSRCS= |
73 |
LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
87 |
${DIRLIB}/cncomp.o \ |
${DIRLIB}/cncomp.o \ |
88 |
${DIRLIB}/filladc.o \ |
${DIRLIB}/filladc.o \ |
89 |
${DIRLIB}/reductionflight.o |
${DIRLIB}/reductionflight.o |
90 |
LIBROOTCLIBS= libTrkParams libTrkLevel2 libTrkLevel1 libTrkLevel0 libTrkHough libTrkCalib |
LIBROOTCLIBS= libTrkParams libTrkLevel2 libTrkLevel1 libTrkLevel0 libTrkHough libTrkCalib libExtTrack |
91 |
|
|
92 |
#LIBROOTCLIBS= |
#LIBROOTCLIBS= |
93 |
FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so) |
FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so) |
99 |
${DIRSRC}/TrkProcess.cpp \ |
${DIRSRC}/TrkProcess.cpp \ |
100 |
${DIRSRC}/TrkVerl2.cpp \ |
${DIRSRC}/TrkVerl2.cpp \ |
101 |
${DIRSRC}/TrkCore.cpp \ |
${DIRSRC}/TrkCore.cpp \ |
102 |
|
${DIRSRC}/ExtTrkingAlg.cpp \ |
103 |
# ${DIRSRC}/TrkLevel0.cpp |
# ${DIRSRC}/TrkLevel0.cpp |
104 |
|
|
105 |
LIBCPPLIBS=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
LIBCPPLIBSTRK=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
106 |
#LIBCPPCLIBS=libTrkLevel2 libTrkLevel0 |
#LIBCPPCLIBS=libTrkLevel2 libTrkLevel0 |
107 |
LIBCPPCLIBS= libTrkStruct libTrkProcess libTrkCore libTrkVerl2 #libTrkLevel0 |
LIBCPPCLIBS= libTrkStruct libTrkProcess libTrkCore libTrkVerl2 libExtTrkingAlg #libTrkLevel0 |
108 |
FULLCPPCLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so) |
FULLCPPCLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so) |
109 |
#------------------------------------------------- |
#------------------------------------------------- |
110 |
# librerie F77 NON utilizzabili da root |
# librerie F77 NON utilizzabili da root |
130 |
# variabili per l'installazione |
# variabili per l'installazione |
131 |
EXESRCS=${DIRBIN}/TrackerLevel2 |
EXESRCS=${DIRBIN}/TrackerLevel2 |
132 |
INCSRCS= \ |
INCSRCS= \ |
133 |
|
${DIRINC}/ExtTrack.h \ |
134 |
|
${DIRINC}/ExtTrkingAlg.h \ |
135 |
${DIRINC}/TrkLevel2.h \ |
${DIRINC}/TrkLevel2.h \ |
136 |
${DIRINC}/TrkLevel1.h \ |
${DIRINC}/TrkLevel1.h \ |
137 |
${DIRINC}/TrkLevel0.h \ |
${DIRINC}/TrkLevel0.h \ |
159 |
NROOTINC=${shell root-config --incdir} |
NROOTINC=${shell root-config --incdir} |
160 |
# Let's start |
# Let's start |
161 |
#all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${FOBJS} ${COBJS} ${CXXEXELIBS} |
#all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${FOBJS} ${COBJS} ${CXXEXELIBS} |
162 |
all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBS} |
all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBSTRK} |
163 |
all: |
all: |
164 |
# @echo -e ${GREEN} "" |
# @echo -e ${GREEN} "" |
165 |
# @(${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}) |
174 |
@(${EGREEN} "Creating tracker F77 object file: "${WHITE} "$@"; ${RESET}) |
@(${EGREEN} "Creating tracker F77 object file: "${WHITE} "$@"; ${RESET}) |
175 |
@${F77} ${F77FLAGS} -c -o $@ ${DIRSRC}/F77/`basename ${@} .o`.f -I${DIRTOP}/${DIRINC}/F77 -I${NROOTINC} ${SUBINC} -I${PAM_YODA}/include/yoda -I${PAM_INC}/ |
@${F77} ${F77FLAGS} -c -o $@ ${DIRSRC}/F77/`basename ${@} .o`.f -I${DIRTOP}/${DIRINC}/F77 -I${NROOTINC} ${SUBINC} -I${PAM_YODA}/include/yoda -I${PAM_INC}/ |
176 |
|
|
177 |
|
|
178 |
|
${LIBCPPLIBSTRK}: ${LIBSRCS} ${COBJS} ${FOBJS} |
179 |
|
# |
180 |
|
# create .o |
181 |
|
# |
182 |
|
@(${EGREEN} "Compiling CPP file: "${WHITE} "`basename $(@F) _${VER}.so | sed s/lib//`.cpp"; ${RESET}) |
183 |
|
@${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${PAM_INC}/ -I${NROOTINC} -I${DIRTOP}/../CalorimeterLevel2/inc -I${DIRTOP}/../ToFLevel2/inc -I${DIRTOP}/../TriggerLevel2/inc -I${DIRTOP}/../OrbitalInfo/inc |
184 |
|
# |
185 |
|
# create .so |
186 |
|
# |
187 |
|
@(${EGREEN} "Creating shared library: "${WHITE} "`basename $@`"; ${RESET}) |
188 |
|
@${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ $(LG2C) ${DIRTOP}/${DIRLIB}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${FOBJS} ${COBJS} 1>/dev/null |
189 |
|
@ln -sf ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F)) |
190 |
|
|
191 |
# A small target to check environmental variables |
# A small target to check environmental variables |
192 |
%_env: |
%_env: |
193 |
@${test_env} |
@${test_env} |