mirror of
https://github.com/pimoroni/pimoroni-pico.git
synced 2025-02-12 13:05:27 +00:00
The BME68X library is *linked* against the MicroPython bindings, rather than compiled directly in. This saves specifing the list of target files twice.
13 lines
449 B
Makefile
13 lines
449 B
Makefile
set(MOD_NAME breakout_bme68x)
|
|
BREAKOUT_MOD_DIR := $(USERMOD_DIR)
|
|
|
|
# Add our source files to the respective variables.
|
|
SRC_USERMOD += $(BREAKOUT_MOD_DIR)/${MOD_NAME}.c
|
|
SRC_USERMOD_CXX += $(BREAKOUT_MOD_DIR)/${MOD_NAME}.cpp
|
|
|
|
# Add our module directory to the include path.
|
|
CFLAGS_USERMOD += -I$(BREAKOUT_MOD_DIR)
|
|
CXXFLAGS_USERMOD += -I$(BREAKOUT_MOD_DIR)
|
|
|
|
# We use C++ features so have to link against the standard library.
|
|
LDFLAGS_USERMOD += -lstdc++
|