Last change
on this file since 12588 was 12588, checked in by Eric.Larour, 13 years ago |
Fixed macosx64 install.
|
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
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
|
---|
6 | rm -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
|
---|
12 | mkdir install src
|
---|
13 |
|
---|
14 | #Untar
|
---|
15 | tar -zxvf ADOL-C-2.2.0.tar.gz
|
---|
16 |
|
---|
17 | #Move ADOL-C into install directory
|
---|
18 | mv ADOL-C-2.2.0/* src
|
---|
19 | rm -rf ADOL-C-2.2.0
|
---|
20 |
|
---|
21 | #Compile ADOL-C
|
---|
22 | cd 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 |
|
---|
36 | if [ -z $1 ]; then
|
---|
37 | make
|
---|
38 | else
|
---|
39 | make -j $1
|
---|
40 | fi
|
---|
41 | make install
|
---|
42 |
|
---|
43 |
|
---|
44 | #Ok, bug with libtool: replace all LIBTOOL= by LIBTOOL=libtool
|
---|
45 | #in all Makefiles
|
---|
46 | for i in `find ./ -name Makefile `
|
---|
47 | do
|
---|
48 | echo $i
|
---|
49 | cat $i | sed 's/LIBTOOL =/LIBTOOL = libtool/g' > $i.bak
|
---|
50 | mv $i.bak $i
|
---|
51 | done
|
---|
52 |
|
---|
53 | #remake:
|
---|
54 | if [ -z $1 ]; then
|
---|
55 | make
|
---|
56 | else
|
---|
57 | make -j $1
|
---|
58 | fi
|
---|
59 | make install
|
---|
60 |
|
---|
61 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.