summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-10-10 18:29:06 +0200
committerOskar <[email protected]>2024-10-10 18:29:06 +0200
commit8eac964cd864f190861d0f68f6bcfc117c2ff6ed (patch)
tree35945d39babf23376988dfc76408e4b70792e206 /Makefile
some experimentation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
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)