From a2f0dba1245270b346e65391ee5e5e94807f2510 Mon Sep 17 00:00:00 2001 From: "Peter H. Froehlich" Date: Wed, 8 May 2019 01:08:00 +0200 Subject: Initial commit. --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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] -- cgit 1.4.1-2-gfad0