-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·43 lines (29 loc) · 1.54 KB
/
makefile
File metadata and controls
executable file
·43 lines (29 loc) · 1.54 KB
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
SRCDIR= ./src
install:
cd $(SRCDIR); make
macos_install:
cd $(SRCDIR); make -f makefile.macos
clang_install:
cd $(SRCDIR); make -f makefile.clang
ubuntu_install:
cd $(SRCDIR); make -f makefile.ubuntu
monsoon_install: boost
cd $(SRCDIR); module purge && module load gcc/6.2.0 openmpi/2.1.0 glibc/2.23 && make -f makefile.static_boost
boost_1_67_0.tmp.downloaded:
curl -L https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz > /tmp/boost_1_67_0.tar.gz && touch boost_1_67_0.tmp.downloaded
boost_1_67_0.tar.gz:
curl -L https://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.gz > boost_1_67_0.tar.gz
boost_1_67_0.expanded: boost_1_67_0.tar.gz
tar xzf boost_1_67_0.tar.gz && touch boost_1_67_0.expanded
boost_1_67_0.configured: boost_1_67_0.expanded
cd boost_1_67_0 && bash ./bootstrap.sh --prefix=../ --with-libraries=filesystem,iostreams,mpi,regex,system,program_options,serialization && echo "using mpi ;" >> project-config.jam && cd - && touch boost_1_67_0.configured
boost: boost_1_67_0.configured
cd boost_1_67_0 && ./b2 install
docker_boost: boost_1_67_0.tmp.downloaded
cd /tmp && tar xzf boost_1_67_0.tar.gz && cd - && cp -r /tmp/boost_1_67_0 . && cd boost_1_67_0 && bash ./bootstrap.sh --prefix=../ --with-libraries=filesystem,iostreams,mpi,regex,system,program_options,serialization && echo "using mpi ;" >> project-config.jam && ./b2 install
clean:
cd $(SRCDIR); make clean
docker_clean:
cd $(SRCDIR); make docker_clean
docker_boost_clean:
pwd; cd .; pwd; rm -rvf boost_1_67_0; rm -rf /tmp/boost_1_67_0*