From 8eac964cd864f190861d0f68f6bcfc117c2ff6ed Mon Sep 17 00:00:00 2001 From: Oskar Date: Thu, 10 Oct 2024 18:29:06 +0200 Subject: some experimentation --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c0bdd11 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +CC=g++ +CFLAGS_TESTBIN=-O0 -Wfatal-errors -Wall -Werror -Wextra -g3 -fsanitize=address -fsanitize=leak -Wpedantic -Wformat=2 -Wshadow -Wformat-truncation=2 -Wformat-overflow -fno-common -std=c++20 +CFLAGS=-O3 -flto -march=native -DNDEBUG -fomit-frame-pointer -s -static -std=c++20 +TARGET=reverse +TESTTARGET=reverse-TESTING +MAKEFLAGS += +SRCS=reverse-containers.cpp + +all: release tests +clean: + rm -f $(TARGET) + rm -f $(TESTTARGET) + +tests: + $(CC) $(CFLAGS_TESTBIN) $(SRCS) -o $(TESTTARGET) + +release: + $(CC) $(CFLAGS) $(SRCS) -o $(TARGET) -- cgit v1.2.3