Skip to content
Snippets Groups Projects
Select Git revision
  • ac9f4ad89955b1d3d7829f79c0999568f5feeb8d
  • master default protected
  • compilation2022apr
  • ISEI_3_5_1
  • VERSION_3_9-alba
  • VERSION_3_9-Indus2
  • Jianfeng
  • VERSION-3_10
  • VERSION-3_9_1
  • VERSION-3_9_alba
  • VERSION-3_9_Indus2
  • VERSION-3_9
  • VERSION-3_8
  • VERSION-3_7
  • ISEI_3_5_1-PATCH_2
  • ISEI_3_5_1-PATCH_1
  • PROD_3_5_1
  • VERSION_3_6prerelease2
  • VERSION_3_6prerelease
  • VERSION-3_5
  • tracy
21 results

make_for_gcc.sh

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    make_for_gcc.sh 904 B
    #!/bin/bash
    # not sh since on Ubuntu sh is not bash
    set -x # for debugging
    
    if [ $# -ne 1 ] 
    then                    # affiche l'usage
      echo "Missing parameter" 
      echo "Use: $0 debug for debug" 
      echo "Use: $0 opt for optimization result" 
      exit 1
    fi
    
    
    
    dir=`pwd`
    #NUM_REC="$dir/num_rec"
    
    #INSTALL="/usr/bin/install"
    
    TRACY="tracy"
    
    cd "$dir/$TRACY"
    
    # CVS file is inside, do not erase
    #rm -rf autom4te.cache
    rm -rf aclocal.m4
    
    make distclean
    
    ./bootstrap
    
    if [ $1 == "debug" ]
    then 
      F77=gfortran ./configure --prefix=$dir/$TRACY/tracy FFLAGS="-g -O2  -Wall -fbounds-check" CFLAGS="-g -O2  -Wall -fno-implicit-templates" CXXFLAGS="-g -O2  -Wall -fno-implicit-templates"
    fi
    
    if [ $1 == "opt" ]
    then 
    F77=gfortran ./configure --prefix=$dir/$TRACY/tracy FFLAGS="-O2  -Wall -fbounds-check" CFLAGS="-O2  -Wall -fno-implicit-templates" CXXFLAGS="-O2  -Wall -fno-implicit-templates"
    fi
    
    make
    make install