From 85f498bc0749ba8479357d96994c9b46d36c5a52 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sat, 4 Nov 2023 20:38:54 +0100 Subject: cmake: rename systemc files and fix Makefile --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 795540f..66d2662 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,8 @@ ifeq ($V,1) CCTEST_FLAGS += --verbose endif -SRCS = $(shell find src test -type f -name \*.h -or -name \*.cc) -BINS = $(SRCS:src/%.cc=BUILD/pg-%) +SIMS= $(wildcard src/*.cc) +BINS = $(SIMS:src/%.cc=BUILD/pg-%) # -- SYSTEMC PLAYGROUND -------------------------------------------------------- @@ -30,7 +30,7 @@ run/%: config test: build cd BUILD/test && ctest --output-on-failure $(CCTEST_FLAGS) -config: BUILD/CMakeCache.txt cmake/CMakeLists-sysc-external.txt cmake/CMakeLists-sysc-fetch.txt +config: BUILD/CMakeCache.txt cmake/SystemC-external.cmake cmake/SystemC-fetch.cmake BUILD/CMakeCache.txt: CMakeLists.txt # SystemC options: # BUILD_SHARED_LIBS @@ -49,7 +49,7 @@ targets: ninja -C BUILD -t targets fmt: - clang-format -i $(SRCS) + clang-format -i $(shell shell find src test -type f -name \*.h -or -name \*.cc) # -- CLEAN --------------------------------------------------------------------- -- cgit v1.2.3