diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
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 |