From 708574b0825149508ef49711869019fac49068d1 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Mon, 12 Jan 2015 04:26:15 +0200 Subject: [PATCH] teensy: Update for readline module moved to lib/. --- teensy/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/teensy/Makefile b/teensy/Makefile index bf3da6780..1c896c390 100644 --- a/teensy/Makefile +++ b/teensy/Makefile @@ -32,6 +32,7 @@ CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mcpu=cortex-m4 -msoft-float -mfloat INC = -I. INC += -I.. INC += -I../stmhal +INC += -I../lib/mp-readline INC += -I$(BUILD) INC += -Icore @@ -100,7 +101,6 @@ STM_SRC_C = $(addprefix stmhal/,\ printf.c \ pyexec.c \ pybstdio.c \ - readline.c \ string0.c \ ) @@ -108,6 +108,10 @@ STM_SRC_S = $(addprefix stmhal/,\ gchelper.s \ ) +LIB_SRC_C = $(addprefix lib/,\ + mp-readline/readline.c \ + ) + SRC_TEENSY = $(addprefix core/,\ mk20dx128.c \ pins_teensy.c \ @@ -120,6 +124,7 @@ SRC_TEENSY = $(addprefix core/,\ ) OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o) $(STM_SRC_C:.c=.o) $(STM_SRC_S:.s=.o) $(SRC_TEENSY:.c=.o)) +OBJ += $(addprefix $(BUILD)/, $(LIB_SRC_C:.c=.o)) OBJ += $(BUILD)/pins_gen.o all: hex