pimoroni-pico/micropython/modules/pico_wireless/micropython.mk

12 lines
413 B
Makefile
Executable File

WIRELESS_MOD_DIR := $(USERMOD_DIR)
# Add our source files to the respective variables.
SRC_USERMOD += $(WIRELESS_MOD_DIR)/esp32spi.c
SRC_USERMOD_CXX += $(WIRELESS_MOD_DIR)/esp32spi.cpp
# Add our module directory to the include path.
CFLAGS_USERMOD += -I$(WIRELESS_MOD_DIR)
CXXFLAGS_USERMOD += -I$(WIRELESS_MOD_DIR)
# We use C++ features so have to link against the standard library.
LDFLAGS_USERMOD += -lstdc++