aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2025-11-02 15:38:21 -0500
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2025-11-02 15:38:21 -0500
commit24d5cd8e806477b0fd2ddb5a232e672707f0da34 (patch)
treedcd6f271127407d0c653fd299fa591fbcc1cc2ae /Makefile
parent0b9377ac378bdbcb37a45c6ad8b0763d9f2c891b (diff)
downloadliballoc-24d5cd8e806477b0fd2ddb5a232e672707f0da34.tar.gz
Added debug flags to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 0ba98c3..7c91d4c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,18 @@
+CFLAGS=-ggdb
+
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
+ gcc $(CFLAGS) -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
+ gcc $(CFLAGS) -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
+ gcc $(CFLAGS) -Iinclude -c src/free_list.c -o build/free_list.o
.PHONY: build clean
build: