diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-10-29 23:33:36 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-10-29 23:33:36 +0100 |
commit | c1a82d50ef1d8adc4bdc5bd95c6777ae74f16b3b (patch) | |
tree | a4636f890fead0f03c37d460b6154dcea1134b7a /Makefile | |
parent | b0b6a7d7f4de63fba2ba91a98cecec1bd57d03f1 (diff) | |
download | sysc-playground-c1a82d50ef1d8adc4bdc5bd95c6777ae74f16b3b.tar.gz sysc-playground-c1a82d50ef1d8adc4bdc5bd95c6777ae74f16b3b.zip |
make: make build default target, link compile commands
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 ------------------------------------------------------------------- |