2020-05-29 12:21:05 +00:00
|
|
|
CC ?= clang
|
|
|
|
CFLAGS ?= -O2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include/ -Wall -Wextra -g
|
|
|
|
PREFIX ?= /usr/local/bin
|
|
|
|
LDFLAGS ?= -ldbus-1 -lmpdclient
|
|
|
|
|
|
|
|
.PHONY: default
|
|
|
|
default: universalmusiccontroller
|
|
|
|
|
|
|
|
universalmusiccontroller: main.c dbus_client.o mpd_client.o metadata.o
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^ ${LDFLAGS}
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c $^ -o $@
|
|
|
|
|
2020-05-29 19:21:43 +00:00
|
|
|
install: universalmusiccontroller
|
|
|
|
install universalmusiccontroller ${PREFIX}
|
|
|
|
|
2020-05-29 12:21:05 +00:00
|
|
|
clean:
|
|
|
|
rm -Rf *.o universalmusiccontroller
|