1 |
# Calorimeter flight analysis software |
# Calorimeter flight analysis software |
2 |
# SOFTWARE VERSION |
# SOFTWARE VERSION |
3 |
VER= v4r04 |
VER= v4r05 |
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' |
80 |
COBJS=$(CSRCS:${DIRSRC}%.c=${DIRLIB}%.o) |
COBJS=$(CSRCS:${DIRSRC}%.c=${DIRLIB}%.o) |
81 |
|
|
82 |
# -- CPP - ROOT libraries -- |
# -- CPP - ROOT libraries -- |
83 |
LIBROOTSRCS=${DIRSRC}/CaloLevel1.cpp \ |
LIBROOTSRCS=${DIRSRC}/CaloLevel0.cpp \ |
84 |
|
${DIRSRC}/CaloLevel1.cpp \ |
85 |
${DIRSRC}/CaloLevel2.cpp |
${DIRSRC}/CaloLevel2.cpp |
86 |
|
|
87 |
LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
88 |
LIBROOTOBJS=${DIRLIB}/millim.o |
#LIBROOTOBJS=${DIRLIB}/millim.o |
89 |
LIBROOTCLIBS=libCaloLevel2 libCaloLevel1 |
LIBROOTOBJS=${FOBJS} ${COBJS} |
90 |
|
LIBROOTCLIBS=libCaloLevel2 libCaloLevel1 libCaloLevel0 |
91 |
FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so) |
FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so) |
92 |
|
|
93 |
# -- CPP - NON-ROOT libraries -- |
# -- CPP - NON-ROOT libraries -- |
94 |
LIBCPPSRCS=${DIRSRC}/CaloProcessing.cpp \ |
LIBCPPSRCS=${DIRSRC}/CaloCore.cpp \ |
|
${DIRSRC}/CaloCore.cpp \ |
|
95 |
${DIRSRC}/CaloVerl2.cpp |
${DIRSRC}/CaloVerl2.cpp |
96 |
LIBCPPLIBS=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
LIBCPPLIBS=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
97 |
LIBCPPCLIBS=libCaloProcessing libCaloCore libCaloVerl2 |
LIBCPPCLIBS=libCaloCore libCaloVerl2 |
98 |
FULLLIBCPPLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so) |
FULLLIBCPPLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so) |
99 |
|
|
100 |
# -- CPP - Executables -- |
# -- CPP - Executables -- |
115 |
# Other objects to install |
# Other objects to install |
116 |
EXESRCS=${DIRBIN}/CalorimeterLevel2 |
EXESRCS=${DIRBIN}/CalorimeterLevel2 |
117 |
|
|
118 |
INCSRCS=${DIRINC}/CaloLevel1.h ${DIRINC}/CaloLevel2.h ${DIRINC}/CaloStruct.h ${DIRINC}/CaloProcessing.h ${DIRINC}/CaloCore.h |
INCSRCS=${DIRINC}/CaloLevel0.h ${DIRINC}/CaloLevel1.h ${DIRINC}/CaloLevel2.h ${DIRINC}/CaloStruct.h ${DIRINC}/CaloCore.h |
119 |
|
|
120 |
MACROSSRCS= |
MACROSSRCS= |
121 |
|
|
171 |
# |
# |
172 |
# Create *Dict.cpp and *Dict.h |
# Create *Dict.cpp and *Dict.h |
173 |
# |
# |
174 |
@${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 |
175 |
# |
# |
176 |
# create .o |
# create .o |
177 |
# |
# |