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)
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
endif
# Don’t print command lines which are run
-#.SILENT:
+.SILENT:
# Always remake the following targets
.PHONY: install clean dist distclean