1 |
# YodaProfiler |
# YodaProfiler |
2 |
# SOFTWARE VERSION |
# SOFTWARE VERSION |
3 |
VER= v2r00 |
VER= v3r01 |
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' |
25 |
MAKE=make |
MAKE=make |
26 |
# C |
# C |
27 |
CC=gcc |
CC=gcc |
28 |
#CFLAGS=-Wall -O -fPIC -pthread -g |
CFLAGS=-Wall -O -fPIC -pthread -g |
29 |
CFLAGS=-Wall -O -fPIC -pthread |
#CFLAGS=-Wall -O -fPIC -pthread |
30 |
# Enviroment: |
# Enviroment: |
31 |
GCCVER=`gcc --version | head -1` |
GCCVER=`gcc --version | head -1` |
32 |
UNAMEA=`uname -a` |
UNAMEA=`uname -a` |
33 |
TODAY=`date` |
TODAY=`date` |
34 |
# F77 |
# F77 |
35 |
F77=g77 |
F77=g77 |
36 |
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 |
37 |
#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 |
38 |
# C++ |
# C++ |
39 |
CXX=g++ |
CXX=g++ |
40 |
#CXXFLAGS=-Wall -O -fPIC -pthread -g |
CXXFLAGS=-Wall -O -fPIC -pthread -g |
41 |
CXXFLAGS=-Wall -O -fPIC -pthread |
#CXXFLAGS=-Wall -O4 -fPIC -pthread |
42 |
# ROOTCINT |
# ROOTCINT |
43 |
ROOTCINT=rootcint |
ROOTCINT=rootcint |
44 |
# Here the variables definig the local directories |
# Here the variables definig the local directories |
49 |
DIRBIN=bin/${ARCH} |
DIRBIN=bin/${ARCH} |
50 |
DIRSRC=src |
DIRSRC=src |
51 |
DIRINC=inc |
DIRINC=inc |
52 |
DIRDOC=doc |
DIRDOC=docs |
53 |
DIRMACROS=macros |
DIRMACROS=macros |
54 |
DIRCALIB=param |
DIRCALIB=param |
55 |
# Here the PAMELA environmental variables to be checked |
# Here the PAMELA environmental variables to be checked |
83 |
FULLLIBCPPLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so) |
FULLLIBCPPLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so) |
84 |
|
|
85 |
# -- CPP - Executables -- |
# -- CPP - Executables -- |
86 |
CXXEXESRCS=${DIRSRC}/YodaProfiler.cpp |
CXXEXESRCS=${DIRSRC}/YodaProfiler.cpp \ |
87 |
|
${DIRSRC}/R2-D2.cpp |
88 |
CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o) |
CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o) |
89 |
CXXEXELIBS:=YodaProfiler |
CXXEXELIBS:=YodaProfiler R2-D2 |
90 |
|
|
91 |
# List of all libraries we want to install |
# List of all libraries we want to install |
92 |
FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPPLIBS} ${DARTHVLIB} |
FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPPLIBS} ${DARTHVLIB} |
93 |
|
|
94 |
# Other objects to install |
# Other objects to install |
95 |
EXESRCS=${DIRBIN}/YodaProfiler |
EXESRCS=${DIRBIN}/YodaProfiler ${DIRBIN}/R2-D2 |
96 |
|
|
97 |
INCSRCS=${DIRINC}/GLTables.h ${DIRINC}/GLTablesStruct.h ${DIRINC}/sgp4.h |
INCSRCS=${DIRINC}/GLTables.h ${DIRINC}/GLTablesStruct.h ${DIRINC}/sgp4.h |
98 |
|
|
100 |
|
|
101 |
CALIBFILES= |
CALIBFILES= |
102 |
|
|
103 |
DOCFILES= |
DOCFILES=${DIRDOC}/retrieve_TLE.sh ${DIRDOC}/YodaProfilerManual.pdf ${DIRDOC}/PAMELAProductionDB.sql ${DIRDOC}/install_DB.sh |
104 |
|
|
105 |
# Here the Variables used for info target |
# Here the Variables used for info target |
106 |
PACKAGE=PAMELA analysis flight software |
PACKAGE=PAMELA analysis flight software |
171 |
|
|
172 |
${CXXEXELIBS}: ${CPPOBJS} ${COBJS} ${CXXEXEOBJS} |
${CXXEXELIBS}: ${CPPOBJS} ${COBJS} ${CXXEXEOBJS} |
173 |
@(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET}) |
@(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET}) |
|
# @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRTOP}/${DIRLIB}/$@.o ${CPPOBJS} ${PAM_YODA}/lib/libyoda.so ${PAM_YODA}/lib/libutils.so -lThread `root-config --cflags --glibs` `cernlib mathlib` |
|
|
# @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRTOP}/${DIRLIB}/$@.o ${DIRTOP}/${DIRLIB}/libPacketTypeList.so ${DIRTOP}/${DIRLIB}/libGLTables.so ${CPPOBJS} ${PAM_YODA}/lib/libyoda.so -lThread `root-config --cflags --glibs` `cernlib mathlib` |
|
|
|
|
|
# @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRTOP}/${DIRLIB}/$@.o ${DIRTOP}/${DIRLIB}/libGLTables.so ${CPPOBJS} ${PAM_YODA}/lib/libyoda.so -lThread `root-config --cflags --glibs` `cernlib mathlib` |
|
174 |
@${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRTOP}/${DIRLIB}/$@.o ${DIRTOP}/${DIRLIB}/libGLTables.so ${DIRTOP}/${DIRLIB}/libsgp4.so ${CPPOBJS} ${PAM_YODA}/lib/libyoda.so -lThread `root-config --cflags --glibs` |
@${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRTOP}/${DIRLIB}/$@.o ${DIRTOP}/${DIRLIB}/libGLTables.so ${DIRTOP}/${DIRLIB}/libsgp4.so ${CPPOBJS} ${PAM_YODA}/lib/libyoda.so -lThread `root-config --cflags --glibs` |
175 |
|
|
176 |
# A small target to check environmental variables |
# A small target to check environmental variables |