forked from securesystemslab/multicompiler-automation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
49 lines (30 loc) · 852 Bytes
/
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
# makefile for multi-compiler project
#SHELL=/bin/bash
#.PHONY: clean
#llvm-cmake hypervisor-setup
PREFIX="$(realpath tools)"
all:
#@echo "Prefix = $(value PREFIX)"
install: gold.install clang.install
gold.install: gold.build
$(MAKE) -C binutils install
clang.install: tools/bin/clang tools/bin/ld.old tools/lib/bfd-plugins
tools/bin/ld.old: gold.install
mv tools/bin/ld tools/bin/ld.old; \
ln -sf ld.gold tools/bin/ld
gold.build: gold.config
$(MAKE) -C binutils
gold.config: binutils/.binutils_configured
binutils/.binutils_configured:
./configure_binutils.sh "$(PREFIX)"
llvm/build:
./setup_llvm.sh "$(PREFIX)"
tools/lib/bfd-plugins: tools/bin/clang gold.install
./create_bfd_plugins.sh
tools/bin/clang: llvm/build
./build_clang.sh
clang: tools/lib/bfd-plugins
clean_llvm:
rm -rf llvm/build
clean_install:
rm -rf tools/*