-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathMakefile.in
35 lines (27 loc) · 1.01 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
prefix := @prefix@
abs_top_srcdir := @abs_top_srcdir@
XLEN := @XLEN@
ROCC := xfiles-dana
test_smoke_dir := $(abs_top_srcdir)/smoke
test_nets_dir := $(abs_top_srcdir)/nets
test_pk_dir := $(abs_top_srcdir)/pk
.PHONY: all smoke nets pk clean
all: smoke nets pk
vars = \
abs_top_srcdir=$(abs_top_srcdir) \
XLEN=$(XLEN) \
PREFIX=$(ROCC)-$@ \
src_dir=$(abs_top_srcdir)/$@
smoke:
mkdir -p $@
$(MAKE) -C $@ -f $(test_smoke_dir)/Makefile $(vars)
nets:
mkdir -p $@
$(MAKE) -C $@ -f $(test_nets_dir)/Makefile $(vars)
pk:
mkdir -p $@
$(MAKE) -C $@ -f $(abs_top_srcdir)/$@/Makefile $(vars)
clean:
$(MAKE) -C smoke -f $(test_smoke_dir)/Makefile abs_top_srcdir=$(abs_top_srcdir) PREFIX=$(ROCC)-smoke src_dir=$(abs_top_srcdir)/smoke clean
$(MAKE) -C nets -f $(test_nets_dir)/Makefile abs_top_srcdir=$(abs_top_srcdir) PREFIX=$(ROCC)-nets src_dir=$(abs_top_srcdir)/nets clean
$(MAKE) -C pk -f $(test_pk_dir)/Makefile abs_top_srcdir=$(abs_top_srcdir) PREFIX=$(ROCC)-pk src_dir=$(abs_top_srcdir)/pk clean