diff options
author | Oskar <[email protected]> | 2024-10-10 18:29:06 +0200 |
---|---|---|
committer | Oskar <[email protected]> | 2024-10-10 18:29:06 +0200 |
commit | 8eac964cd864f190861d0f68f6bcfc117c2ff6ed (patch) | |
tree | 35945d39babf23376988dfc76408e4b70792e206 /Makefile |
some experimentation
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 18 insertions, 0 deletions
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) |