aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar jonas <himself@jonasgunz.de> 2019-04-28 11:00:27 +0200
committerGravatar jonas <himself@jonasgunz.de> 2019-04-28 11:00:27 +0200
commit15dc2c219595a92ca121578b13047e23156ea3fa (patch)
tree7523a22aa094aaf79a72100c8f8a0d4a04f0bfe3 /Makefile
parentdd029dad99fd17770980ff87b909733e7594b829 (diff)
downloadAsciiMap-15dc2c219595a92ca121578b13047e23156ea3fa.tar.gz
Added DEBUG messages and debug make target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
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