First version for the N900 (headphoned 1.5)
[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         install $(PROG).launch $(DESTDIR)$(PREFIX)/sbin/$(PROG).launch
16         mkdir -p $(DESTDIR)/etc/$(PROG)
17         mkfifo $(DESTDIR)/etc/$(PROG)/mplayer-input
18         chown user:users $(DESTDIR)/etc/$(PROG)/mplayer-input
19         mkdir -p $(DESTDIR)/etc/event.d/
20         install upstart/$(PROG) $(DESTDIR)/etc/event.d/
21
22 clean:
23         rm -f $(PROG) $(OBJS)
24
25 .PHONY: install clean
26