From: Urban Wallasch Date: Sun, 6 Jun 2021 13:14:15 +0000 (+0200) Subject: * Added 'debug' make target. X-Git-Url: https://git.packet-gain.de/?a=commitdiff_plain;h=fc243ec4db69a169043cfcec7d1409ed075b43bb;p=imgdupe.git * Added 'debug' make target. --- 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