1 |
# Calorimeter flight analysis software |
# Calorimeter flight analysis software |
2 |
# SOFTWARE VERSION |
# SOFTWARE VERSION |
3 |
VER= v4r11 |
VER= v6r00 |
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 ${PAM_BIT} |
27 |
CFLAGS=-Wall -O4 -fPIC -pthread |
CFLAGS=-Wall -O3 -funroll-loops -fPIC -pthread ${PAM_BIT} |
28 |
|
#CFLAGS=-Wall -O4 -fPIC -pthread ${PAM_BIT} |
29 |
# Enviroment: |
# Enviroment: |
30 |
GCCVER=`gcc --version | head -1` |
GCCVER=`gcc --version | head -1` |
31 |
UNAMEA=`uname -a` |
UNAMEA=`uname -a` |
32 |
TODAY=`date` |
TODAY=`date` |
33 |
# F77 |
# F77 |
34 |
F77=g77 |
F77=g77 |
35 |
#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} |
36 |
F77FLAGS= -Wall -Wno-globals -fPIC -fvxt -fno-automatic -fbounds-check -extend_source -static -fno-backslash |
#F77FLAGS= -fforce-addr -funroll-all-loops -ffinite-math-only -Wall -funroll-loops -Wno-globals -fPIC -fvxt -fno-automatic -fbounds-check -extend_source -static -fno-backslash ${PAM_BIT} |
37 |
|
F77FLAGS= -O1 -fforce-addr -funroll-all-loops -ffinite-math-only -Wall -funroll-loops -Wno-globals -fPIC -fvxt -fno-automatic -fbounds-check -extend_source -static -fno-backslash ${PAM_BIT} |
38 |
|
#F77FLAGS= -g -fforce-addr -funroll-all-loops -ffinite-math-only -Wall -funroll-loops -Wno-globals -fPIC -fvxt -fno-automatic -fbounds-check -extend_source -static -fno-backslash ${PAM_BIT} |
39 |
|
#F77FLAGS= -Wall -Wno-globals -fPIC -fvxt -fno-automatic -fbounds-check -extend_source -static -fno-backslash ${PAM_BIT} |
40 |
# C++ |
# C++ |
41 |
CXX=g++ |
CXX=g++ |
42 |
#CXXFLAGS=-Wall -O -fPIC -pthread -g |
#CXXFLAGS=-Wall -O -fPIC -pthread -g ${PAM_BIT} |
43 |
CXXFLAGS=-Wall -O4 -fPIC -pthread |
CXXFLAGS=-Wall -O3 -funroll-loops -fPIC -pthread ${PAM_BIT} |
44 |
|
#CXXFLAGS=-Wall -g -funroll-loops -fPIC -pthread ${PAM_BIT} |
45 |
|
#CXXFLAGS=-Wall -fPIC -pthread ${PAM_BIT} |
46 |
# ROOTCINT |
# ROOTCINT |
47 |
ROOTCINT=rootcint |
ROOTCINT=rootcint |
48 |
# Here the variables definig the local directories |
# Here the variables definig the local directories |
70 |
${DIRSRC}/nuclei.for \ |
${DIRSRC}/nuclei.for \ |
71 |
${DIRSRC}/cluster.for \ |
${DIRSRC}/cluster.for \ |
72 |
${DIRSRC}/cluster2.for \ |
${DIRSRC}/cluster2.for \ |
73 |
|
${DIRSRC}/cluster4.for \ |
74 |
${DIRSRC}/laterale.for \ |
${DIRSRC}/laterale.for \ |
75 |
${DIRSRC}/baric.for \ |
${DIRSRC}/baric.for \ |
76 |
${DIRSRC}/selftrig.for \ |
${DIRSRC}/selftrig.for \ |
122 |
# Other objects to install |
# Other objects to install |
123 |
EXESRCS=${DIRBIN}/CalorimeterLevel2 |
EXESRCS=${DIRBIN}/CalorimeterLevel2 |
124 |
|
|
125 |
INCSRCS=${DIRINC}/CaloLevel0.h ${DIRINC}/CaloLevel1.h ${DIRINC}/CaloLevel2.h ${DIRINC}/CaloStruct.h ${DIRINC}/CaloCore.h |
INCSRCS=${DIRINC}/CaloLevel0.h ${DIRINC}/CaloLevel1.h ${DIRINC}/CaloLevel2.h ${DIRINC}/CaloStruct.h ${DIRINC}/CaloCore.h ${DIRINC}/INTEST.TXT |
126 |
|
|
127 |
MACROSSRCS= |
MACROSSRCS= |
128 |
|
|