From ff9b8bb838ecdfbfc1dc81038fcf3b2a87636982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Zrounba?= <6691770+clement-z@users.noreply.github.com> Date: Sat, 30 Sep 2023 23:06:01 +0200 Subject: Initial release --- config.mk | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 config.mk (limited to 'config.mk') diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..c866e63 --- /dev/null +++ b/config.mk @@ -0,0 +1,35 @@ +#### PROJECT SETTINGS #### +# The name of the executable to be created +BIN_NAME = specs +LIB_NAME = libspecs.so + +SYSTEMC_PATH_ROOT = $(abspath ./thirdparty/systemc/sc_install) +SYSTEMC_PATH_LIBS = ${SYSTEMC_PATH_ROOT}/lib +SYSTEMC_PATH_INCLUDE = ${SYSTEMC_PATH_ROOT}/include + +# Compiler used +CXX = g++ +#CXX = clang++ +CCACHE = +#CCACHE = ccache + +# Path to the source directory, relative to the makefile +SRC_PATH = src + +# General compiler flags +CXXFLAGS = -std=c++17 -Wall -Wextra +CXXFLAGS += -O2 -march=native +#CXXFLAGS += -DYYDEBUG=1 +CXXFLAGS += -g + +# Add additional include paths (SRC_PATH and subdirectories are automatically added) +INCLUDES = -I${SYSTEMC_PATH_INCLUDE} -isystem thirdparty/args + +# General linker settings +LDFLAGS += -L${SYSTEMC_PATH_LIBS} -lsystemc -lm +LDFLAGS += -Wl,-rpath -Wl,${SYSTEMC_PATH_LIBS} + +# Destination directory +BUILD_PATH = build +BUILD_TB ?= 1 +#### END PROJECT SETTINGS #### -- cgit v1.2.3