2021-01-24 02:38:51 +01:00
|
|
|
.POSIX:
|
2021-01-29 21:30:24 +01:00
|
|
|
.PHONY: clean install uninstall all debug
|
2021-01-24 02:38:51 +01:00
|
|
|
include config.mk
|
2021-01-27 17:32:49 +01:00
|
|
|
all: mpdart
|
2021-01-24 02:38:51 +01:00
|
|
|
mpdart: mpdart.c
|
2021-01-30 18:57:54 +01:00
|
|
|
$(CC) $(CONFIG) $(CFLAGS) $(CPPFLAGS) -o $@ mpdart.c
|
2021-01-29 21:30:24 +01:00
|
|
|
debug: mpdart_debug
|
|
|
|
mpdart_debug: mpdart.c
|
|
|
|
$(CC) $(CONFIG) -Og -g -DDEBUG -o $@ mpdart.c
|
2021-01-24 02:38:51 +01:00
|
|
|
clean:
|
|
|
|
rm -f mpdart
|
|
|
|
install: mpdart
|
|
|
|
install -Dm755 mpdart $(DESTDIR)$(PREFIX)/bin/mpdart
|
|
|
|
uninstall:
|
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/mpdart
|