| 25 | 
 CC=gcc | 
 CC=gcc | 
| 26 | 
 #CFLAGS=-Wall -O -fPIC -pthread -g ${PAM_BIT}  | 
 #CFLAGS=-Wall -O -fPIC -pthread -g ${PAM_BIT}  | 
| 27 | 
 CFLAGS=-Wall -O3 -fPIC -pthread ${PAM_BIT}  | 
 CFLAGS=-Wall -O3 -fPIC -pthread ${PAM_BIT}  | 
| 28 | 
  | 
 #CFLAGS=-Wall -g -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 | 
  | 
 ifeq ($(GCC4),) | 
| 35 | 
  | 
 export GCCVERS=$(shell echo `gcc -dumpversion | sed 's/\./\ /g'`) | 
| 36 | 
  | 
 export GCCVERMAJ=$(word 1,$(GCCVERS)) | 
| 37 | 
  | 
 export GCC4=$(shell echo `echo "${GCCVERMAJ} > 3" |bc -l`) | 
| 38 | 
  | 
 endif | 
| 39 | 
  | 
 ifeq ($(GCC4),1) | 
| 40 | 
  | 
 F77=gfortran | 
| 41 | 
  | 
 LG2C=-lgfortran | 
| 42 | 
  | 
 EXTRAOPT= | 
| 43 | 
  | 
 else | 
| 44 | 
 F77=g77 | 
 F77=g77 | 
| 45 | 
  | 
 LG2C=-lg2c | 
| 46 | 
  | 
 EXTRAOPT=-Wno-globals -fvxt | 
| 47 | 
  | 
 endif | 
| 48 | 
 #F77FLAGS=  -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -g -extend_source -static -fno-backslash ${PAM_BIT}  | 
 #F77FLAGS=  -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -g -extend_source -static -fno-backslash ${PAM_BIT}  | 
| 49 | 
 F77FLAGS=  -Wall -Wno-globals -fvxt -fno-automatic -fbounds-check -extend_source -static -fno-backslash ${PAM_BIT}  | 
 F77FLAGS=  -Wall -funroll-loops -fPIC $(EXTRAOPT) -fno-automatic -fbounds-check -extend_source -static -fno-backslash ${PAM_BIT} | 
| 50 | 
 # C++ | 
 # C++ | 
| 51 | 
 CXX=g++ | 
 CXX=g++ | 
| 52 | 
 #CXXFLAGS=-Wall -O -fPIC -pthread -g ${PAM_BIT}  | 
 #CXXFLAGS=-Wall -O -fPIC -pthread -g ${PAM_BIT}  | 
| 144 | 
 ${LIBF77LIBS}: ${LIBF77OBJS} | 
 ${LIBF77LIBS}: ${LIBF77OBJS} | 
| 145 | 
         @(${EYELLOW} " F77 shared library --------------------------") | 
         @(${EYELLOW} " F77 shared library --------------------------") | 
| 146 | 
         @(${EGREEN} "Creating library: "${WHITE} "$@"; ${RESET}) | 
         @(${EGREEN} "Creating library: "${WHITE} "$@"; ${RESET}) | 
| 147 | 
         @${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ $^ -lg2c `doc/cernlib_pam mathlib` | 
         @${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ $^ $(LG2C) `doc/cernlib_pam mathlib` | 
| 148 | 
  | 
  | 
| 149 | 
  | 
  | 
| 150 | 
 ${LIBROOTLIBS}: ${LIBROOTSRCS} ${FOBJS} | 
 ${LIBROOTLIBS}: ${LIBROOTSRCS} ${FOBJS} | 
| 169 | 
 #       create .so | 
 #       create .so | 
| 170 | 
 # | 
 # | 
| 171 | 
         @(${EGREEN} "Compiling shared library: "${WHITE} "$@"; ${RESET}) | 
         @(${EGREEN} "Compiling shared library: "${WHITE} "$@"; ${RESET}) | 
| 172 | 
         @${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ -lg2c -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda -I${PAM_INC} ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`Dict.o ${LIBROOTOBJS} `doc/cernlib_pam mathlib` 1>/dev/null         | 
         @${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ $(LG2C) -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_YODA}/include/yoda -I${PAM_INC} ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`.o ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`Dict.o ${LIBROOTOBJS} `doc/cernlib_pam mathlib` 1>/dev/null       | 
| 173 | 
 #       @ln -sf  ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F)) | 
 #       @ln -sf  ${DIRTOP}/${DIRLIB}/$(@F) ${DIRTOP}/${DIRLIB}/$(patsubst %_${VER}.so,%.so,$(@F)) | 
| 174 | 
  | 
  | 
| 175 | 
 ${LIBCPPLIBS}: ${LIBCPPSRCS} | 
 ${LIBCPPLIBS}: ${LIBCPPSRCS} | 
| 182 | 
 #       create .so | 
 #       create .so | 
| 183 | 
 # | 
 # | 
| 184 | 
         @(${EGREEN} "Compiling shared library: "${WHITE} "$@"; ${RESET}) | 
         @(${EGREEN} "Compiling shared library: "${WHITE} "$@"; ${RESET}) | 
| 185 | 
         @${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ -lg2c -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_INC} -I${PAM_YODA}/include/yoda/ ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`.o 1>/dev/null | 
         @${CXX} ${CXXFLAGS} -Xlinker -soname=$(@F) -shared -o $@ $(LG2C) -I${DIRTOP}/${DIRINC} -I${DIRTOP} -I${PAM_INC} -I${PAM_YODA}/include/yoda/ ${DIRTOP}/${DIRSRC}/`basename $(@F) _${VER}.so | sed s/lib//`.o 1>/dev/null | 
| 186 | 
  | 
  | 
| 187 | 
  | 
  | 
| 188 | 
 ${CXXEXELIBS}: ${COBJS} ${FOBJS} ${CXXEXEOBJS} | 
 ${CXXEXELIBS}: ${COBJS} ${FOBJS} ${CXXEXEOBJS} |