added debug target

This commit is contained in:
Rachel Lambda Samuelsson 2021-01-29 21:30:24 +01:00
parent 569272e96f
commit 7a0b296301

View File

@ -1,8 +1,12 @@
.POSIX: .POSIX:
.PHONY: clean install uninstall all debug
include config.mk include config.mk
all: mpdart all: mpdart
mpdart: mpdart.c mpdart: mpdart.c
$(CC) $(CONFIG) $(CFLAGS) $(CXXFLAGS) -o $@ mpdart.c $(CC) $(CONFIG) $(CFLAGS) $(CXXFLAGS) -o $@ mpdart.c
debug: mpdart_debug
mpdart_debug: mpdart.c
$(CC) $(CONFIG) -Og -g -DDEBUG -o $@ mpdart.c
clean: clean:
rm -f mpdart rm -f mpdart
install: mpdart install: mpdart