diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2015-11-10 20:50:10 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2015-11-10 20:50:10 +0000 |
commit | d414db0f65ada1d2bb159029d2f02f40a8d563e2 (patch) | |
tree | cdccadeb29ed2ff02c424e4a6f07212139dfccea /Makefile | |
parent | 82e7c1e5ad4060c9b6458d07a8873d2211df8edd (diff) | |
download | imv-d414db0f65ada1d2bb159029d2f02f40a8d563e2.tar.gz |
Add debug target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |