]> git.sur5r.net Git - i3/i3/blobdiff - common.mk
also don’t ship GOALS
[i3/i3] / common.mk
index 2cf8629ce38594d6c7a83406129e2992808c1d2e..439490596d38ff0b910c6b34896d400fea577af8 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -68,7 +68,10 @@ CPPFLAGS += -DPCRE_HAS_UCP=1
 endif
 
 LIBS += -lm
+# Darwin (Mac OS X) doesn’t have librt
+ifneq ($(UNAME),Darwin)
 LIBS += -lrt
+endif
 LIBS += -L $(TOPDIR)/libi3 -li3
 LIBS += $(call ldflags_for_lib, xcb-event,xcb-event)
 LIBS += $(call ldflags_for_lib, xcb-keysyms,xcb-keysyms)
@@ -124,12 +127,10 @@ CPPFLAGS += -D_GNU_SOURCE
 endif
 
 ifeq ($(DEBUG),1)
-$(warning "DEBUG build")
 # Extended debugging flags, macros shall be available in gcc
 CFLAGS += -gdwarf-2
 CFLAGS += -g3
 else
-$(warning "non-DEBUG build, enabling optimization")
 CFLAGS += -O2
 CFLAGS += -freorder-blocks-and-partition
 endif
@@ -140,7 +141,7 @@ LIBS += -lgcov
 endif
 
 # Don’t print command lines which are run
-#.SILENT:
+.SILENT:
 
 # Always remake the following targets
 .PHONY: install clean dist distclean