aboutsummaryrefslogtreecommitdiff
path: root/pic16bit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pic16bit/Makefile')
-rw-r--r--pic16bit/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/pic16bit/Makefile b/pic16bit/Makefile
index 8c0c1c999..ebf4fc2e8 100644
--- a/pic16bit/Makefile
+++ b/pic16bit/Makefile
@@ -4,7 +4,7 @@ include ../py/mkenv.mk
QSTR_DEFS = qstrdefsport.h
# include py core make definitions
-include ../py/py.mk
+include $(TOP)/py/py.mk
XC16 = /opt/microchip/xc16/v1.24
CROSS_COMPILE = $(XC16)/bin/xc16-
@@ -13,8 +13,7 @@ PARTFAMILY = dsPIC33F
PART = 33FJ256GP506
INC += -I.
-INC += -I..
-INC += -I../stmhal
+INC += -I$(TOP)
INC += -I$(BUILD)
INC += -I$(XC16)/include
INC += -I$(XC16)/support/$(PARTFAMILY)/h
@@ -39,8 +38,8 @@ SRC_C = \
modpyb.c \
modpybled.c \
modpybswitch.c \
- stmhal/pybstdio.c \
lib/utils/pyexec.c \
+ lib/utils/sys_stdio_mphal.c \
lib/mp-readline/readline.c \
SRC_S = \
@@ -68,4 +67,4 @@ $(BUILD)/firmware.elf: $(OBJ)
$(PY_BUILD)/gc.o: CFLAGS += -O1
$(PY_BUILD)/vm.o: CFLAGS += -O1
-include ../py/mkrules.mk
+include $(TOP)/py/mkrules.mk