summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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