--- DarthVader/OrbitalInfo/Makefile 2006/11/20 12:08:51 1.8 +++ DarthVader/OrbitalInfo/Makefile 2009/01/13 13:51:42 1.24 @@ -1,6 +1,6 @@ #Orbital Information for flight analysis software # SOFTWARE VERSION -VER= v1r01 +VER= v3r00 # An almost general purpouse Makefile for PAMELA repository # Let's start with some usefull definition for colorize the echo RED='\E[1;31;40m' @@ -23,20 +23,20 @@ # Here the variables used to override the standard make flags # C CC=gcc -#CFLAGS=-Wall -O -fPIC -pthread -g -CFLAGS=-Wall -O -fPIC -pthread +#CFLAGS=-Wall -funroll-loops -fPIC -pthread -g ${PAM_BIT} +CFLAGS=-Wall -O3 -funroll-loops -fPIC -pthread ${PAM_BIT} # Enviroment: GCCVER=`gcc --version | head -1` UNAMEA=`uname -a` TODAY=`date` # F77 F77=g77 -#F77FLAGS= -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -g -extend_source -static -fno-backslash -F77FLAGS= -Wall -Wno-globals -fPIC -fvxt -fno-automatic -fbounds-check -extend_source -static -fno-backslash +#F77FLAGS= -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -g -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} # C++ CXX=g++ -#CXXFLAGS=-Wall -O -fPIC -pthread -g -CXXFLAGS=-Wall -O -fPIC -pthread +#CXXFLAGS=-Wall -funroll-loops -fPIC -pthread -g ${PAM_BIT} +CXXFLAGS=-Wall -O3 -funroll-loops -fPIC -pthread ${PAM_BIT} # ROOTCINT ROOTCINT=rootcint # Here the variables definig the local directories @@ -55,7 +55,7 @@ # Here the local variables used to build the targets # -- F77 - no libraries -- -FSRCS= +FSRCS=${DIRSRC}/igrf_sub.for FOBJS=$(FSRCS:${DIRSRC}%.for=${DIRLIB}%.o) # -- CPP - no libraries -- @@ -67,10 +67,12 @@ COBJS=$(CSRCS:${DIRSRC}%.c=${DIRLIB}%.o) # -- CPP - ROOT libraries -- -LIBROOTSRCS=${DIRSRC}/OrbitalInfo.cpp +LIBROOTSRCS=${DIRSRC}/OrbitalInfo.cpp \ + ${DIRSRC}/InclinationInfo.cpp \ + ${DIRSRC}/OrientationInfo.cpp LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so) -LIBROOTCLIBS=libOrbitalInfo +LIBROOTCLIBS=libOrbitalInfo libInclinationInfo libOrientationInfo FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so) # -- CPP - NON-ROOT libraries -- @@ -89,11 +91,11 @@ #TRKOBJS=${DIRTOP}/../lib2/libTrkLevel2.so ${DIRTOP}/../lib2/libtrack.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 #TRKOBJS= -OTHERLIBS=${PAM_LIB}/libGLTables.so ${DIRLIB}/libRunInfo.so +OTHERLIBS=${PAM_LIB}/libGLTables.so ${DIRLIB}/libRunInfo.so ${DIRLIB}/libToFLevel2.so # -- directory where to find tracker headers needed to compile #TRKHEAD=${DIRTOP}/../tracker/inc #TRKHEAD=${PAM_INC} -SUBDIR=../RunInfo +SUBDIR=../RunInfo ../ToFLevel2 ../TrackerLevel2 ../TriggerLevel2 SUBINC=$(shell for dir in `echo ${SUBDIR}`; do echo -I$${dir}/inc; done) # List of all libraries we want to install @@ -102,7 +104,7 @@ # Other objects to install EXESRCS=${DIRBIN}/OrbitalInfoLevel2 -INCSRCS=${DIRINC}/OrbitalInfo.h ${DIRINC}/OrbitalInfoStruct.h +INCSRCS=${DIRINC}/OrbitalInfo.h ${DIRINC}/OrbitalInfoStruct.h ${DIRINC}/InclinationInfo.h ${DIRINC}/OrientationInfo.h MACROSSRCS= @@ -158,7 +160,7 @@ # # Create *Dict.cpp and *Dict.h # - @${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 # # create .o #