UniversalMusicController/Makefile

20 lines
476 B
Makefile
Raw Normal View History

2020-05-29 12:21:05 +00:00
CC ?= clang
CFLAGS ?= -O2 `pkg-config --cflags dbus-1` `pkg-config --libs dbus-1` -Wall -Wextra
2020-05-29 12:21:05 +00:00
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