1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 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]