-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
76 lines (60 loc) · 1.43 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
71
72
73
74
75
76
# Use:
# $ make nodownload=1 target
# To skip downloading (in case everything is pre-downloaded)
# Phony targets
PNONIES=""
all: llvm noelle icemu
echo "Done building all"
# All downloads
download: download-llvm download-noelle download-icemu
echo "Done downloading files"
# LLVM
download-llvm: llvm/.download_llvm
@echo "LLVM up-to-date"
PHONIES+=download-llvm
llvm/.download_llvm:
ifdef nodownload
@echo "Skipping download"
else
echo "Downloading LLVM components"
cd llvm && ./download.sh
endif
llvm: download-llvm
cd llvm && ./build.sh
@echo "LLVM build completed"
PHONIES+=llvm
clean-llvm-downloads:
@echo "Removing LLVM downloads marker (does not remove the files), enable re-download"
rm -f llvm/.download_llvm
PHONIES+=clean-llvm-downloads
clean-llvm:
@echo "Cleaning LLVM directory"
rm -rf llvm/llvm-9.0.1/build
PHONIES+=clean-llvm
# Noelle
download-noelle:
ifdef nodownload
@echo "Skipping download"
else
git submodule update --init --recursive noelle/noelle
@echo "Noelle submodule up-to-date"
endif
PHONIES+=donwnload-noelle
noelle: llvm
cd noelle && ./build.sh
@echo "Noelle build completed"
PHONIES+=noelle
# ICEmu
download-icemu:
ifdef nodownload
@echo "Skipping download"
else
git submodule update --init --recursive icemu/icemu
@echo "ICEmu submodule up-to-date"
endif
PHONIES+=donwnload-icemu
icemu: download-icemu
cd icemu && ./build.sh
@echo "ICEmu build completed"
PHONIES+=icemu
.PHONY: ${PHONIES} all