forked from libpfasst/LibPFASST
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.external
73 lines (59 loc) · 1.79 KB
/
Makefile.external
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
# fftw3
#
FFTW3 = fftw-3.3.8
FFTW3_CONFIG = --enable-openmp --enable-threads --enable-sse2 # --enable-shared --enable-long-double
fftw3: $(FFTW3).tar.gz
rm -rf $(FFTW3)
tar xzf $(FFTW3).tar.gz
cd $(FFTW3) && ./configure --prefix=$(PWD)/fftw3 $(FFTW3_CONFIG)
cd $(FFTW3) && make install
$(FFTW3).tar.gz:
wget http://fftw.org/$(FFTW3).tar.gz
#
# hdf5
#
HDF5 = hdf5-1.8.13
HDF5_CONFIG = --enable-fortran --enable-parallel
hdf5: $(HDF5).tar.gz
rm -rf $(HDF5)
tar xzf $(HDF5).tar.gz
cd $(HDF5) && ./configure --prefix=$(PWD)/hdf5 $(HDF5_CONFIG)
cd $(HDF5) && make install
$(HDF5).tar.gz:
wget http://www.hdfgroup.org/ftp/HDF5/current/src/$(HDF5).tar.gz
#
# gcc-4.7
#
GCC = gcc-4.7
GCCDL = $(GCC).tar.xz xz.tar.gz gcc-infrastructure.tar.xz
GCCTMP = $(LIBPFASST)/gcc.tmp
XZCAT = $(GCCTMP)/usr/bin/xzcat
gcc47: $(GCCDL)
rm -rf $(GCCTMP) $(GCC) makefile.gcc47.defs
mkdir $(GCCTMP)
cd $(GCCTMP) && tar zxf $(LIBPFASST)/xz.tar.gz
cd $(GCCTMP) && $(XZCAT) $(LIBPFASST)/$(GCC).tar.xz | tar x
cd $(GCCTMP)/$(GCC) && $(XZCAT) $(LIBPFASST)/gcc-infrastructure.tar.xz | tar x
mv $(GCCTMP)/$(GCC) $(LIBPFASST)
rm -rf $(GCCTMP)
ln -s $(LIBPFASST)/mk/makefile.gcc47.defs
@echo
@echo GCC 4.7 has been installed in
@echo
@echo $(LIBPFASST)/$(GCC)
@echo
@echo and a symlink to makefile.gcc47.defs has been created. These makefile
@echo definitions should work either of the of OpenMPI or MPICH2 mpif90
@echo compiler wrappers.
@echo
@echo You may need to set your LD_LIBRARAY_PATH to include
@echo
@echo $(LIBPFASST)/$(GCC)/lib:$(LIBPFASST)/$(GCC)/lib64
@echo
$(GCC).tar.xz:
wget http://gfortran.com/download/x86_64/snapshots/$(GCC).tar.xz
xz.tar.gz:
wget http://gfortran.com/download/x86_64/xz.tar.gz
gcc-infrastructure.tar.xz:
wget http://gfortran.com/download/x86_64/gcc-infrastructure.tar.xz