aboutsummaryrefslogtreecommitdiff
path: root/tests/simt_riscv64/source.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simt_riscv64/source.mk')
-rw-r--r--tests/simt_riscv64/source.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/simt_riscv64/source.mk b/tests/simt_riscv64/source.mk
new file mode 100644
index 0000000..e12420b
--- /dev/null
+++ b/tests/simt_riscv64/source.mk
@@ -0,0 +1,11 @@
+SIMT_RISCV64 := tests/simt_riscv64
+SIMT_RISCV64_SIM := $(SIMT_RISCV64)/sim.c
+
+TESTS += $(SIMT_RISCV64)/sim
+
+.PHONY: $(SIMT_RISCV64)/sim
+$(SIMT_RISCV64)/sim: $(SIMT_RISCV64_SIM) libgran.a
+ mkdir -p build/$(SIMT_RISCV64)
+ ./scripts/gen-rv64-fw -d build -o $(SIMT_RISCV64)/test.inc $(SIMT_RISCV64)/test.c
+ $(COMPILE_TEST) $(SIMT_RISCV64_SIM) libgran.a -o build/$@
+ ./scripts/gen-report -d build $@