diff options
| author | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2025-11-02 15:38:21 -0500 |
|---|---|---|
| committer | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2025-11-02 15:38:21 -0500 |
| commit | 24d5cd8e806477b0fd2ddb5a232e672707f0da34 (patch) | |
| tree | dcd6f271127407d0c653fd299fa591fbcc1cc2ae | |
| parent | 0b9377ac378bdbcb37a45c6ad8b0763d9f2c891b (diff) | |
| download | liballoc-24d5cd8e806477b0fd2ddb5a232e672707f0da34.tar.gz | |
Added debug flags to Makefile
| -rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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: |