From 7bbe0747c59651378afb3fd59aeca31dd4b1c171 Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Wed, 6 May 2026 19:42:48 +0200 Subject: [PATCH] delete makefile --- makefile | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 makefile diff --git a/makefile b/makefile deleted file mode 100644 index 05ed79e..0000000 --- a/makefile +++ /dev/null @@ -1,32 +0,0 @@ - -CC := zig cc -CFLAGS := -pedantic -Wall -Wextra -Wno-override-init -O0 -g -fno-omit-frame-pointer -fno-inline -LDFLAGS := -lcriterion - -TESTBIN := /tmp/all_tests - -.PHONY: test scratch - -run_test: test - $(TESTBIN) - -run_test_memcheck: test - valgrind --leak-check=full --show-leak-kinds=all --trace-children=yes --error-exitcode=1 $(TESTBIN); \ - - -test: - @echo "Discovering test files..." - @files=$$(find . -type f -name 'test*.c'); \ - if [ -z "$$files" ]; then \ - echo "No test files found!"; \ - else \ - echo "Compiling all test files into $(TESTBIN)..."; \ - $(CC) $(CFLAGS) _allocator_impl.c $$files -o $(TESTBIN) $(LDFLAGS) || exit 1; \ - fi - -PROJECT_ROOT := $(shell pwd) -PROJECT_C_FILES := $(shell find $(PROJECT_ROOT) \( -name '*.c' -o -name '*.h' \)) -CRITERION_HEADERS := $(shell find /usr/include/criterion) -ALL_FILES := $(PROJECT_C_FILES) $(CRITERION_HEADERS) -tags: $(ALL_FILES) - ctags -R $(ALL_FILES)