-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
48 lines (35 loc) · 1.16 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
all: sanity-check
$(MAKE) -C llvm-interface build gnatlib-automated
.PHONY: acats ccg-acats fixed-bugs ccg-tests llvm clean distclean
sanity-check:
@if ! [ -d llvm-interface/gnat_src ]; then \
echo "error: directory llvm-interface/gnat_src not found"; exit 1; \
fi
build build-opt clean gnatlib bootstrap automated zfp: sanity-check
$(MAKE) -C llvm-interface $@
gnatlib%: sanity-check
$(MAKE) -C llvm-interface $@
# Entry points for cross builds. Currently, it builds a cross compiler that
# isn't bootstrapped (i.e., we build it directly with native GNAT). The
# runtimes need to be built separately.
cross-automated:
$(MAKE) -C llvm-interface build-opt
# Build the full runtime instrumented with SymCC. This target requires SymCC and
# a working GNAT-LLVM on the path, i.e., it builds only the runtime.
symcc-automated:
$(MAKE) -C llvm-interface \
RTS="$(shell pwd)/llvm-interface/lib/rts-symcc" \
gnatlib-symcc-automated
llvm:
$(MAKE) -j1 -C llvm setup
$(MAKE) -C llvm llvm
acats:
$(MAKE) -C acats tests
ccg-acats:
$(MAKE) -C acats ccg
fixed-bugs:
$(MAKE) -C fixedbugs
ccg-tests:
$(MAKE) -C ccg-tests/tests
distclean: clean
$(MAKE) -C llvm clean