1 |
# Tracker flight analysis software |
# Tracker flight analysis software |
2 |
# SOFTWARE VERSION |
# SOFTWARE VERSION |
3 |
VER= v6r06 |
VER= v7r09 |
4 |
DEBUG=0 |
DEBUG=0 |
5 |
# |
# |
6 |
include ../Make.def |
include ../Make.def |
53 |
${DIRSRC}/F77/interB.f \ |
${DIRSRC}/F77/interB.f \ |
54 |
${DIRSRC}/F77/track.f \ |
${DIRSRC}/F77/track.f \ |
55 |
${DIRSRC}/F77/grkuta.f \ |
${DIRSRC}/F77/grkuta.f \ |
56 |
${DIRSRC}/F77/bdll.f # ***PP*** |
${DIRSRC}/F77/bdll.f \ |
57 |
|
${DIRSRC}/F77/mini_ext.f |
58 |
|
|
59 |
FOBJS=$(FSRCS:${DIRSRC}/F77/%.f=${DIRLIB}/%.o) |
FOBJS=$(FSRCS:${DIRSRC}/F77/%.f=${DIRLIB}/%.o) |
60 |
#------------------------------------------------- |
#------------------------------------------------- |
67 |
${DIRSRC}/TrkLevel1.cpp \ |
${DIRSRC}/TrkLevel1.cpp \ |
68 |
${DIRSRC}/TrkLevel0.cpp \ |
${DIRSRC}/TrkLevel0.cpp \ |
69 |
${DIRSRC}/TrkHough.cpp \ |
${DIRSRC}/TrkHough.cpp \ |
70 |
${DIRSRC}/TrkCalib.cpp |
${DIRSRC}/TrkCalib.cpp \ |
71 |
|
${DIRSRC}/ExtTrack.cpp |
72 |
|
|
73 |
#LIBROOTSRCS= |
#LIBROOTSRCS= |
74 |
LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
88 |
${DIRLIB}/cncomp.o \ |
${DIRLIB}/cncomp.o \ |
89 |
${DIRLIB}/filladc.o \ |
${DIRLIB}/filladc.o \ |
90 |
${DIRLIB}/reductionflight.o |
${DIRLIB}/reductionflight.o |
91 |
LIBROOTCLIBS= libTrkParams libTrkLevel2 libTrkLevel1 libTrkLevel0 libTrkHough libTrkCalib |
LIBROOTCLIBS= libTrkParams libTrkLevel2 libTrkLevel1 libTrkLevel0 libTrkHough libTrkCalib libExtTrack |
92 |
|
|
93 |
#LIBROOTCLIBS= |
#LIBROOTCLIBS= |
94 |
FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so) |
FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so) |
100 |
${DIRSRC}/TrkProcess.cpp \ |
${DIRSRC}/TrkProcess.cpp \ |
101 |
${DIRSRC}/TrkVerl2.cpp \ |
${DIRSRC}/TrkVerl2.cpp \ |
102 |
${DIRSRC}/TrkCore.cpp \ |
${DIRSRC}/TrkCore.cpp \ |
103 |
|
${DIRSRC}/ExtTrkingAlg.cpp \ |
104 |
# ${DIRSRC}/TrkLevel0.cpp |
# ${DIRSRC}/TrkLevel0.cpp |
105 |
|
|
106 |
LIBCPPLIBS=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
LIBCPPLIBSTRK=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
107 |
#LIBCPPCLIBS=libTrkLevel2 libTrkLevel0 |
#LIBCPPCLIBS=libTrkLevel2 libTrkLevel0 |
108 |
LIBCPPCLIBS= libTrkStruct libTrkProcess libTrkCore libTrkVerl2 #libTrkLevel0 |
LIBCPPCLIBS= libTrkStruct libTrkProcess libTrkCore libTrkVerl2 libExtTrkingAlg #libTrkLevel0 |
109 |
FULLCPPCLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so) |
FULLCPPCLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so) |
110 |
#------------------------------------------------- |
#------------------------------------------------- |
111 |
# librerie F77 NON utilizzabili da root |
# librerie F77 NON utilizzabili da root |
131 |
# variabili per l'installazione |
# variabili per l'installazione |
132 |
EXESRCS=${DIRBIN}/TrackerLevel2 |
EXESRCS=${DIRBIN}/TrackerLevel2 |
133 |
INCSRCS= \ |
INCSRCS= \ |
134 |
|
${DIRINC}/ExtTrack.h \ |
135 |
|
${DIRINC}/ExtTrkingAlg.h \ |
136 |
${DIRINC}/TrkLevel2.h \ |
${DIRINC}/TrkLevel2.h \ |
137 |
${DIRINC}/TrkLevel1.h \ |
${DIRINC}/TrkLevel1.h \ |
138 |
${DIRINC}/TrkLevel0.h \ |
${DIRINC}/TrkLevel0.h \ |
160 |
NROOTINC=${shell root-config --incdir} |
NROOTINC=${shell root-config --incdir} |
161 |
# Let's start |
# Let's start |
162 |
#all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${FOBJS} ${COBJS} ${CXXEXELIBS} |
#all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBS} ${FOBJS} ${COBJS} ${CXXEXELIBS} |
163 |
all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBS} |
all : test mkbindir mklibdir mkverpath ${LIBF77LIBS} ${LIBROOTLIBS} ${LIBCPPLIBSTRK} |
164 |
all: |
all: |
165 |
# @echo -e ${GREEN} "" |
# @echo -e ${GREEN} "" |
166 |
# @(${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}) |
175 |
@(${EGREEN} "Creating tracker F77 object file: "${WHITE} "$@"; ${RESET}) |
@(${EGREEN} "Creating tracker F77 object file: "${WHITE} "$@"; ${RESET}) |
176 |
@${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}/ |
177 |
|
|
178 |
|
|
179 |
|
${LIBCPPLIBSTRK}: ${LIBSRCS} ${COBJS} ${FOBJS} |
180 |
|
# |
181 |
|
# create .o |
182 |
|
# |
183 |
|
@(${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${PAM_INC}/ -I${NROOTINC} -I${DIRTOP}/../CalorimeterLevel2/inc -I${DIRTOP}/../ToFLevel2/inc -I${DIRTOP}/../TriggerLevel2/inc -I${DIRTOP}/../OrbitalInfo/inc |
185 |
|
# |
186 |
|
# create .so |
187 |
|
# |
188 |
|
@(${EGREEN} "Creating shared library: "${WHITE} "`basename $@`"; ${RESET}) |
189 |
|
@${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ $(LG2C) ${DIRTOP}/${DIRLIB}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${FOBJS} ${COBJS} 1>/dev/null |
190 |
|
@ln -sf ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F)) |
191 |
|
|
192 |
# A small target to check environmental variables |
# A small target to check environmental variables |
193 |
%_env: |
%_env: |
194 |
@${test_env} |
@${test_env} |