source: issm/oecreview/Archive/12321-12677/ISSM-12587-12588.diff@ 12679

Last change on this file since 12679 was 12679, checked in by Mathieu Morlighem, 13 years ago

Added 12321-12677

File size: 2.3 KB
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/adolc/install.sh

     
    2121#Compile ADOL-C
    2222cd src
    2323
     24export CC=gcc
     25export CXX=g++
     26export CFLAGS="-arch x86_64"
     27export CXXFLAGS="-arch x86_64"
     28
    2429./configure \
    2530        --prefix=$ISSM_DIR/externalpackages/adolc/install \
    2631        --enable-sparse \
  • u/astrid-r1b/morlighe/issmuci/trunk-jpl/../trunk-jpl/externalpackages/adolc/install-macosx64.sh

     
     1#!/bin/bash
     2
     3#some issues on macosx64 with ISSM's autoconf. you might want to run native to mac on this.
     4
     5#Some cleanup
     6rm -rf install ADOL-C-2.2.0 src
     7
     8#Download from ISSM server
     9$ISSM_DIR/scripts/DownloadExternalPackage.py 'http://issm.jpl.nasa.gov/files/externalpackages/ADOL-C-2.2.0.tar.gz' 'ADOL-C-2.2.0.tar.gz'
     10
     11#Create install directories
     12mkdir install src
     13
     14#Untar
     15tar -zxvf  ADOL-C-2.2.0.tar.gz
     16
     17#Move ADOL-C into install directory
     18mv ADOL-C-2.2.0/* src
     19rm -rf ADOL-C-2.2.0
     20
     21#Compile ADOL-C
     22cd src
     23
     24#export CC=gcc
     25#export CXX=g++
     26#export CFLAGS="-arch x86_64"
     27#export CXXFLAGS="-arch x86_64"
     28
     29./configure \
     30        --prefix=$ISSM_DIR/externalpackages/adolc/install \
     31        --enable-sparse \
     32        --enable-docexa \
     33        --enable-addexa \
     34        --disable-shave
     35
     36if [ -z $1 ]; then
     37        make
     38else
     39        make -j $1
     40fi
     41make install
     42
     43
     44#Ok, bug with libtool: replace all LIBTOOL= by LIBTOOL=libtool
     45#in all Makefiles
     46for i in `find ./ -name Makefile `
     47do
     48        echo $i
     49        cat $i | sed 's/LIBTOOL =/LIBTOOL = libtool/g' > $i.bak
     50        mv $i.bak $i
     51done
     52
     53#remake:
     54if [ -z $1 ]; then
     55        make
     56else
     57        make -j $1
     58fi
     59make install
     60
     61
Note: See TracBrowser for help on using the repository browser.