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