Add support for pausing MPlayer
[headphoned] / makefile
1 OBJS = src/headphoned.o
2 PROG = headphoned
3 CFLAGS += `pkg-config --cflags glib-2.0 gconf-2.0 libosso dbus-1` -Os -Wall
4 LDFLAGS += `pkg-config --libs glib-2.0 gconf-2.0 libosso dbus-1`
5
6 DESTDIR ?= 
7 PREFIX ?= /usr
8
9 $(PROG): $(OBJS)
10         $(CC) $(LDFLAGS) $(LIBS) $^ -o $@
11         strip $@
12
13 install: $(PROG)
14         install $(PROG) $(DESTDIR)$(PREFIX)/sbin/$(PROG)
15         mkdir -p $(DESTDIR)/etc/$(PROG)
16         mkfifo $(DESTDIR)/etc/$(PROG)/mplayer-input
17         chown user:users $(DESTDIR)/etc/$(PROG)/mplayer-input
18
19 clean:
20         rm -f $(PROG) $(OBJS)
21
22 .PHONY: install clean
23