about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorPeter H. Froehlich <peter.hans.froehlich@gmail.com>2019-05-08 01:08:00 +0200
committerPeter H. Froehlich <peter.hans.froehlich@gmail.com>2019-05-08 01:08:00 +0200
commita2f0dba1245270b346e65391ee5e5e94807f2510 (patch)
tree32dac7ddedcd8b91f66d1105e62984cff29a1acb /Makefile
downloadsimple-allocators-a2f0dba1245270b346e65391ee5e5e94807f2510.tar.gz
Initial commit.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0ff5c08
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CFLAGS=-std=gnu11 -Wall -Wextra -Wpedantic -Og -g -D_DEFAULT_SOURCE \
+       -fsanitize=undefined -fsanitize=address
+LDFLAGS=-fsanitize=undefined -fsanitize=address
+
+ALL=bench
+
+all: $(ALL)
+
+bench: bench.o cached.o
+
+clean:
+	$(RM) $(ALL) *.o
+
+.PHONY:	all check clean format
+
+check:
+	cppcheck --enable=all --std=c11 *.[ch]
+format:
+	clang-format -i *.[ch]