/[PAMELA software]/eventviewer/flight/Makefile
ViewVC logotype

Diff of /eventviewer/flight/Makefile

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

revision 1.1 by mocchiut, Mon Mar 20 10:36:46 2006 UTC revision 1.3 by mocchiut, Tue Apr 4 14:03:59 2006 UTC
# Line 1  Line 1 
1  # FLIGHT EVENT VIEWER  # FLIGHT EVENT VIEWER
2  # SOFTWARE VERSION  # SOFTWARE VERSION
3  VER= v1r00  VER= v1r03
4  # REQUIRES CALOCOMMON and ROOT2PAW versions  # REQUIRES CALOCOMMON and ROOT2PAW versions
5  COMMONVER=v1r9  #COMMONVER=v1r9
6  R2PVER=v3r00  #R2PVER=v3r00
7  # installed calocommon version  # installed calocommon version
8  COMPCOMVER=`echo ${COMMONVER} | tr -d [a-z:A-Z]`  COMPCOMVER=`echo ${COMMONVER} | tr -d [a-z:A-Z]`
9  INSTCOMVER=`${PAM_BIN}/calocommon |head -2 |tail -1 | tr -d [a-z:A-Z]`  INSTCOMVER=`${PAM_BIN}/calocommon |head -2 |tail -1 | tr -d [a-z:A-Z]`
# Line 86  FULLCXXLIBS=$(CXXSRCS:${DIRSRC}/%.C=${DI Line 86  FULLCXXLIBS=$(CXXSRCS:${DIRSRC}/%.C=${DI
86  MACROSRCS=${DIRMACROS}/FEVpathtoc.cxx \  MACROSRCS=${DIRMACROS}/FEVpathtoc.cxx \
87            ${DIRMACROS}/FEVpamevcontrol.cxx \            ${DIRMACROS}/FEVpamevcontrol.cxx \
88            ${DIRMACROS}/FEventViewer.cxx            ${DIRMACROS}/FEventViewer.cxx
89  MACROSLIBS=$(MACROSRCS:${DIRMACROS}/%.cxx=${DIRLIB}/%_cxx_${VER}.so)  MACROSLIBS=$(MACROSRCS:${DIRMACROS}/%.cxx=${DIRLIB}/lib%_${VER}.so)
90  MACROCLIBS=FEVpathtoc_cxx FEVpamevcontrol_cxx FEventViewer_cxx  MACROCLIBS=libFEVpathtoc libFEVpamevcontrol libFEventViewer
91  FULLMACROCLIBS=$(MACROCLIBS:%=${DIRLIB}/%_${VER}.so)  FULLMACROCLIBS=$(MACROCLIBS:%=${DIRLIB}/%_${VER}.so)
92  FULLLINKMACROCLIBS=$(MACROCLIBS:%=${DIRLIB}/%.so)  FULLLINKMACROCLIBS=$(MACROCLIBS:%=${DIRLIB}/%.so)
93    
# Line 104  EXESRCS = ${DIRBIN}/FEventViewer Line 104  EXESRCS = ${DIRBIN}/FEventViewer
104    
105  INCSRCS= ${DIRINC}/feventviewer.h  INCSRCS= ${DIRINC}/feventviewer.h
106    
107    MACROSSRCS=${DIRMACROS}/ffilter.cxx
 MACROSSRCS=${DIRMACROS}/FEventViewer.cxx ${DIRMACROS}/ffilter.cxx  
108    
109  CALIBFILES=  CALIBFILES=
110    
# Line 128  all: Line 127  all:
127          @echo -e ${GREEN} ""          @echo -e ${GREEN} ""
128          @(${EGREEN} " Finished, now you can install the package \n  (use: make install or make upgrade or make forceinstall) "; ${RESET})          @(${EGREEN} " Finished, now you can install the package \n  (use: make install or make upgrade or make forceinstall) "; ${RESET})
129          @echo -e ${GREEN} ""          @echo -e ${GREEN} ""
         @if [ "$(shell ${PAM_BIN}/CaloLEVEL2 --version 2>/dev/null | grep version | tr -d [a-z:A-Z\ ])" ]; then (${EVIOLET} "WARNING: the installation will break dependencies of CALOLEVEL2"; ${RESET}); (${EVIOLET} "WARNING: re-compile CALOLEVEL2 package after the installation"; ${RESET}); echo -e ${GREEN} ""; fi        
130          @${RESET}          @${RESET}
131    
132  # Here some general rules to produce objects in our local dir  # Here some general rules to produce objects in our local dir
# Line 139  ${DIRBIN}/%.o : ${DIRSRC}/%.for Line 137  ${DIRBIN}/%.o : ${DIRSRC}/%.for
137    
138  ${DIRBIN}/%.o: ${DIRSRC}/%.cc  ${DIRBIN}/%.o: ${DIRSRC}/%.cc
139          @(${EGREEN} "Creating object file: "${WHITE} "$@"; ${RESET})          @(${EGREEN} "Creating object file: "${WHITE} "$@"; ${RESET})
140          @cat ${DIRSRC}/`basename ${@} .o`.cc > ${DIRSRC}/temp.cc;  #       @cat ${DIRSRC}/`basename ${@} .o`.cc > ${DIRSRC}/temp.cc;
141          @echo ' ' >> ${DIRSRC}/temp.cc  #       @echo ' ' >> ${DIRSRC}/temp.cc
142          @echo 'void info(){ printf("\nEventViewer package version: ${VER}\n\nCompiled on '${TODAY}' with: '${GCCVER}'\n\nOn: '${UNAMEA}'\n\n"); }' >> ${DIRSRC}/temp.cc  #       @echo 'void info(){ printf("\nEventViewer package version: ${VER}\n\nCompiled on '${TODAY}' with: '${GCCVER}'\n\nOn: '${UNAMEA}'\n\n"); }' >> ${DIRSRC}/temp.cc
143          @${CXX} ${CXXFLAGS} -c -o $@ ${DIRSRC}/temp.cc -I${DIRINC} -I${PAM_INC} -I${PAM_YODA}/include/yoda/ `root-config --cflags`  #       @${CXX} ${CXXFLAGS} -c -o $@ ${DIRSRC}/temp.cc -I${DIRINC} -I${PAM_INC} -I${PAM_YODA}/include/yoda/ `root-config --cflags`
144            @${CXX} ${CXXFLAGS} -c -o $@ ${DIRSRC}/`basename ${@} .o`.cc -I${DIRINC} -I${PAM_INC} -I${PAM_YODA}/include/yoda/ `root-config --cflags`
145    
146  # .o from C  # .o from C
147  ${DIRBIN}/%.o : ${DIRSRC}/%.c  ${DIRBIN}/%.o : ${DIRSRC}/%.c
# Line 172  ${MACROSLIBS}: ${MACROSRCS} Line 171  ${MACROSLIBS}: ${MACROSRCS}
171  #  #
172  #       Create *Dict.cxx and *Dict.h  #       Create *Dict.cxx and *Dict.h
173  #  #
174          @${ROOTCINT} -f ${DIRMACROS}/`basename $(@F) _cxx_${VER}.so`Dict.cxx -c -I${ROOTINC} ${DIRINC}/`basename $(@F) _cxx_${VER}.so`fun.h ${DIRINC}/`basename $(@F) _cxx_${VER}.so`LinkDef.h          @${ROOTCINT} -f ${DIRMACROS}/`basename $(@F) _${VER}.so  | sed s/lib//`Dict.cxx -c -I${ROOTINC} ${DIRINC}/`basename $(@F) _${VER}.so | sed s/lib//`fun.h ${DIRINC}/`basename $(@F) _${VER}.so | sed s/lib//`LinkDef.h
175  #  #
176  #       create .o  #       create .o
177  #  #
178          @cd ${DIRMACROS} &>/dev/null && ${CXX} ${CXXFLAGS} -c `basename $(@F) _cxx_${VER}.so`.cxx -I${PAM_INC} -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ -I${NROOTINC};          @cd ${DIRMACROS} &>/dev/null && ${CXX} ${CXXFLAGS} -c `basename $(@F) _${VER}.so | sed s/lib//`.cxx -I${PAM_INC} -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ -I${NROOTINC};
179          @cd ${DIRMACROS} &>/dev/null && ${CXX} ${CXXFLAGS} -c `basename $(@F) _cxx_${VER}.so`Dict.cxx -I${PAM_INC} -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ -I${NROOTINC};          @cd ${DIRMACROS} &>/dev/null && ${CXX} ${CXXFLAGS} -c `basename $(@F) _${VER}.so | sed s/lib//`Dict.cxx -I${PAM_INC} -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ -I${NROOTINC};
180  #  #
181  #       create .so  #       create .so
182  #  #
183          @if [ "$@" == "${DIRLIB}/FEVpathtoc_cxx_${VER}.so" ] || [ "$@" == "${DIRLIB}/FEVpamevcontrol_cxx_${VER}.so" ]; then ${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ -lg2c -I${PAM_INC} -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ ${PAM_YODA}/lib/libyoda.so ${DIRTOP}/${DIRMACROS}/`basename $(@F) _cxx_${VER}.so`.o ${DIRTOP}/${DIRMACROS}/`basename $(@F) _cxx_${VER}.so`Dict.o `root-config --cflags --glibs` 1>/dev/null; fi          @${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ -lg2c -I${PAM_INC} -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ ${PAM_YODA}/lib/libyoda.so ${DIRTOP}/${DIRMACROS}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${DIRTOP}/${DIRMACROS}/`basename $(@F) _${VER}.so | sed s/lib//`Dict.o `root-config --cflags --glibs` 1>/dev/null
184  #  #
         @if [ "$@" == "${DIRLIB}/FEventViewer_cxx_${VER}.so" ]; then ${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ -lg2c -I${PAM_INC} -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda/ ${PAM_YODA}/lib/libyoda.so ${DIRTOP}/${DIRMACROS}/`basename $(@F) _cxx_${VER}.so`.o ${DIRTOP}/${DIRMACROS}/`basename $(@F) _cxx_${VER}.so`Dict.o ${DIRTOP}/${DIRLIB}/FEVpathtoc_cxx_${VER}.so  ${DIRTOP}/${DIRLIB}/FEVpamevcontrol_cxx_${VER}.so `root-config --cflags --glibs` 1>/dev/null; fi  
   
185    
186  #${MACROSLIBS}: ${MACROSRCS}  #${MACROSLIBS}: ${MACROSRCS}
187  #       @(${EGREEN} "Compiling macro: "${WHITE} "$@"; ${RESET})  #       @(${EGREEN} "Compiling macro: "${WHITE} "$@"; ${RESET})
# Line 253  ${MACROSLIBS}: ${MACROSRCS} Line 250  ${MACROSLIBS}: ${MACROSRCS}
250    
251  ${CXXEXELIBS}: ${CXXEXEOBJS}  ${CXXEXELIBS}: ${CXXEXEOBJS}
252          @(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET})          @(${EGREEN} "Creating exec file: "${WHITE} "$@"; ${RESET})
253          @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRBIN}/$@.o -I${DIRINC} -I${PAM_INC} -I${PAM_YODA}/include/yoda/ ${PAM_YODA}/lib/libyoda.so ${DIRTOP}/${DIRLIB}/FEVpathtoc_cxx_${VER}.so ${DIRTOP}/${DIRLIB}/FEVpamevcontrol_cxx_${VER}.so ${DIRTOP}/${DIRLIB}/$@_cxx_${VER}.so `root-config --cflags --glibs`          @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRBIN}/$@.o -I${DIRINC} -I${PAM_INC} -I${PAM_YODA}/include/yoda/ ${PAM_YODA}/lib/libyoda.so ${DIRTOP}/${DIRLIB}/libFEVpathtoc_${VER}.so ${DIRTOP}/${DIRLIB}/libFEVpamevcontrol_${VER}.so ${DIRTOP}/${DIRLIB}/lib$@_${VER}.so `root-config --cflags --glibs`
254  #       @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRBIN}/$@.o -I${DIRINC} -I${PAM_INC} -I${PAM_YODA}/include/yoda/ ${PAM_LIB}/caloclasses_h.so ${PAM_YODA}/lib/libyoda.so ${DIRTOP}/${DIRLIB}/FEVpathtoc_c_${VER}.so ${PAM_LIB}/aclev1class_h.so ${DIRTOP}/${DIRLIB}/libreadb2maps_${VER}.so ${DIRTOP}/${DIRLIB}/libreadb2maps_C_${VER}.so ${DIRTOP}/${DIRLIB}/libtrack_${VER}.so ${DIRTOP}/${DIRLIB}/libtrack_C_${VER}.so ${DIRTOP}/${DIRLIB}/libptlevel1_${VER}.so ${DIRTOP}/${DIRLIB}/libptlevel1_C_${VER}.so ${DIRTOP}/${DIRLIB}/$@_c_${VER}.so `root-config --cflags --glibs`  #       @${CXX} ${CXXFLAGS} -o ${DIRBIN}/$@ ${DIRBIN}/$@.o -I${DIRINC} -I${PAM_INC} -I${PAM_YODA}/include/yoda/ ${PAM_LIB}/caloclasses_h.so ${PAM_YODA}/lib/libyoda.so ${DIRTOP}/${DIRLIB}/FEVpathtoc_c_${VER}.so ${PAM_LIB}/aclev1class_h.so ${DIRTOP}/${DIRLIB}/libreadb2maps_${VER}.so ${DIRTOP}/${DIRLIB}/libreadb2maps_C_${VER}.so ${DIRTOP}/${DIRLIB}/libtrack_${VER}.so ${DIRTOP}/${DIRLIB}/libtrack_C_${VER}.so ${DIRTOP}/${DIRLIB}/libptlevel1_${VER}.so ${DIRTOP}/${DIRLIB}/libptlevel1_C_${VER}.so ${DIRTOP}/${DIRLIB}/$@_c_${VER}.so `root-config --cflags --glibs`
255  #       @rm -f ${DIRSRC}/temp.cc  #       @rm -f ${DIRSRC}/temp.cc
256    
# Line 359  mysql_config: Line 356  mysql_config:
356          @$(test_cmd)          @$(test_cmd)
357    
358  mkpathtoc:  mkpathtoc:
359          @if [ "${PAM_CCO}" == "" ]; then echo '#include <TSystem.h>' >  ${DIRTOP}/${DIRMACROS}/FEVpathtoc.cxx; echo ' const char *pathtocalibration(){ return((const char*)gSystem->Getenv("PAM_CALIB"));}' >>  ${DIRTOP}/${DIRMACROS}/FEVpathtoc.cxx; fi          @if [ "${PAM_CCO}" == "" ]; then echo '#include <TSystem.h>' >  ${DIRTOP}/${DIRMACROS}/FEVpathtoc.cxx; echo ' const char *pathtocalibration(){ return((const char*)gSystem->Getenv("PAM_CALIB"));}' >>  ${DIRTOP}/${DIRMACROS}/FEVpathtoc.cxx; echo '  void info(){ printf("\nEventViewer package version: ${VER}\n\nCompiled on '${TODAY}' with: '${GCCVER}'\n\nOn: '${UNAMEA}'\n\n"); }' >>${DIRTOP}/${DIRMACROS}/FEVpathtoc.cxx; fi
360          @if [ "${PAM_CCO}" != "" ]; then echo '#include <TSystem.h>' >  ${DIRTOP}/${DIRMACROS}/FEVpathtoc.cxx; echo ' const char *pathtocalibration(){ return((const char*)"'${PAM_CALIB}'/");}' >>  ${DIRTOP}/${DIRMACROS}/FEVpathtoc.cxx; fi          @if [ "${PAM_CCO}" != "" ]; then echo '#include <TSystem.h>' >  ${DIRTOP}/${DIRMACROS}/FEVpathtoc.cxx; echo ' const char *pathtocalibration(){ return((const char*)"'${PAM_CALIB}'/");}' >>  ${DIRTOP}/${DIRMACROS}/FEVpathtoc.cxx;  echo '  void info(){ printf("\nEventViewer package version: ${VER}\n\nCompiled on '${TODAY}' with: '${GCCVER}'\n\nOn: '${UNAMEA}'\n\n"); }' >>${DIRTOP}/${DIRMACROS}/FEVpathtoc.cxx; fi
361          @sleep 0.5          @sleep 0.5
362    
363    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.23