summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-15 09:20:30 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-15 09:20:30 +0100
commitbfcfa4cf67bad25ccba5ff735967d4c6abff899c (patch)
treeef153eb55f025f31fdb8abddb57d33e3131624d4 /Makefile
parent62bb7da1740d7d4aaef3cbcc1261fc5ab62960ae (diff)
Add support for ESP8266 secondary LED
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 47454ac..cf5d8b7 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,11 @@ CFLAGS = -std=c99
CXXFLAGS = -std=c++14
TARGETS = src/app/${app}/main.cc src/os/object/cpp_helpers.cc src/os/object/outputstream.cc
-TARGETS += src/driver/lm75.cc
+
+ifneq ($(findstring lm75,${drivers}), )
+ TARGETS += src/driver/lm75.cc
+ COMMON_FLAGS += -DDRIVER_LM75
+endif
ifeq (${timer_cycles}, 1)
COMMON_FLAGS += -DTIMER_CYCLES