1 |
#Orbital Information for flight analysis software |
#Orbital Information for flight analysis software |
2 |
# SOFTWARE VERSION |
# SOFTWARE VERSION |
3 |
VER= v2r02 |
VER= v2r04 |
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' |
24 |
# C |
# C |
25 |
CC=gcc |
CC=gcc |
26 |
#CFLAGS=-Wall -O -fPIC -pthread -g ${PAM_BIT} |
#CFLAGS=-Wall -O -fPIC -pthread -g ${PAM_BIT} |
27 |
CFLAGS=-Wall -O -fPIC -pthread ${PAM_BIT} |
CFLAGS=-Wall -O3 -funroll-loops -fPIC -pthread ${PAM_BIT} |
28 |
# Enviroment: |
# Enviroment: |
29 |
GCCVER=`gcc --version | head -1` |
GCCVER=`gcc --version | head -1` |
30 |
UNAMEA=`uname -a` |
UNAMEA=`uname -a` |
32 |
# F77 |
# F77 |
33 |
F77=g77 |
F77=g77 |
34 |
#F77FLAGS= -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -g -extend_source -static -fno-backslash ${PAM_BIT} |
#F77FLAGS= -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -g -extend_source -static -fno-backslash ${PAM_BIT} |
35 |
F77FLAGS= -Wall -Wno-globals -fPIC -fvxt -fno-automatic -fbounds-check -extend_source -static -fno-backslash ${PAM_BIT} |
F77FLAGS= -Wall -funroll-loops -Wno-globals -fPIC -fvxt -fno-automatic -fbounds-check -extend_source -static -fno-backslash ${PAM_BIT} |
36 |
# C++ |
# C++ |
37 |
CXX=g++ |
CXX=g++ |
38 |
#CXXFLAGS=-Wall -O -fPIC -pthread -g ${PAM_BIT} |
#CXXFLAGS=-Wall -O -fPIC -pthread -g ${PAM_BIT} |
39 |
CXXFLAGS=-Wall -O -fPIC -pthread ${PAM_BIT} |
CXXFLAGS=-Wall -O3 -funroll-loops -fPIC -pthread ${PAM_BIT} |
40 |
# ROOTCINT |
# ROOTCINT |
41 |
ROOTCINT=rootcint |
ROOTCINT=rootcint |
42 |
# Here the variables definig the local directories |
# Here the variables definig the local directories |
68 |
|
|
69 |
# -- CPP - ROOT libraries -- |
# -- CPP - ROOT libraries -- |
70 |
LIBROOTSRCS=${DIRSRC}/OrbitalInfo.cpp \ |
LIBROOTSRCS=${DIRSRC}/OrbitalInfo.cpp \ |
71 |
${DIRSRC}/InclinationInfo.cpp |
${DIRSRC}/InclinationInfo.cpp \ |
72 |
|
${DIRSRC}/OrientationInfo.cpp |
73 |
|
|
74 |
LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) |
75 |
LIBROOTCLIBS=libOrbitalInfo libInclinationInfo |
LIBROOTCLIBS=libOrbitalInfo libInclinationInfo libOrientationInfo |
76 |
FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so) |
FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so) |
77 |
|
|
78 |
# -- CPP - NON-ROOT libraries -- |
# -- CPP - NON-ROOT libraries -- |
91 |
#TRKOBJS=${DIRTOP}/../lib2/libTrkLevel2.so ${DIRTOP}/../lib2/libtrack.so |
#TRKOBJS=${DIRTOP}/../lib2/libTrkLevel2.so ${DIRTOP}/../lib2/libtrack.so |
92 |
#TRKOBJS=${PAM_LIB}/libTrkLevel2.so ${PAM_LIB}/libtrack.so ${PAM_LIB}/libreadB.so ${PAM_LIB}/libinterB.so ${PAM_LIB}/libGLTables.so ${PAM_LIB}/libRunInfo.so |
#TRKOBJS=${PAM_LIB}/libTrkLevel2.so ${PAM_LIB}/libtrack.so ${PAM_LIB}/libreadB.so ${PAM_LIB}/libinterB.so ${PAM_LIB}/libGLTables.so ${PAM_LIB}/libRunInfo.so |
93 |
#TRKOBJS= |
#TRKOBJS= |
94 |
OTHERLIBS=${PAM_LIB}/libGLTables.so ${DIRLIB}/libRunInfo.so |
OTHERLIBS=${PAM_LIB}/libGLTables.so ${DIRLIB}/libRunInfo.so ${DIRLIB}/libToFLevel2.so |
95 |
# -- directory where to find tracker headers needed to compile |
# -- directory where to find tracker headers needed to compile |
96 |
#TRKHEAD=${DIRTOP}/../tracker/inc |
#TRKHEAD=${DIRTOP}/../tracker/inc |
97 |
#TRKHEAD=${PAM_INC} |
#TRKHEAD=${PAM_INC} |
104 |
# Other objects to install |
# Other objects to install |
105 |
EXESRCS=${DIRBIN}/OrbitalInfoLevel2 |
EXESRCS=${DIRBIN}/OrbitalInfoLevel2 |
106 |
|
|
107 |
INCSRCS=${DIRINC}/OrbitalInfo.h ${DIRINC}/OrbitalInfoStruct.h |
INCSRCS=${DIRINC}/OrbitalInfo.h ${DIRINC}/OrbitalInfoStruct.h ${DIRINC}/InclinationInfo.h ${DIRINC}/OrientationInfo.h |
108 |
|
|
109 |
MACROSSRCS= |
MACROSSRCS= |
110 |
|
|