-VERSION = 0.8.5
+VERSION = 0.8.8
CC ?= gcc
-LIBS = -lm -lxcb -lxcb-icccm -lxcb-ewmh -lxcb-randr
+LIBS = -lm -lxcb -lxcb-icccm -lxcb-ewmh -lxcb-randr -lxcb-xinerama
CFLAGS += -std=c99 -pedantic -Wall -Wextra -I$(PREFIX)/include
CFLAGS += -D_POSIX_C_SOURCE=200112L -DVERSION=\"$(VERSION)\"
LDFLAGS += -L$(PREFIX)/lib
ZSHCPL = $(PREFIX)/share/zsh/site-functions
WM_SRC = bspwm.c helpers.c settings.c monitor.c desktop.c tree.c stack.c history.c \
- events.c pointer.c window.c messages.c query.c restore.c rule.c tag.c ewmh.c
+ events.c pointer.c window.c messages.c query.c restore.c rule.c ewmh.c subscribe.c
WM_OBJ = $(WM_SRC:.c=.o)
CL_SRC = bspc.c helpers.c
CL_OBJ = $(CL_SRC:.c=.o)
rm -f "$(DESTDIR)$(BASHCPL)"/bspc
rm -f "$(DESTDIR)$(ZSHCPL)"/_bspc
+deps:
+ $(CC) -MM *.c > Sourcedeps
+
doc:
a2x -v -d manpage -f manpage -a revnumber=$(VERSION) doc/bspwm.1.txt
clean:
rm -f $(WM_OBJ) $(CL_OBJ) bspwm bspc
-.PHONY: all debug install uninstall doc clean
+.PHONY: all debug install uninstall doc deps clean