| 1 | # Flight Event Viewer software | # Flight Event Viewer software | 
| 2 | # SOFTWARE VERSION | # SOFTWARE VERSION | 
| 3 | VER= v2r01 | VER= v3r00 | 
| 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' | 
| 23 | # Here the variables used to override the standard make flags | # Here the variables used to override the standard make flags | 
| 24 | # C | # C | 
| 25 | CC=gcc | CC=gcc | 
| 26 | CFLAGS=-Wall -O -fPIC -pthread -g | #CFLAGS=-Wall -O -fPIC -pthread -g -m32 | 
| 27 | #CFLAGS=-Wall -O -fPIC -pthread | CFLAGS=-Wall -O -fPIC -pthread -m32 | 
| 28 | # Enviroment: | # Enviroment: | 
| 29 | GCCVER=`gcc --version | head -1` | GCCVER=`gcc --version | head -1` | 
| 30 | UNAMEA=`uname -a` | UNAMEA=`uname -a` | 
| 31 | TODAY=`date` | TODAY=`date` | 
| 32 | # F77 | # F77 | 
| 33 | F77=g77 | F77=g77 | 
| 34 | 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 -m32 | 
| 35 | #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 -m32 | 
| 36 | # C++ | # C++ | 
| 37 | CXX=g++ | CXX=g++ | 
| 38 | CXXFLAGS=-Wall -O -fPIC -pthread -g | #CXXFLAGS=-Wall -O -fPIC -pthread -g -m32 | 
| 39 | #CXXFLAGS=-Wall -O -fPIC -pthread | CXXFLAGS=-Wall -O -fPIC -pthread -m32 | 
| 40 | # ROOTCINT | # ROOTCINT | 
| 41 | ROOTCINT=rootcint | ROOTCINT=rootcint | 
| 42 | # Here the variables definig the local directories | # Here the variables definig the local directories | 
| 85 | CXXEXELIBS:=FEventViewer | CXXEXELIBS:=FEventViewer | 
| 86 |  |  | 
| 87 | # -- list of tracker objects needed to link | # -- list of tracker objects needed to link | 
| 88 | TRKOBJS=${PAM_LIB}/libDarthVader.so ${PAM_LIB}/libGLTables.so ${PAM_LIB}/libsgp4.so | TRKOBJS=${PAM_LIB}/libDarthVader.so ${PAM_LIB}/libGLTables.so ${PAM_LIB}/libsgp4.so | 
| 89 | #${PAM_LIB}/libTrkLevel2.so ${PAM_LIB}/libTrkLevel1.so ${PAM_LIB}/libGLTables.so ${PAM_LIB}/libRunInfo.so ${PAM_LIB}/libNDLevel2.so ${PAM_LIB}/libAcLevel2.so ${PAM_LIB}/libToFLevel2.so ${PAM_LIB}/libS4Level2.so ${PAM_LIB}/libCaloLevel2.so ${PAM_LIB}/libOrbitalInfo.so ${PAM_LIB}/libTrigLevel2.so | #${PAM_LIB}/libTrkLevel2.so ${PAM_LIB}/libTrkLevel1.so ${PAM_LIB}/libGLTables.so ${PAM_LIB}/libRunInfo.so ${PAM_LIB}/libNDLevel2.so ${PAM_LIB}/libAcLevel2.so ${PAM_LIB}/libToFLevel2.so ${PAM_LIB}/libS4Level2.so ${PAM_LIB}/libCaloLevel2.so ${PAM_LIB}/libOrbitalInfo.so ${PAM_LIB}/libTrigLevel2.so | 
| 90 | # -- directory where to find tracker headers needed to compile | # -- directory where to find tracker headers needed to compile | 
| 91 | SUBDIR= | SUBDIR= | 
| 184 | @(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET}) | @(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET}) | 
| 185 | #       @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRLIB}/$@.o ${FULLROOTCLIBS} ${FULLLIBCPPLIBS} ${CPPOBJS} ${FOBJS} ${TRKOBJS} ${PAM_YODA}/lib/libyoda.so -I${DIRINC} ${SUBINC} -I${PAM_YODA}/include/yoda/ -lThread `root-config --cflags --glibs` `cernlib mathlib` | #       @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRLIB}/$@.o ${FULLROOTCLIBS} ${FULLLIBCPPLIBS} ${CPPOBJS} ${FOBJS} ${TRKOBJS} ${PAM_YODA}/lib/libyoda.so -I${DIRINC} ${SUBINC} -I${PAM_YODA}/include/yoda/ -lThread `root-config --cflags --glibs` `cernlib mathlib` | 
| 186 | ##      @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRLIB}/$@.o ${FULLROOTCLIBS} ${FULLLIBCPPLIBS} ${TRKOBJS} ${CPPOBJS} ${COBJS} ${FOBJS} ${PAM_YODA}/lib/libyoda.so ${PAM_YODA}/lib/libutils.so ${PAM_LIB}/libPamLevel2.so -lThread `root-config --cflags --glibs` `cernlib mathlib` | ##      @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRLIB}/$@.o ${FULLROOTCLIBS} ${FULLLIBCPPLIBS} ${TRKOBJS} ${CPPOBJS} ${COBJS} ${FOBJS} ${PAM_YODA}/lib/libyoda.so ${PAM_YODA}/lib/libutils.so ${PAM_LIB}/libPamLevel2.so -lThread `root-config --cflags --glibs` `cernlib mathlib` | 
| 187 | @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRLIB}/$@.o ${FULLROOTCLIBS} ${FULLLIBCPPLIBS} ${TRKOBJS} ${CPPOBJS} ${COBJS} ${FOBJS} ${PAM_YODA}/lib/libyoda.so ${PAM_LIB}/libPamLevel2.so -lThread `root-config --cflags --glibs` `doc/cernlib_pam mathlib` | #       echo 'nuclei is ${NUCLEI}' | 
| 188 |  | @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRLIB}/$@.o ${FULLROOTCLIBS} ${FULLLIBCPPLIBS} ${TRKOBJS} ${CPPOBJS} ${COBJS} ${FOBJS} ${PAM_YODA}/lib/libyoda.so ${PAM_LIB}/libPamLevel2.so -lThread `root-config --cflags --glibs` `doc/cernlib_pam mathlib`; | 
| 189 |  |  | 
| 190 | # A small target to check environmental variables | # A small target to check environmental variables | 
| 191 | %_env: | %_env: | 
| 287 |  |  | 
| 288 | testpamenv: ${PAM_ENV} | testpamenv: ${PAM_ENV} | 
| 289 |  |  | 
| 290 |  |  | 
| 291 | root-config: OPT=--cflags | root-config: OPT=--cflags | 
| 292 | root-config: | root-config: | 
| 293 | @${test_cmd} | @${test_cmd} |