diff options
| author | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2025-11-02 13:23:50 -0500 |
|---|---|---|
| committer | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2025-11-02 13:23:50 -0500 |
| commit | db7277df5ed4a0951698697b62afa823c3ba0d72 (patch) | |
| tree | 99d9a004146ec383ea63c395b51740616ee8d1f8 /Makefile | |
| download | liballoc-db7277df5ed4a0951698697b62afa823c3ba0d72.tar.gz | |
Intial commit: No free list management yet
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
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 |