File: Makefile.in

package info (click to toggle)
audtty 0.1.12-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 592 kB
  • sloc: ansic: 1,560; sh: 193; makefile: 63
file content (44 lines) | stat: -rw-r--r-- 1,113 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# audtty

prefix=${DESTDIR}
exec_prefix=${DESTDIR}
bindir=${DESTDIR}/usr/bin
mandir=${DESTDIR}/usr/share/man/man1
sysconfdir=${DESTDIR}/@sysconfdir@


AUDACIOUS_CFLAGS=@AUDACIOUS_CFLAGS@ -I/usr/include/dbus-1.0
GLIB_CFLAGS=`pkg-config --cflags glib-2.0`
LDADD=-ldbus-glib-1 -lncursesw -laudclient `pkg-config --libs glib-2.0`

SOURCES=main.c curses_printf.c playlist.c playlist_jump.c playlist_addurl.c settings.c connect.c browse.c playlist_create.c
BINS=$(SOURCES:.c=.o)

default: all
build: audtty
all: audtty

audtty: ${BINS}
	cc -g -O2 -g2 -Wall -Werror ${LDFLAGS} -o audtty $(BINS) $(LDADD)

.c.o:
	cc -g -Wall ${AUDACIOUS_CFLAGS} ${GLIB_CFLAGS} ${CFLAGS} -o $@ -c $<

install: audtty
	mkdir -p ${bindir}
	install -m 0755 audtty ${bindir}/audtty
	mkdir -p ${mandir}
	install -m 0644 audtty.1 ${mandir}/audtty.1
	mkdir -p ${sysconfdir}
	install -m 0644 audtty.conf ${sysconfdir}/audtty.conf

uninstall:
	rm ${bindir}/audtty || false
	rm ${mandir}/audtty.1 || false
	rm ${sysconfdir}/audtty.conf || false

clean:
	rm -f audtty *.o

distclean: clean
	rm -f Makefile config.h config.status config.log configure