From fc243ec4db69a169043cfcec7d1409ed075b43bb Mon Sep 17 00:00:00 2001 From: Urban Wallasch Date: Sun, 6 Jun 2021 15:14:15 +0200 Subject: [PATCH] * Added 'debug' make target. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f5fedc0..468119d 100644 --- a/Makefile +++ b/Makefile @@ -18,13 +18,16 @@ LIBS := -lpthread $(shell pkg-config --libs GraphicsMagickWand) STRIP := strip RM := rm -f -.PHONY: all clean +.PHONY: all debug clean all: $(BIN) + $(STRIP) $(BIN) + +debug: CFLAGS += -g -DDEBUG +debug: $(BIN) $(BIN): $(OBJ) $(SELF) $(LD) $(LDFLAGS) $(OBJ) $(LIBS) -o $(BIN) - $(STRIP) $(BIN) %.o: %.c $(SELF) $(CC) -c $(CFLAGS) -o $*.o $*.c -- 2.30.2