From 15dc2c219595a92ca121578b13047e23156ea3fa Mon Sep 17 00:00:00 2001 From: jonas Date: Sun, 28 Apr 2019 11:00:27 +0200 Subject: Added DEBUG messages and debug make target --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7f64ce5..be95545 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC = /usr/bin/gcc -CFLAGS = -Wall -g +CFLAGS = -Wall LDFLAGS = -lm OUTPUT = bitmap BUILDDIR = build @@ -12,7 +12,10 @@ build: $(OBJ) mkdir -p $(BUILDDIR) $(CC) $(CFLAGS) -o $(BUILDDIR)/$(OUTPUT) $(OBJ) $(LDFLAGS) -debug: build +debug: CFLAGS+= -g -D _DEBUG +debug: build; + +gdb: debug gdb $(BUILDDIR)/$(OUTPUT) %.o: %.c -- cgit v1.2.3