aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-11-01 19:44:52 +0100
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-11-01 19:44:52 +0100
commit1bcc32d20ee43ad10e9feafceaf6e517df21050f (patch)
tree805f86046461e29af65fa202a7e53a2bce4ff7b9
parent748608275e142428a2f2107d647b3a88c9cf48a0 (diff)
downloadsysc-playground-1bcc32d20ee43ad10e9feafceaf6e517df21050f.tar.gz
sysc-playground-1bcc32d20ee43ad10e9feafceaf6e517df21050f.zip
make: add run/% target to build & run a single simulation
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 54ac0ae..360a8b9 100644
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,10 @@ run: build
$$B; \
done
+run/%: $(SYSTEMC_HOME)/lib/libsystemc.a BUILD/PLAYGROUND/CMakeCache.txt src/%.cc
+ ninja -C BUILD/PLAYGROUND $(NINJA_FLAGS) $*
+ BUILD/PLAYGROUND/$*
+
test: build
cd BUILD/PLAYGROUND/test && ctest --output-on-failure $(CCTEST_FLAGS)