-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.in
53 lines (45 loc) · 1.46 KB
/
Makefile.in
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
prefix := @prefix@
abs_top_srcdir := @abs_top_srcdir@
XLEN := @XLEN@
RISCVTOOLS := @RISCVTOOLS@
ROCC = examples
.PHONY: all bareMetalC clean multi
all: bareMetalC multi
vars = \
abs_top_srcdir=$(abs_top_srcdir) \
XLEN=$(XLEN) \
PREFIX=$(ROCC)-$@ \
src_dir=$(abs_top_srcdir)/$@ \
RISCVTOOLS=$(RISCVTOOLS)
bareMetalC:
mkdir -p $@
$(MAKE) -C $@ -f $(abs_top_srcdir)/$@/Makefile $(vars)
multi:
mkdir -p $@
$(MAKE) -C $@ -f $(abs_top_srcdir)/$@/Makefile $(vars)
clean:
$(MAKE) -C bareMetalC -f $(abs_top_srcdir)/bareMetalC/Makefile abs_top_srcdir=$(abs_top_srcdir) PREFIX=$(ROCC)-bareMetalC clean
$(MAKE) -C multi -f $(abs_top_srcdir)/multi/Makefile abs_top_srcdir=$(abs_top_srcdir) PREFIX=$(ROCC)-multi clean
test-baremetal-bareMetalC:
make -C bareMetalC \
-f $(abs_top_srcdir)/bareMetalC/Makefile \
TARGET_MAKEFILE=$(abs_top_srcdir)/bareMetalC/Makefile \
abs_top_srcdir=$(abs_top_srcdir) \
src_dir=$(abs_top_srcdir)/bareMetalC \
XLEN=$(XLEN) \
PREFIX=$(ROCC)-bareMetalC \
RISCVTOOLS=$(RISCVTOOLS) \
RUNNER=$(RUNNER) \
run-baremetal
test-baremetal: test-baremetal-bareMetalC
run-baremetal
make -C multi \
-f $(abs_top_srcdir)/multi/Makefile \
TARGET_MAKEFILE=$(abs_top_srcdir)/multi/Makefile \
abs_top_srcdir=$(abs_top_srcdir) \
src_dir=$(abs_top_srcdir)/multi \
XLEN=$(XLEN) \
PREFIX=$(ROCC)-multi \
RISCVTOOLS=$(RISCVTOOLS) \
RUNNER=$(RUNNER) \
run-baremetal