diff --git a/bare-arm/Makefile b/bare-arm/Makefile
index a59bb9f89ad334be5fe6536e2a1273a6643b8d02..dc17eed4d9108bd81885c894b9023af512354a9d 100644
--- a/bare-arm/Makefile
+++ b/bare-arm/Makefile
@@ -8,7 +8,7 @@ include ../py/py.mk
 
 CROSS_COMPILE = arm-none-eabi-
 
-INC =  -I.
+INC += -I.
 INC += -I..
 INC += -I$(BUILD)
 
diff --git a/esp8266/Makefile b/esp8266/Makefile
index 7019335065b023aaf2426ea5f02e57dae609f6ae..b06f6787a3171d420ab1d2f32d29d7e525c5073b 100644
--- a/esp8266/Makefile
+++ b/esp8266/Makefile
@@ -14,7 +14,7 @@ BAUD = 115200
 CROSS_COMPILE = xtensa-lx106-elf-
 ESP_SDK = $(shell $(CC) -print-sysroot)/usr
 
-INC =  -I.
+INC += -I.
 INC += -I..
 INC += -I../stmhal
 INC += -I../lib/mp-readline
diff --git a/minimal/Makefile b/minimal/Makefile
index 09adfd4fd3b9785a7985e709a560c212582e5c94..ddddebbe2e439285c570dc71a4a0197bae06a647 100644
--- a/minimal/Makefile
+++ b/minimal/Makefile
@@ -12,7 +12,7 @@ ifeq ($(CROSS), 1)
 CROSS_COMPILE = arm-none-eabi-
 endif
 
-INC =  -I.
+INC += -I.
 INC += -I..
 INC += -I../lib/mp-readline
 INC += -I../stmhal
diff --git a/pic16bit/Makefile b/pic16bit/Makefile
index 4fab7f61c20dbceebe026355cea2af5aea73e9f9..98fcf07fd9b3eca110173b53ff67ac8b889dfe49 100644
--- a/pic16bit/Makefile
+++ b/pic16bit/Makefile
@@ -12,7 +12,7 @@ CROSS_COMPILE = $(XC16)/bin/xc16-
 PARTFAMILY = dsPIC33F
 PART = 33FJ256GP506
 
-INC =  -I.
+INC += -I.
 INC += -I..
 INC += -I../lib/mp-readline
 INC += -I../stmhal
diff --git a/py/py.mk b/py/py.mk
index 12773ff8fab885651f1c53297bfd62922123c591..b3a991936d874ab2453546efa736c3a77084c3ec 100644
--- a/py/py.mk
+++ b/py/py.mk
@@ -10,6 +10,8 @@ PY_QSTR_DEFS = $(PY_SRC)/qstrdefs.h
 # some code is performance bottleneck and compiled with other optimization options
 CSUPEROPT = -O3
 
+INC += -I../lib/netutils
+
 ifeq ($(MICROPY_PY_USSL),1)
 CFLAGS_MOD += -DMICROPY_PY_USSL=1 -I../lib/axtls/ssl -I../lib/axtls/crypto -I../lib/axtls/config
 LDFLAGS_MOD += -L../lib/axtls/_stage -laxtls
diff --git a/qemu-arm/Makefile b/qemu-arm/Makefile
index 0c09dd2ffe59835c8c7ba0f8ad29e44629ee73eb..a81dd67cf1762b2cb4bac3310e71642addc4c379 100644
--- a/qemu-arm/Makefile
+++ b/qemu-arm/Makefile
@@ -9,7 +9,7 @@ include ../py/py.mk
 
 CROSS_COMPILE = arm-none-eabi-
 
-INC =  -I.
+INC += -I.
 INC += -I..
 INC += -I$(BUILD)
 INC += -I../tools/tinytest/
diff --git a/stmhal/Makefile b/stmhal/Makefile
index ce5ab639d8cebf6de1b0886926cf1e6a9c3d11c5..5695fe584e1a5eb9f7758d0c7d0bc36c3654643f 100644
--- a/stmhal/Makefile
+++ b/stmhal/Makefile
@@ -32,7 +32,7 @@ DEVICE=0483:df11
 
 CROSS_COMPILE = arm-none-eabi-
 
-INC =  -I.
+INC += -I.
 INC += -I..
 INC += -I$(BUILD)
 INC += -I$(CMSIS_DIR)/inc
diff --git a/teensy/Makefile b/teensy/Makefile
index 4e97cbc6a9d42ec52356c71beae58df1132d33e9..dece6ce0031d39972f60f5303c53753730e0601a 100644
--- a/teensy/Makefile
+++ b/teensy/Makefile
@@ -29,7 +29,7 @@ endif
 CFLAGS_TEENSY = -DF_CPU=96000000 -DUSB_SERIAL -D__MK20DX256__
 CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -msoft-float -mfloat-abi=soft -fsingle-precision-constant -Wdouble-promotion $(CFLAGS_TEENSY)
 
-INC =  -I.
+INC += -I.
 INC += -I..
 INC += -I../stmhal
 INC += -I../lib/mp-readline
diff --git a/unix/Makefile b/unix/Makefile
index bd798555542ddf4c173b42cc04027a2618fc8472..2a2736400402729afeb0e54335ad1898dcf1407f 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -13,7 +13,7 @@ UNAME_S := $(shell uname -s)
 # include py core make definitions
 include ../py/py.mk
 
-INC =  -I.
+INC +=  -I.
 INC +=  -I..
 INC += -I$(BUILD)
 
diff --git a/windows/Makefile b/windows/Makefile
index e3a2fac4227aac16d176523efb53f8b6a9fcc990..d791735596280c33cd3de0caf47cbb9104cbcc1d 100644
--- a/windows/Makefile
+++ b/windows/Makefile
@@ -10,7 +10,7 @@ QSTR_DEFS = ../unix/qstrdefsport.h
 # include py core make definitions
 include ../py/py.mk
 
-INC =  -I.
+INC += -I.
 INC += -I..
 INC += -I$(BUILD)