1 |
# Calorimeter "Franzini" method plugin |
# Calorimeter "Franzini" method plugin |
2 |
# SOFTWARE VERSION |
# SOFTWARE VERSION |
3 |
VER= v0r00 |
VER= v1r00 |
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 -fPIC -pthread -g |
#CFLAGS=-Wall -fPIC -pthread -g ${PAM_BIT} |
27 |
#CFLAGS=-Wall -O4 -fPIC -pthread |
CFLAGS=-Wall -O4 -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` |
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 ${PAM_BIT} |
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 ${PAM_BIT} |
36 |
# C++ |
# C++ |
37 |
CXX=g++ |
CXX=g++ |
38 |
CXXFLAGS=-Wall -fPIC -pthread -g |
#CXXFLAGS=-Wall -fPIC -pthread -g ${PAM_BIT} |
39 |
#CXXFLAGS=-Wall -O4 -fPIC -pthread |
CXXFLAGS=-Wall -O4 -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 |
55 |
FSRCS= |
FSRCS= |
56 |
FOBJS=$(FSRCS:${DIRSRC}/F77/%.f=${DIRLIB}/%.o) |
FOBJS=$(FSRCS:${DIRSRC}/F77/%.f=${DIRLIB}/%.o) |
57 |
#------------------------------------------------- |
#------------------------------------------------- |
58 |
CSRCS=${DIRSRC}/Calib.cpp |
CSRCS=${DIRSRC}/Calib.cpp |
59 |
COBJS=$(CSRCS:${DIRSRC}%.cpp=${DIRLIB}/%.o) |
COBJS=$(CSRCS:${DIRSRC}%.cpp=${DIRLIB}/%.o) |
60 |
#------------------------------------------------- |
#------------------------------------------------- |
61 |
# librerie utilizzabili da root (ci deve essere anche il ***LinkDef.h ) |
# librerie utilizzabili da root (ci deve essere anche il ***LinkDef.h ) |
82 |
|
|
83 |
#------------------------------------------------- |
#------------------------------------------------- |
84 |
# eseguibile |
# eseguibile |
85 |
CXXEXESRCS=${DIRSRC}/CaloCreateMatrix.cpp |
CXXEXESRCS=${DIRSRC}/CaloCreateMatrix.cpp |
86 |
CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o) |
CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o) |
87 |
CXXEXELIBS:=CaloCreateMatrix |
CXXEXELIBS:=CaloCreateMatrix |
88 |
|
|
89 |
OTHERLIBS=$(PAM_LIB)/libDarthVader.so $(PAM_LIB)/libPamLevel2.so |
OTHERLIBS=$(PAM_LIB)/libDarthVader.so $(PAM_LIB)/libPamLevel2.so |
90 |
#------------------------------------------------- |
#------------------------------------------------- |
91 |
# variabili per l'installazione |
# variabili per l'installazione |
92 |
EXESRCS=${DIRBIN}/CaloCreateMatrix |
EXESRCS=${DIRBIN}/CaloCreateMatrix |
93 |
INCSRCS=${DIRINC}/CaloFranzini.h |
INCSRCS=${DIRINC}/CaloFranzini.h |
94 |
MACROSSRCS= |
MACROSSRCS= |
95 |
CALIBFILES= |
CALIBFILES= |
174 |
${CXXEXELIBS}: ${COBJS} ${FOBJS} ${CXXEXEOBJS} |
${CXXEXELIBS}: ${COBJS} ${FOBJS} ${CXXEXEOBJS} |
175 |
@(${EVIOLET} "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *") |
@(${EVIOLET} "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *") |
176 |
@(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET}) |
@(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET}) |
177 |
@${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRLIB}/$@.o -I${DIRTOP}/${DIRINC} -I${PAM_INC} -I${PAM_YODA}/include/yoda/ ${PAM_YODA}/lib/libyoda.so ${FOBJS} ${COBJS} ${FULLLIBS} ${OTHERLIBS} -lThread `root-config --cflags --glibs` `doc/cernlib_pam mathlib` ; |
@${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRLIB}/$@.o -I${DIRTOP}/${DIRINC} -I${PAM_INC} -I${PAM_YODA}/include/yoda/ ${PAM_YODA}/lib/libyoda.so ${COBJS} ${FULLLIBS} ${OTHERLIBS} -lThread `root-config --cflags --glibs` `doc/cernlib_pam mathlib` ; |
178 |
|
|
179 |
# A small target to check environmental variables |
# A small target to check environmental variables |
180 |
%_env: |
%_env: |