053c6eda24
On my openSUSE 12.1 I get this: /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: wmauda.o: undefined reference to symbol 'XSetWMHints' /usr/lib64/gcc/x86_64-suse-linux/4.6/../../../../x86_64-suse-linux/bin/ld: note: 'XSetWMHints' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line /usr/lib64/libX11.so.6: could not read symbols: Invalid operation collect2: ld returned 1 exit status Fix it by adding -lX11 in LIBS.
34 lines
907 B
Makefile
34 lines
907 B
Makefile
CC ?= gcc
|
|
CFLAGS ?= -g -pipe
|
|
|
|
PREFIX ?= /usr/local
|
|
|
|
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)
|
|
LIBS += $(shell pkg-config gtk+-2.0 --libs) -lX11
|
|
|
|
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)
|