-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
71 lines (58 loc) · 2.25 KB
/
Makefile
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
#
.PHONY: help
help:
@echo "make help"
@echo " this message"
@echo "==== Targets outside container ===="
@echo "make docker"
@echo " build and run docker using SST v11"
@echo "make docker_build"
@echo "make docker_run"
.PHONY: docker_91 docker_build_91 docker_run_91
docker_91: docker_build_91 docker_run_91
docker_build_91:
time docker build -f Dockerfile.phusion_9.1 -t sst_91 .
docker_run_91:
docker run -it -v `pwd`:/scratch --rm sst_91 /bin/bash
docker_build_fresh_91:
time docker build --no-cache -f Dockerfile.phusion_9.1 -t sst_91 .
.PHONY: docker_10 docker_build_10 docker_run_10
docker_10: docker_build_10 docker_run_10
docker_build_10:
time docker build -f Dockerfile.phusion_10 -t sst_10 .
docker_run_10:
docker run -it -v `pwd`:/scratch --rm sst_10 /bin/bash
docker_build_fresh_10:
time docker build --no-cache -f Dockerfile.phusion_10 -t sst_10 .
.PHONY: docker_10_core docker_build_10_core docker_run_10_core
docker_10_core: docker_build_10_core docker_run_10_core
docker_build_10_core:
time docker build -f Dockerfile.phusion_10_core -t sst_10_core .
docker_run_10_core:
docker run -it -v `pwd`:/scratch --rm sst_10_core /bin/bash
.PHONY: docker docker_build docker_run
docker: docker_build docker_run
docker_build:
time docker build -f Dockerfile -t sst_11_core .
docker_run:
docker run -it --user $$(id -u):$$(id -g) -v `pwd`:/scratch --rm sst_11_core /bin/bash
.PHONY: docker_head docker_build_10 docker_run_head
docker_head: docker_build_head docker_run_head
docker_build_head:
time docker build -f Dockerfile.phusion_head -t sst_head .
docker_run_head:
docker run -it -v `pwd`:/scratch --rm sst_head /bin/bash
docker_build_fresh_head:
time docker build --no-cache -f Dockerfile.phusion_head -t sst_head .
viz_Makefile:
makefile2dot | dot -Tpng > Makefile_viz.png
get_sst_source:
mkdir sstsimulator
cd sstsimulator/
git clone https://github.com/sstsimulator/sst-elements.git
git clone https://github.com/sstsimulator/sst-core.git
git clone https://github.com/sstsimulator/sst-macro.git
git clone https://github.com/sstsimulator/sst-external-element.git
git clone https://github.com/sstsimulator/sst-tutorials.git
git clone https://github.com/sstsimulator/sst-workbench.git
git clone https://github.com/sstsimulator/sst-tools.git