aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2015-11-10 20:50:10 +0000
committerHarry Jeffery <harry@exec64.co.uk>2015-11-10 20:50:10 +0000
commitd414db0f65ada1d2bb159029d2f02f40a8d563e2 (patch)
treecdccadeb29ed2ff02c424e4a6f07212139dfccea /Makefile
parent82e7c1e5ad4060c9b6458d07a8873d2211df8edd (diff)
downloadimv-d414db0f65ada1d2bb159029d2f02f40a8d563e2.tar.gz
Add debug target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 07d476e..edfbdc9 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@
prefix = /usr
-CFLAGS = -g -W -Wall -std=gnu11 `sdl2-config --cflags`
+CFLAGS = -W -Wall -std=gnu11 `sdl2-config --cflags`
LDFLAGS = `sdl2-config --libs` -lfreeimage
TARGET = imv
@@ -11,6 +11,9 @@ OBJECTS = main.o image.o texture.o navigator.o viewport.o
$(TARGET): $(OBJECTS)
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
+debug: CFLAGS += -DDEBUG -g
+debug: $(TARGET)
+
clean:
$(RM) $(TARGET) $(OBJECTS)