aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 4b859b0e0d5d2fc99fda57976607408be34f47f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# mpd-notification - Notify about tracks played by mpd

CC	:= gcc
CFLAGS	+= -O2 -Wall -Werror
CFLAGS	+= $(shell pkg-config --cflags --libs libmpdclient) \
	   $(shell pkg-config --cflags --libs libnotify)
VERSION	= $(shell git describe --tags --long)

all: mpd-notification.c
	$(CC) $(CFLAGS) -o mpd-notification mpd-notification.c \
		-DVERSION="\"$(VERSION)\""

clean:
	/bin/rm -f *.o *~ mpd-notification