File: Makefile

package info (click to toggle)
audtty 0.1.9a-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 712 kB
  • ctags: 139
  • sloc: ansic: 1,381; sh: 193; makefile: 53
file content (45 lines) | stat: -rw-r--r-- 1,224 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
45
# audtty
#
# A fork of xmms-curses

DESTDIR=
# autoconf is dumb.
prefix=${DESTDIR}
exec_prefix=/usr/local
bindir=${exec_prefix}/bin
mandir=/usr/local/share/man/man1
sysconfdir=${prefix}/etc

AUDACIOUS_CFLAGS=-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/include/libmowgli -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12   -I/usr/include/dbus-1.0

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

default: all
build: audtty
all: audtty

audtty: ${BINS}
	cc -Wall -lncurses -laudclient ${LDFLAGS} -o audtty $(BINS)

.c.o:
	cc -Wall ${AUDACIOUS_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