summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Leech <andrew.leech@planetinnovation.com.au>2021-11-25 11:44:21 +1100
committerAndrew Leech <andrew.leech@planetinnovation.com.au>2022-02-07 14:39:15 +1100
commit69c9a76786a584c716e26e6874cc778468d5d8c2 (patch)
tree3ca110378d1527a2bd9bc0124a9f8d17602d1ab7
parentfecfd5269632e86f86c6b31a9bc2ec22876f8934 (diff)
windows/mingw: Include extmod/shared/lib sources properly.
-rw-r--r--ports/windows/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/ports/windows/Makefile b/ports/windows/Makefile
index 4aceeb981..5a22be464 100644
--- a/ports/windows/Makefile
+++ b/ports/windows/Makefile
@@ -61,7 +61,18 @@ SRC_C = \
$(SRC_MOD) \
$(wildcard $(VARIANT_DIR)/*.c)
+SHARED_SRC_C += $(addprefix shared/,\
+ $(SHARED_SRC_C_EXTRA) \
+ )
+
+SRC_CXX += \
+ $(SRC_MOD_CXX)
+
OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o))
+OBJ += $(addprefix $(BUILD)/, $(SRC_CXX:.cpp=.o))
+OBJ += $(addprefix $(BUILD)/, $(SHARED_SRC_C:.c=.o))
+OBJ += $(addprefix $(BUILD)/, $(EXTMOD_SRC_C:.c=.o))
+OBJ += $(addprefix $(BUILD)/, $(LIB_SRC_C:.c=.o))
ifeq ($(MICROPY_USE_READLINE),1)
CFLAGS_MOD += -DMICROPY_USE_READLINE=1
@@ -71,7 +82,7 @@ endif
LIB += -lws2_32
# List of sources for qstr extraction
-SRC_QSTR += $(SRC_C)
+SRC_QSTR += $(SRC_C) $(SRC_CXX) $(SHARED_SRC_C) $(EXTMOD_SRC_C)
# Append any auto-generated sources that are needed by sources listed in
# SRC_QSTR
SRC_QSTR_AUTO_DEPS +=