aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-08-27 21:18:53 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-08-27 21:18:53 +0200
commitf396fab26611d6107e223a6a3f41c9dff3e2ee9e (patch)
treed1b22fd265f883404d7e484b7f7c460367a136be
parent7a0f884c6b11db6a59cfafce7b53158ad59a365e (diff)
downloadsysc-playground-f396fab26611d6107e223a6a3f41c9dff3e2ee9e.tar.gz
sysc-playground-f396fab26611d6107e223a6a3f41c9dff3e2ee9e.zip
move sources into src/ subdir
-rw-r--r--CMakeLists.txt2
-rw-r--r--Makefile6
-rw-r--r--src/browse.cc (renamed from browse.cc)0
-rw-r--r--src/event.cc (renamed from event.cc)0
-rw-r--r--src/minimal_socket.cc (renamed from minimal_socket.cc)0
-rw-r--r--src/sc_export.cc (renamed from sc_export.cc)0
-rw-r--r--src/sc_export2.cc (renamed from sc_export2.cc)0
-rw-r--r--src/utils.h (renamed from utils.h)0
8 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 373f414..8e3d7fd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,6 +8,6 @@ find_package(SystemCLanguage CONFIG REQUIRED)
set (CMAKE_CXX_STANDARD ${SystemC_CXX_STANDARD} CACHE STRING "C++ standard to build all targets.")
foreach (X IN ITEMS event sc_export sc_export2 minimal_socket browse)
- add_executable(${X} ${X}.cc)
+ add_executable(${X} src/${X}.cc)
target_link_libraries(${X} SystemC::systemc)
endforeach()
diff --git a/Makefile b/Makefile
index f22fbd0..3631e55 100644
--- a/Makefile
+++ b/Makefile
@@ -3,8 +3,8 @@ export CXX = clang++
export SYSTEMC_HOME := $(PWD)/INSTALL
-SRCS = $(wildcard *.cc)
-BINS = $(SRCS:%.cc=BUILD/UTIL/%)
+SRCS = $(wildcard src/*.cc)
+BINS = $(SRCS:src/%.cc=BUILD/PLAYGROUND/%)
# -- SYSTEMC UTILS -------------------------------------------------------------
@@ -45,7 +45,7 @@ systemc:
# -- UTIL ----------------------------------------------------------------------
fmt:
- clang-format -i *.cc *.h
+ clang-format -i src/*.cc src/*.h
# -- CLEAN ---------------------------------------------------------------------
diff --git a/browse.cc b/src/browse.cc
index afc132e..afc132e 100644
--- a/browse.cc
+++ b/src/browse.cc
diff --git a/event.cc b/src/event.cc
index 96750bc..96750bc 100644
--- a/event.cc
+++ b/src/event.cc
diff --git a/minimal_socket.cc b/src/minimal_socket.cc
index 7fe7f38..7fe7f38 100644
--- a/minimal_socket.cc
+++ b/src/minimal_socket.cc
diff --git a/sc_export.cc b/src/sc_export.cc
index 7acca58..7acca58 100644
--- a/sc_export.cc
+++ b/src/sc_export.cc
diff --git a/sc_export2.cc b/src/sc_export2.cc
index c5905bc..c5905bc 100644
--- a/sc_export2.cc
+++ b/src/sc_export2.cc
diff --git a/utils.h b/src/utils.h
index 5584027..5584027 100644
--- a/utils.h
+++ b/src/utils.h