aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authormatthieu2010-11-27 14:25:47 +0000
committermatthieu2010-11-27 14:25:47 +0000
commita2e547562236c8458a92b1718194e5f9f93754b6 (patch)
treef8c16188a8539e2b733d90dc392dff969697898e /Makefile
parent388113350aa93ef961008cd02a2fb30e76058291 (diff)
downloadcwm-a2e547562236c8458a92b1718194e5f9f93754b6.tar.gz
Explicitely link libxcb when needed for static arches.
Diffstat (limited to '')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3ac2518..94fc85f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.15 2009/01/19 20:23:19 todd Exp $
+# $OpenBSD: Makefile,v 1.16 2010/11/27 14:25:47 matthieu Exp $
.include <bsd.xconf.mk>
@@ -11,8 +11,11 @@ SRCS= calmwm.c screen.c xmalloc.c client.c menu.c \
CPPFLAGS+= -I${X11BASE}/include -I${X11BASE}/include/freetype2 -I${.CURDIR}
CFLAGS+= -Wall
+.if ${XENOCARA_BUILD_XCB:L} != "no"
+LIBXCB= -lxcb
+.endif
-LDADD+= -L${X11BASE}/lib -lXft -lXrender -lX11 -lXau -lXdmcp \
+LDADD+= -L${X11BASE}/lib -lXft -lXrender -lX11 ${LIBXCB} -lXau -lXdmcp \
-lfontconfig -lexpat -lfreetype -lz -lXinerama -lXrandr -lXext
MANDIR= ${X11BASE}/man/cat