1 |
# Tracker flight analysis software |
# Tracker flight analysis software |
2 |
# SOFTWARE VERSION |
# SOFTWARE VERSION |
3 |
VER= v2r00 |
VER= v3r03 |
4 |
DEBUG=0 |
DEBUG=0 |
5 |
# An almost general purpouse Makefile for PAMELA repository |
# An almost general purpouse Makefile for PAMELA repository |
6 |
# Let's start with some usefull definition for colorize the echo |
# Let's start with some usefull definition for colorize the echo |
33 |
# F77 |
# F77 |
34 |
F77=g77 |
F77=g77 |
35 |
#F77FLAGS= -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -g -extend_source -static -fno-backslash |
#F77FLAGS= -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -g -extend_source -static -fno-backslash |
36 |
F77FLAGS= -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -extend_source -static -fno-backslash |
F77FLAGS= -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -extend_source -static -fno-backslash -fPIC |
37 |
# C++ |
# C++ |
38 |
CXX=g++ |
CXX=g++ |
39 |
#CXXFLAGS=-Wall -O -fPIC -pthread -g -D'DEBUG=${DEBUG}' |
#CXXFLAGS=-Wall -O -fPIC -pthread -g -D'DEBUG=${DEBUG}' |
40 |
#CXXFLAGS=-Wall -O -fPIC -pthread -g -D'DEBUG=0' |
#CXXFLAGS=-Wall -O -fPIC -pthread -g -D'DEBUG=0' |
41 |
#CXXFLAGS=-Wall -O -fPIC -pthread -fpermissive |
#CXXFLAGS=-Wall -O -fPIC -pthread -fpermissive |
42 |
CXXFLAGS=-Wall -O -fPIC -pthread |
CXXFLAGS=-Wall -O4 -fPIC -pthread |
43 |
# ROOTCINT |
# ROOTCINT |
44 |
ROOTCINT=rootcint |
ROOTCINT=rootcint |
45 |
# Here the variables definig the local directories |
# Here the variables definig the local directories |
71 |
${DIRSRC}/F77/readB.f \ |
${DIRSRC}/F77/readB.f \ |
72 |
${DIRSRC}/F77/interB.f \ |
${DIRSRC}/F77/interB.f \ |
73 |
${DIRSRC}/F77/track.f \ |
${DIRSRC}/F77/track.f \ |
74 |
${DIRSRC}/F77/grkuta.f |
${DIRSRC}/F77/grkuta.f \ |
75 |
|
${DIRSRC}/F77/bdll.f # ***PP*** |
76 |
|
|
77 |
FOBJS=$(FSRCS:${DIRSRC}/F77/%.f=${DIRLIB}/%.o) |
FOBJS=$(FSRCS:${DIRSRC}/F77/%.f=${DIRLIB}/%.o) |
78 |
#------------------------------------------------- |
#------------------------------------------------- |
80 |
COBJS=$(CSRCS:${DIRSRC}%.cpp=${DIRLIB}/%.o) |
COBJS=$(CSRCS:${DIRSRC}%.cpp=${DIRLIB}/%.o) |
81 |
#------------------------------------------------- |
#------------------------------------------------- |
82 |
# librerie utilizzabili da root (ci deve essere anche il ***LinkDef.h ) |
# librerie utilizzabili da root (ci deve essere anche il ***LinkDef.h ) |
83 |
LIBROOTSRCS= ${DIRSRC}/TrkLevel2.cpp \ |
LIBROOTSRCS=${DIRSRC}/TrkParams.cpp \ |
84 |
${DIRSRC}/TrkLevel1.cpp |
${DIRSRC}/TrkLevel2.cpp \ |
85 |
|
${DIRSRC}/TrkLevel1.cpp \ |
86 |
|
${DIRSRC}/TrkLevel0.cpp \ |
87 |
|
${DIRSRC}/TrkHough.cpp \ |
88 |
|
${DIRSRC}/TrkCalib.cpp |
89 |
|
|
90 |
#LIBROOTSRCS= |
#LIBROOTSRCS= |
91 |
LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
92 |
LIBROOTOBJS=${DIRLIB}/readB.o ${DIRLIB}/interB.o ${DIRLIB}/track.o ${DIRLIB}/grkuta.o ${DIRLIB}/functionspfa.o ${DIRLIB}/readallparam.o ${DIRLIB}/functions.o ${DIRLIB}/mini.o ${DIRLIB}/tricircle.o |
LIBROOTOBJS=${DIRLIB}/readB.o \ |
93 |
LIBROOTCLIBS=libTrkLevel2 libTrkLevel1 |
${DIRLIB}/interB.o \ |
94 |
|
${DIRLIB}/track.o \ |
95 |
|
${DIRLIB}/grkuta.o \ |
96 |
|
${DIRLIB}/bdll.o \ |
97 |
|
${DIRLIB}/functionspfa.o \ |
98 |
|
${DIRLIB}/readallparam.o \ |
99 |
|
${DIRLIB}/functions.o \ |
100 |
|
${DIRLIB}/mini.o \ |
101 |
|
${DIRLIB}/tricircle.o \ |
102 |
|
${DIRLIB}/analysisflight.o \ |
103 |
|
${DIRLIB}/analysissubroutines.o \ |
104 |
|
${DIRLIB}/fillpedsig.o \ |
105 |
|
${DIRLIB}/cncomp.o \ |
106 |
|
${DIRLIB}/filladc.o \ |
107 |
|
${DIRLIB}/reductionflight.o |
108 |
|
LIBROOTCLIBS= libTrkParams libTrkLevel2 libTrkLevel1 libTrkLevel0 libTrkHough libTrkCalib |
109 |
|
|
110 |
#LIBROOTCLIBS= |
#LIBROOTCLIBS= |
111 |
FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so) |
FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so) |
112 |
#------------------------------------------------- |
#------------------------------------------------- |
113 |
# librerie C++ NON utilizzabili da root |
# librerie C++ NON utilizzabili da root |
114 |
#LIBCPPSRCS= ${DIRSRC}/TrkLevel2.cpp \ |
#LIBCPPSRCS= ${DIRSRC}/TrkLevel2.cpp \ |
115 |
# ${DIRSRC}/TrkLevel0.cpp |
# ${DIRSRC}/TrkLevel0.cpp |
116 |
LIBCPPSRCS=${DIRSRC}/TrkLevel0.cpp \ |
LIBCPPSRCS=${DIRSRC}/TrkStruct.cpp \ |
|
${DIRSRC}/TrkStruct.cpp \ |
|
117 |
${DIRSRC}/TrkProcess.cpp \ |
${DIRSRC}/TrkProcess.cpp \ |
118 |
${DIRSRC}/TrkVerl2.cpp \ |
${DIRSRC}/TrkVerl2.cpp \ |
119 |
${DIRSRC}/TrkCore.cpp |
${DIRSRC}/TrkCore.cpp \ |
120 |
|
# ${DIRSRC}/TrkLevel0.cpp |
121 |
|
|
122 |
LIBCPPLIBS=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
LIBCPPLIBS=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
123 |
#LIBCPPCLIBS=libTrkLevel2 libTrkLevel0 |
#LIBCPPCLIBS=libTrkLevel2 libTrkLevel0 |
124 |
LIBCPPCLIBS=libTrkLevel0 libTrkStruct libTrkProcess libTrkCore libTrkVerl2 |
LIBCPPCLIBS= libTrkStruct libTrkProcess libTrkCore libTrkVerl2 #libTrkLevel0 |
125 |
FULLCPPCLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so) |
FULLCPPCLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so) |
126 |
#------------------------------------------------- |
#------------------------------------------------- |
127 |
# librerie F77 NON utilizzabili da root |
# librerie F77 NON utilizzabili da root |
150 |
${DIRINC}/TrkLevel2.h \ |
${DIRINC}/TrkLevel2.h \ |
151 |
${DIRINC}/TrkLevel1.h \ |
${DIRINC}/TrkLevel1.h \ |
152 |
${DIRINC}/TrkLevel0.h \ |
${DIRINC}/TrkLevel0.h \ |
153 |
|
${DIRINC}/TrkHough.h \ |
154 |
|
${DIRINC}/TrkCalib.h \ |
155 |
|
${DIRINC}/TrkParams.h \ |
156 |
${DIRINC}/TrkStruct.h \ |
${DIRINC}/TrkStruct.h \ |
157 |
${DIRINC}/TrkProcess.h \ |
${DIRINC}/TrkProcess.h \ |
158 |
${DIRINC}/TrkCore.h \ |
${DIRINC}/TrkCore.h \ |
208 |
# |
# |
209 |
# Create *Dict.cpp and *Dict.h |
# Create *Dict.cpp and *Dict.h |
210 |
# |
# |
211 |
@${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 |
@${ROOTCINT} -f ${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`Dict.cpp -c -I${DIRINC} -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 |
212 |
# |
# |
213 |
# create .o |
# create .o |
214 |
# |
# |