-
Notifications
You must be signed in to change notification settings - Fork 11
/
install_GNU.sh
49 lines (41 loc) · 860 Bytes
/
install_GNU.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
echo 'Compiling using GNU....'
echo 'Creating lib and include folders....'
mkdir results
cd src
mkdir lib
mkdir include
# untar the dependent library 2decomp and fftw
echo 'Untaring....'
rm -rf fftw-3.3.4
rm -rf 2decomp_fft
tar -xvf 2decomp_fft-1.5.847.tar.gz
tar -xvf fftw-3.3.4.tar.gz
echo 'Compiling 2decomp....'
sleep 2
cd 2decomp_fft
mv ./src/Makefile.inc.x86 ./src/Makefile.inc
make
cp ./lib/lib2decomp_fft.a ../lib/
cp ./include/* ../include/
echo 'Compiling 2decomp Done!'
sleep 5
echo 'Compiling fftw.....'
sleep 5
cd ../fftw-3.3.4
CWD=$(pwd)
./configure CC=gcc --prefix=${CWD}
make
make install
cp ./lib/libfftw3.a ../lib/
cp ./include/fftw3.f03 ../include/
echo 'Compiling fftw Done!'
sleep 5
cd ..
echo 'Compiling HERCULES.....'
cp Makefile.GNU Makefile
make clean
make
cp hercules.exe ../
echo 'Compiling HERCULES Done!'
sleep 5