]> git.sur5r.net Git - i3/i3/blobdiff - common.mk
Move i3bar to the new Makefile layout
[i3/i3] / common.mk
index 537d4dda5d43e492a144a5a0fc19290206ab1c00..25e812009b72c19e97144ef0841087c73557b5f8 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -68,8 +68,11 @@ CPPFLAGS += -DPCRE_HAS_UCP=1
 endif
 
 LIBS += -lm
+# Darwin (Mac OS X) doesn’t have librt
+ifneq ($(UNAME),Darwin)
 LIBS += -lrt
-LIBS += -L $(TOPDIR)/libi3 -li3
+endif
+LIBS += -L $(TOPDIR) -li3
 LIBS += $(call ldflags_for_lib, xcb-event,xcb-event)
 LIBS += $(call ldflags_for_lib, xcb-keysyms,xcb-keysyms)
 ifeq ($(shell pkg-config --exists xcb-util 2>/dev/null || echo 1),1)
@@ -137,8 +140,11 @@ CFLAGS += -fprofile-arcs -ftest-coverage
 LIBS += -lgcov
 endif
 
+V ?= 0
+ifeq ($(V),0)
 # Don’t print command lines which are run
 .SILENT:
+endif
 
 # Always remake the following targets
 .PHONY: install clean dist distclean