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