]> Pileus Git - wmpus/blobdiff - makefile
Add X11 Wayland interface
[wmpus] / makefile
index caceac9e8de918f6ef00c6b0088efea6ea209d8f..385fb50f500da9300ece03a17d854e791ba44d07 100644 (file)
--- a/makefile
+++ b/makefile
@@ -10,6 +10,27 @@ 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
+LDFLAGS   += -lwayland-client -lwayland-server
+endif
+
+ifeq ($(SYS),swc)
+GCC       ?= gcc
+PROG      ?= wmpus
+LDFLAGS   += -lswc -lwayland-client -lwayland-server
+endif
+
 ifeq ($(SYS),x11)
 GCC       ?= gcc
 PROG      ?= wmpus