]> Pileus Git - wmpus/blobdiff - makefile
Add X11 Wayland interface
[wmpus] / makefile
index bd3e1e73b5628ac731d0c40adf83c4a3ab09ccdd..385fb50f500da9300ece03a17d854e791ba44d07 100644 (file)
--- a/makefile
+++ b/makefile
@@ -10,6 +10,15 @@ CFLAGS    ?= -g -Wall
 PREFIX    ?= /usr/local
 MANPREFIX ?= ${PREFIX}/share/man
 
+ifeq ($(SYS),xwl)
+GCC       ?= gcc
+PROG      ?= wmpus
+LDFLAGS   += -lwayland-client -lwayland-server
+
+sys-xwl.o: CFLAGS  += $(shell pkg-config --cflags gtk+-2.0)
+wmpus:     LDFLAGS += $(shell pkg-config --libs gtk+-2.0)
+endif
+
 ifeq ($(SYS),wl)
 GCC       ?= gcc
 PROG      ?= wmpus