/[PAMELA software]/DarthVader/TrackerLevel2/Makefile
ViewVC logotype

Diff of /DarthVader/TrackerLevel2/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by pam-fi, Fri Nov 10 11:38:43 2006 UTC revision 1.33 by mocchiut, Mon Mar 10 10:37:31 2008 UTC
# Line 1  Line 1 
1  # Tracker flight analysis software  # Tracker flight analysis software
2  # SOFTWARE VERSION  # SOFTWARE VERSION
3  VER= v2r00  VER= v5r00
4  DEBUG=0  DEBUG=0
5  # An almost general purpouse Makefile for PAMELA repository  # An almost general purpouse Makefile for PAMELA repository
6  # Let's start with some usefull definition for colorize the echo  # Let's start with some usefull definition for colorize the echo
# Line 25  RESET=tput sgr0 Line 25  RESET=tput sgr0
25  # C  # C
26  CC=gcc  CC=gcc
27  #CFLAGS=-Wall -O -fPIC -pthread -g  #CFLAGS=-Wall -O -fPIC -pthread -g
28  CFLAGS=-Wall -O -fPIC -pthread  #CFLAGS=-Wall -O -fPIC -pthread
29    CFLAGS=-Wall -fPIC -pthread
30  # Enviroment:  # Enviroment:
31  GCCVER=`gcc --version | head -1`  GCCVER=`gcc --version | head -1`
32  UNAMEA=`uname -a`  UNAMEA=`uname -a`
# Line 33  TODAY=`date` Line 34  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 -fPIC
38  # C++  # C++
39  CXX=g++  CXX=g++
40  #CXXFLAGS=-Wall -O -fPIC -pthread -g -D'DEBUG=${DEBUG}'  #CXXFLAGS=-Wall -O -fPIC -pthread -g -D'DEBUG=${DEBUG}'
41  #CXXFLAGS=-Wall -O -fPIC -pthread -g -D'DEBUG=0'  #CXXFLAGS=-Wall -O -fPIC -pthread -g -D'DEBUG=0'
42  #CXXFLAGS=-Wall -O -fPIC -pthread -fpermissive  #CXXFLAGS=-Wall -O -fPIC -pthread -fpermissive
43  CXXFLAGS=-Wall -O -fPIC -pthread  #CXXFLAGS=-Wall -O4 -fPIC -pthread
44    CXXFLAGS=-Wall -fPIC -pthread
45  # ROOTCINT  # ROOTCINT
46  ROOTCINT=rootcint  ROOTCINT=rootcint
47  # Here the variables definig the local directories  # Here the variables definig the local directories
# Line 71  FSRCS=${DIRSRC}/F77/fillpedsig.f   \ Line 73  FSRCS=${DIRSRC}/F77/fillpedsig.f   \
73          ${DIRSRC}/F77/readB.f \          ${DIRSRC}/F77/readB.f \
74          ${DIRSRC}/F77/interB.f \          ${DIRSRC}/F77/interB.f \
75          ${DIRSRC}/F77/track.f \          ${DIRSRC}/F77/track.f \
76          ${DIRSRC}/F77/grkuta.f          ${DIRSRC}/F77/grkuta.f \
77            ${DIRSRC}/F77/bdll.f      # ***PP***
78    
79  FOBJS=$(FSRCS:${DIRSRC}/F77/%.f=${DIRLIB}/%.o)  FOBJS=$(FSRCS:${DIRSRC}/F77/%.f=${DIRLIB}/%.o)
80  #-------------------------------------------------  #-------------------------------------------------
# Line 79  CSRCS= Line 82  CSRCS=
82  COBJS=$(CSRCS:${DIRSRC}%.cpp=${DIRLIB}/%.o)  COBJS=$(CSRCS:${DIRSRC}%.cpp=${DIRLIB}/%.o)
83  #-------------------------------------------------  #-------------------------------------------------
84  # librerie utilizzabili da root (ci deve essere anche il ***LinkDef.h )  # librerie utilizzabili da root (ci deve essere anche il ***LinkDef.h )
85  LIBROOTSRCS=    ${DIRSRC}/TrkLevel2.cpp  \  LIBROOTSRCS=${DIRSRC}/TrkParams.cpp \
86                  ${DIRSRC}/TrkLevel1.cpp \          ${DIRSRC}/TrkLevel2.cpp  \
87                  ${DIRSRC}/TrkHough.cpp          ${DIRSRC}/TrkLevel1.cpp \
88            ${DIRSRC}/TrkLevel0.cpp \
89            ${DIRSRC}/TrkHough.cpp \
90            ${DIRSRC}/TrkCalib.cpp
91    
92  #LIBROOTSRCS=    #LIBROOTSRCS=  
93  LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)  LIBROOTLIBS=$(LIBROOTSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)
94  LIBROOTOBJS=${DIRLIB}/readB.o ${DIRLIB}/interB.o ${DIRLIB}/track.o ${DIRLIB}/grkuta.o ${DIRLIB}/functionspfa.o ${DIRLIB}/readallparam.o ${DIRLIB}/functions.o ${DIRLIB}/mini.o ${DIRLIB}/tricircle.o  LIBROOTOBJS=${DIRLIB}/readB.o \
95  LIBROOTCLIBS=libTrkLevel2 libTrkLevel1 libTrkHough          ${DIRLIB}/interB.o \
96            ${DIRLIB}/track.o \
97            ${DIRLIB}/grkuta.o \
98            ${DIRLIB}/bdll.o \
99            ${DIRLIB}/functionspfa.o \
100            ${DIRLIB}/readallparam.o \
101            ${DIRLIB}/functions.o  \
102            ${DIRLIB}/mini.o  \
103            ${DIRLIB}/tricircle.o  \
104            ${DIRLIB}/analysisflight.o  \
105            ${DIRLIB}/analysissubroutines.o  \
106            ${DIRLIB}/fillpedsig.o  \
107            ${DIRLIB}/cncomp.o  \
108            ${DIRLIB}/filladc.o  \
109            ${DIRLIB}/reductionflight.o
110    LIBROOTCLIBS= libTrkParams libTrkLevel2 libTrkLevel1 libTrkLevel0 libTrkHough libTrkCalib
111    
112  #LIBROOTCLIBS=  #LIBROOTCLIBS=
113  FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so)  FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}/%_${VER}.so)
# Line 93  FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB} Line 115  FULLROOTCLIBS=$(LIBROOTCLIBS:%=${DIRLIB}
115  # librerie C++ NON utilizzabili da root  # librerie C++ NON utilizzabili da root
116  #LIBCPPSRCS=  ${DIRSRC}/TrkLevel2.cpp \  #LIBCPPSRCS=  ${DIRSRC}/TrkLevel2.cpp \
117  #               ${DIRSRC}/TrkLevel0.cpp  #               ${DIRSRC}/TrkLevel0.cpp
118  LIBCPPSRCS=${DIRSRC}/TrkLevel0.cpp \  LIBCPPSRCS=${DIRSRC}/TrkStruct.cpp \
            ${DIRSRC}/TrkStruct.cpp \  
119             ${DIRSRC}/TrkProcess.cpp \             ${DIRSRC}/TrkProcess.cpp \
120             ${DIRSRC}/TrkVerl2.cpp \             ${DIRSRC}/TrkVerl2.cpp \
121             ${DIRSRC}/TrkCore.cpp               ${DIRSRC}/TrkCore.cpp \
122    #          ${DIRSRC}/TrkLevel0.cpp
123    
124  LIBCPPLIBS=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)  LIBCPPLIBS=$(LIBCPPSRCS:${DIRSRC}/%.cpp=${DIRLIB}/lib%_${VER}.so)
125  #LIBCPPCLIBS=libTrkLevel2 libTrkLevel0  #LIBCPPCLIBS=libTrkLevel2 libTrkLevel0
126  LIBCPPCLIBS=libTrkLevel0 libTrkStruct libTrkProcess libTrkCore libTrkVerl2  LIBCPPCLIBS= libTrkStruct libTrkProcess libTrkCore libTrkVerl2 #libTrkLevel0
127  FULLCPPCLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so)  FULLCPPCLIBS=$(LIBCPPCLIBS:%=${DIRLIB}/%_${VER}.so)
128  #-------------------------------------------------  #-------------------------------------------------
129  # librerie F77 NON utilizzabili da root  # librerie F77 NON utilizzabili da root
# Line 118  CXXEXESRCS=${DIRSRC}/TrackerLevel2.cpp Line 141  CXXEXESRCS=${DIRSRC}/TrackerLevel2.cpp
141  CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o)  CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=${DIRLIB}%.o)
142  CXXEXELIBS:=TrackerLevel2  CXXEXELIBS:=TrackerLevel2
143    
144  OTHERLIBS=${PAM_LIB}/libGLTables.so ${DIRLIB}/libRunInfo.so  OTHERLIBS=${PAM_LIB}/libGLTables.so ${DIRLIB}/libRunInfo.so
145  SUBDIR=../RunInfo  SUBDIR=../RunInfo
146  SUBINC=$(shell for dir in `echo ${SUBDIR}`; do echo -I$${dir}/inc; done)  SUBINC=$(shell for dir in `echo ${SUBDIR}`; do echo -I$${dir}/inc; done)
147    
# Line 130  INCSRCS= \ Line 153  INCSRCS= \
153          ${DIRINC}/TrkLevel1.h \          ${DIRINC}/TrkLevel1.h \
154          ${DIRINC}/TrkLevel0.h \          ${DIRINC}/TrkLevel0.h \
155          ${DIRINC}/TrkHough.h \          ${DIRINC}/TrkHough.h \
156            ${DIRINC}/TrkCalib.h \
157            ${DIRINC}/TrkParams.h \
158          ${DIRINC}/TrkStruct.h \          ${DIRINC}/TrkStruct.h \
159          ${DIRINC}/TrkProcess.h \          ${DIRINC}/TrkProcess.h \
160          ${DIRINC}/TrkCore.h \          ${DIRINC}/TrkCore.h \
# Line 185  ${LIBROOTLIBS}: ${LIBROOTSRCS} ${FOBJS} Line 210  ${LIBROOTLIBS}: ${LIBROOTSRCS} ${FOBJS}
210  #  #
211  #       Create *Dict.cpp and *Dict.h  #       Create *Dict.cpp and *Dict.h
212  #  #
213          @${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
214  #  #
215  #       create .o  #       create .o
216  #  #

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.33

  ViewVC Help
Powered by ViewVC 1.1.23