diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -13,15 +13,15 @@ BINS = $(SRCS:src/%.cc=BUILD/PLAYGROUND/%) # -- SYSTEMC PLAYGROUND -------------------------------------------------------- +build: INSTALL/lib/libsystemc.a BUILD/PLAYGROUND/CMakeCache.txt $(SRCS) + ninja -C BUILD/PLAYGROUND $(NINJA_FLAGS) + run: build @for B in $(BINS); do \ echo "==> $$B"; \ $$B; \ done -build: INSTALL/lib/libsystemc.a BUILD/PLAYGROUND/CMakeCache.txt $(SRCS) - ninja -C BUILD/PLAYGROUND $(NINJA_FLAGS) - test: build cd BUILD/PLAYGROUND && ctest --output-on-failure @@ -31,6 +31,7 @@ BUILD/PLAYGROUND/CMakeCache.txt: CMakeLists.txt -DCMAKE_EXPORT_COMPILE_COMMANDS=1 \ -DCMAKE_BUILD_TYPE=DEBUG \ #-DCMAKE_FIND_DEBUG_MODE=ON + ln -sfn BUILD/PLAYGROUND/compile_commands.json #ninja -C $@ -t compdb > compile_commands.json # -- SYSTEMC ------------------------------------------------------------------- |