diff --git a/unix/Makefile b/unix/Makefile
index 06169ddac55ef50ab0cae65ce00596504215f71c..159b07c82b7dc8df5b0f93380dd2250194280051 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -1,5 +1,5 @@
-include ../py/mkenv.mk
 -include mpconfigport.mk
+include ../py/mkenv.mk
 
 # define main target
 PROG = micropython