Last change
on this file since 13069 was 13069, checked in by Eric.Larour, 13 years ago |
NEW: added svn repository to ADOL-C, if we want to work with the dvpt version of this code
|
-
Property svn:executable
set to
*
|
File size:
1.2 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 | #choose dev or not?
|
---|
6 | devpmt=1;
|
---|
7 |
|
---|
8 | #Some cleanup
|
---|
9 | rm -rf install ADOL-C-2.2.0 src trunk
|
---|
10 |
|
---|
11 | #Create install directories
|
---|
12 | mkdir install src
|
---|
13 |
|
---|
14 | if [[ $devpmt == "0" ]]; then
|
---|
15 | #Download from ISSM server
|
---|
16 | $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'
|
---|
17 |
|
---|
18 | #Untar
|
---|
19 | tar -zxvf ADOL-C-2.2.0.tar.gz
|
---|
20 |
|
---|
21 | #Move ADOL-C into install directory
|
---|
22 | mv ADOL-C-2.2.0/* src
|
---|
23 | rm -rf ADOL-C-2.2.0
|
---|
24 |
|
---|
25 | else
|
---|
26 | svn co https://projects.coin-or.org/svn/ADOL-C/trunk
|
---|
27 | mv trunk/* src
|
---|
28 | fi
|
---|
29 |
|
---|
30 |
|
---|
31 | #Compile ADOL-C
|
---|
32 | cd src
|
---|
33 |
|
---|
34 | #export CC=gcc
|
---|
35 | #export CXX=g++
|
---|
36 | #export CFLAGS="-arch x86_64"
|
---|
37 | #export CXXFLAGS="-arch x86_64"
|
---|
38 |
|
---|
39 | ./configure \
|
---|
40 | --prefix=$ISSM_DIR/externalpackages/adolc/install \
|
---|
41 | --enable-sparse \
|
---|
42 | --enable-docexa \
|
---|
43 | --enable-addexa \
|
---|
44 | --disable-shave
|
---|
45 |
|
---|
46 | if [ -z $1 ]; then
|
---|
47 | make
|
---|
48 | else
|
---|
49 | make -j $1
|
---|
50 | fi
|
---|
51 | make install
|
---|
52 |
|
---|
53 |
|
---|
54 | #Ok, bug with libtool: replace all LIBTOOL= by LIBTOOL=libtool
|
---|
55 | #in all Makefiles
|
---|
56 | for i in `find ./ -name Makefile `
|
---|
57 | do
|
---|
58 | echo $i
|
---|
59 | cat $i | sed 's/LIBTOOL =/LIBTOOL = libtool/g' > $i.bak
|
---|
60 | mv $i.bak $i
|
---|
61 | done
|
---|
62 |
|
---|
63 | #remake:
|
---|
64 | if [ -z $1 ]; then
|
---|
65 | make
|
---|
66 | else
|
---|
67 | make -j $1
|
---|
68 | fi
|
---|
69 | make install
|
---|
70 |
|
---|
71 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.