--- Makefile.orig 2005-12-06 20:29:22.000000000 +0300 +++ Makefile 2013-12-25 05:28:09.226755504 +0400 @@ -1,15 +1,17 @@ -PREFIX = /usr/local SHAREDIR = $(PREFIX)/share/keyboardcast APPSDIR = $(PREFIX)/share/applications BINDIR = $(PREFIX)/bin PKGS = gtk+-2.0 libwnck-1.0 libglade-2.0 -CFLAGS = `pkg-config --cflags $(PKGS)` +CFLAGS += `pkg-config --cflags $(PKGS)` LDLIBS = `pkg-config --libs $(PKGS)` -LDLIBS += -lXmu -CFLAGS += -Wall -O2 -DPREFIX=\"$(PREFIX)\" +LDLIBS += -lXmu -lX11 +CFLAGS += -Wall -DPREFIX=\"$(PREFIX)\" -keyboardcast: keyboardcast.o window-list.o grab-window.o +all: keyboardcast + +keyboardcast: keyboardcast.o window-list.o grab-window.o + $(CC) $(CFLAGS) $(LDLIBS) keyboardcast.o window-list.o grab-window.o -o keyboardcast clean: rm -f keyboardcast *.o *.gladep *.bak