From c652e22dd1cfe059a30604e772529f1d86a1a28d Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Tue, 18 Mar 2025 16:23:01 +0100 Subject: initial commit Signed-off-by: Toni Uhlig --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4222b3d --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CXX = g++ +CXXFLAGS = -Wall -Wextra + +ifneq ($(ENABLE_SANITIZER),) +CXXFLAGS += -fsanitize=address -fsanitize=leak -fsanitize=undefined +else +ifneq ($(ENABLE_THREAD_SANITIZER),) +CXXFLAGS += -fsanitize=thread -fsanitize=undefined +endif +endif +ifneq ($(DEBUG),) +CXXFLAGS += -g3 +endif + +all: test + +test: main.cpp fastbuffer.hpp + $(CXX) $(CXXFLAGS) main.cpp -o $@ + +clean: + rm -f test + +.PHONY: clean -- cgit v1.2.3