2012-02-12 17:52:17 +00:00
|
|
|
CC ?= gcc
|
|
|
|
CFLAGS ?= -g -pipe
|
|
|
|
|
2012-02-12 18:14:02 +00:00
|
|
|
PREFIX ?= /usr
|
2012-02-12 17:52:17 +00:00
|
|
|
|
|
|
|
INSTALL_DIR := $(PREFIX)/bin
|
|
|
|
PIXMAP_DIR := $(PREFIX)/share/pixmaps
|
|
|
|
MANPAGE_DIR := $(PREFIX)/share/man/man1
|
|
|
|
|
|
|
|
CFLAGS += $(shell pkg-config audacious --cflags) $(shell pkg-config dbus-1 --cflags)
|
|
|
|
LIBS := $(shell pkg-config audacious --libs) $(shell pkg-config audclient --libs) $(shell pkg-config dbus-1 --libs)
|
|
|
|
|
|
|
|
CFLAGS += $(shell pkg-config gtk+-2.0 --cflags)
|
2012-02-12 18:09:44 +00:00
|
|
|
LIBS += $(shell pkg-config gtk+-2.0 --libs) -lX11
|
2012-02-12 17:52:17 +00:00
|
|
|
|
|
|
|
OBJS = wmauda.o
|
|
|
|
HEADERS = config.h dock-master.xpm
|
|
|
|
|
|
|
|
wmauda: $(OBJS) $(HEADERS)
|
|
|
|
$(CC) -o wmauda $(OBJS) $(CFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
all: wmauda
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o wmauda
|
|
|
|
|
|
|
|
install: all
|
|
|
|
install -d $(DESTDIR)$(INSTALL_DIR)
|
|
|
|
install -d $(DESTDIR)$(PIXMAP_DIR)
|
|
|
|
install -d $(DESTDIR)$(MANPAGE_DIR)
|
|
|
|
install -m 0755 wmauda $(DESTDIR)$(INSTALL_DIR)
|
|
|
|
install -m 0644 wmauda.xpm $(DESTDIR)$(PIXMAP_DIR)
|
|
|
|
install -m 0644 wmauda.1 $(DESTDIR)$(MANPAGE_DIR)
|