From 7fae56dd121069cc5461b75214154e84c89069e5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 29 Dec 2021 17:49:47 +0100 Subject: Prepare for BME680 BSEC support --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b8707af..5850088 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ endif quote=" app_dir = $(subst ${quote},,${CONFIG_app}) arch_dir = $(subst ${quote},,${CONFIG_arch}) +bsec_dir = $(subst ${quote},,${CONFIG_driver_bme680_bsec_path}) INCLUDES = -Iinclude -Iinclude/arch/${arch_dir} CFLAGS = -std=c99 @@ -27,6 +28,7 @@ QUIET = @ ASM_TARGETS = C_TARGETS = CXX_TARGETS = src/app/${app_dir}/main.cc src/object/cpp_helpers.cc src/object/outputstream.cc +SO_TARGETS = ifdef verbose QUIET = @@ -64,6 +66,10 @@ ifdef CONFIG_driver_bme680 CXX_TARGETS += src/driver/bme680.cc src/driver/bme680_util.cc endif +ifdef CONFIG_driver_bme680_bsec + SO_TARGETS += include/arch/${arch_dir}/driver/${bsec_dir}/libalgobsec.a +endif + ifdef CONFIG_driver_ccs811 CXX_TARGETS += src/driver/ccs811.cc endif -- cgit v1.2.3