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

Diff of /DarthVader/RunInfo/Makefile

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

revision 1.2 by mocchiut, Fri May 19 14:36:38 2006 UTC revision 1.13 by mocchiut, Tue Jan 13 13:51:43 2009 UTC
# Line 1  Line 1 
1  # RunInfo software  # RunInfo software
2  # SOFTWARE VERSION  # SOFTWARE VERSION
3  VER= v1r02  VER= v2r00
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'
# Line 23  RESET=tput sgr0 Line 23  RESET=tput sgr0
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 -O -fPIC -pthread  CFLAGS=-Wall -O3 -funroll-loops -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 -funroll-loops -Wno-globals -fPIC -fvxt -fno-automatic -fbounds-check -extend_source -static -fno-backslash ${PAM_BIT}
36  # C++  # C++
37  CXX=g++  CXX=g++
38  #CXXFLAGS=-Wall -O -fPIC -pthread -g  #CXXFLAGS=-Wall -O -fPIC -pthread -g ${PAM_BIT}
39  CXXFLAGS=-Wall -O -fPIC -pthread  CXXFLAGS=-Wall -O3 -funroll-loops -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
# Line 51  DIRCALIB=calib Line 51  DIRCALIB=calib
51  # Here the  PAMELA environmental variables to be checked  # Here the  PAMELA environmental variables to be checked
52  PAM_ENV= PAM_BIN_env PAM_LIB_env PAM_INC_env PAM_DOC_env  PAM_ENV= PAM_BIN_env PAM_LIB_env PAM_INC_env PAM_DOC_env
53  #  #
54  SUBDIR=../GLTables  SUBDIR=
55  SUBINC=$(shell for dir in `echo ${SUBDIR}`; do echo -I$${dir}/inc; done)  SUBINC=-I${PAM_YODA}/include/yoda/ -I${PAM_INC}/
56    #SUBINC=$(shell for dir in `echo ${SUBDIR}`; do echo -I$${dir}/inc; done)
57    
58  # Here the local variables used to build the targets  # Here the local variables used to build the targets
59  # -- F77 - no libraries --  # -- F77 - no libraries --
# Line 88  CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=$ Line 89  CXXEXEOBJS=$(CXXEXESRCS:${DIRSRC}%.cpp=$
89  CXXEXELIBS=RunInfoLevel2  CXXEXELIBS=RunInfoLevel2
90    
91  # Other needed libraries  # Other needed libraries
92  OTHOBJS = ${DIRLIB}/libGLTables.so  OTHOBJS = ${PAM_LIB}/libGLTables.so
93    
94  # List of all libraries we want to install  # List of all libraries we want to install
95  FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPPLIBS}  FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPPLIBS}
# Line 96  FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPP Line 97  FULLLIBS = ${FULLROOTCLIBS} ${FULLLIBCPP
97  # Other objects to install  # Other objects to install
98  EXESRCS=${DIRBIN}/RunInfoLevel2  EXESRCS=${DIRBIN}/RunInfoLevel2
99    
100  INCSRCS=${DIRINC}/RunInfo.h ${DIRINC}/RunInfoCore.h  INCSRCS=${DIRINC}/RunInfo.h ${DIRINC}/RunInfoCore.h ${DIRINC}/RunInfoStruct.h
101    
102  MACROSSRCS=  MACROSSRCS=
103    
# Line 141  ${DIRLIB}/%.o: ${DIRSRC}/%.cpp Line 142  ${DIRLIB}/%.o: ${DIRSRC}/%.cpp
142    
143  ${DIRLIB}/%.o: ${DIRSRC}/%.c  ${DIRLIB}/%.o: ${DIRSRC}/%.c
144          @(${EGREEN} "Creating C object file: "${WHITE} "`basename $@`"; ${RESET})          @(${EGREEN} "Creating C object file: "${WHITE} "`basename $@`"; ${RESET})
145          @${CXX} ${CXXFLAGS} -c -o $@ ${DIRSRC}/`basename ${@} .o`.c -I${DIRINC} -I${SUBINC} `root-config --cflags`          @${CXX} ${CXXFLAGS} -c -o $@ ${DIRSRC}/`basename ${@} .o`.c -I${DIRINC} ${SUBINC} `root-config --cflags`
146    
147  ${DIRLIB}/%.o: ${DIRSRC}/%.for  ${DIRLIB}/%.o: ${DIRSRC}/%.for
148          @(${EGREEN} "Creating F77 object file: "${WHITE} "`basename $@`"; ${RESET})          @(${EGREEN} "Creating F77 object file: "${WHITE} "`basename $@`"; ${RESET})
# Line 314  else \ Line 315  else \
315       else \       else \
316         ${EYELLOW} " Forcing copy: "${WHITE} ${ORIGIN}/$${i##/*/} ;\         ${EYELLOW} " Forcing copy: "${WHITE} ${ORIGIN}/$${i##/*/} ;\
317         ${EYELLOW} "          to: "${WHITE} $${i} ; ${RESET}; \         ${EYELLOW} "          to: "${WHITE} $${i} ; ${RESET}; \
318         cp -f ${ORIGIN}/$${i##/*/} $${i}; \         cp -rf ${ORIGIN}/$${i##/*/} $${i}; \
319       fi; \       fi; \
320     else \     else \
321       ${EYELLOW} " Forcing copy: "${WHITE} ${ORIGIN}/$${i##/*/} ;\       ${EYELLOW} " Forcing copy: "${WHITE} ${ORIGIN}/$${i##/*/} ;\
322       ${EYELLOW} "          to: "${WHITE} $${i} ; ${RESET}; \       ${EYELLOW} "          to: "${WHITE} $${i} ; ${RESET}; \
323       cp ${FORCE} ${ORIGIN}/$${i##/*/} $${i}; \       cp -rf ${FORCE} ${ORIGIN}/$${i##/*/} $${i}; \
324     fi;\     fi;\
325  fi ;\  fi ;\
326  if [ ! -z ${LINK} ] ; then \  if [ ! -z ${LINK} ] ; then \

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

  ViewVC Help
Powered by ViewVC 1.1.23