aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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: