From db7277df5ed4a0951698697b62afa823c3ba0d72 Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Sun, 2 Nov 2025 13:23:50 -0500 Subject: Intial commit: No free list management yet --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0ba98c3 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +all: lib/liballoc.a bin/liballoc_tests + +bin/liballoc_tests: lib/liballoc.a build + gcc -Iinclude tests/liballoc_tests.c -lcheck -pthread -lsubunit -lm lib/liballoc.a -o bin/liballoc_tests + +lib/liballoc.a: build/alloc.o build/free_list.o build + ar rcs lib/liballoc.a build/alloc.o build/free_list.o + +build/alloc.o: build + gcc -Iinclude -c src/alloc.c -o build/alloc.o + +build/free_list.o: build + gcc -Iinclude -c src/free_list.c -o build/free_list.o + +.PHONY: build clean +build: + -mkdir build bin lib + +clean: + -rm -r build bin lib -- cgit v1.2.3