This can now be done with `make DEBUG=1`.
+CCFLAGS := -g -std=c++11 -Wall -framework CoreFoundation -framework IOKit
+
+ifndef DEBUG
+ CCFLAGS += -DNDEBUG
+endif
+
apple-ir-control: apple-ir-control.cc
- clang++ -o $@ -g -std=c++11 -Wall -framework CoreFoundation -framework IOKit $<
+ clang++ -o $@ $(CCFLAGS) $<
const CFStringRef kPrefDomain = CFSTR("com.apple.driver.AppleIRController");
const CFStringRef kPrefEnabled = CFSTR("DeviceEnabled");
+#if NDEBUG
+bool VERBOSE = false;
+#else
bool VERBOSE = true;
+#endif
#define LOG(msg, ...) do { \
if (VERBOSE) { \