Only enable VERBOSE for debug builds.
[apple-ir-control.git] / Makefile
index de7c08942c56019ec8e14d03dd675f60c7e18ce2..5b7e09608b996a261a7eaab401d8d2f872345d5d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,8 @@
+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) $<