From 39631bc3126774b75916331d84d3cb26aab8ac3a Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 30 Jan 2014 22:16:51 +0000 Subject: [PATCH] Fix Makefiles: -O3 option was not being applied; mkdir for STM. --- py/py.mk | 4 ++-- stm/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/py/py.mk b/py/py.mk index 35dfd590ac..5cd2ef8b72 100644 --- a/py/py.mk +++ b/py/py.mk @@ -101,8 +101,8 @@ $(PY_BUILD)/emitnthumb.o: py/emitnative.c $(call compile_c) # optimising gc for speed; 5ms down to 4ms on pybv2 -$(PY_BUILD)gc.o: CFLAGS += -O3 +$(PY_BUILD)/gc.o: CFLAGS += -O3 # optimising vm for speed, adds only a small amount to code size but makes a huge difference to speed (20% faster) -$(PY_BUILD)vm.o: CFLAGS += -O3 +$(PY_BUILD)/vm.o: CFLAGS += -O3 diff --git a/stm/Makefile b/stm/Makefile index 12fd0d9662..1958252381 100644 --- a/stm/Makefile +++ b/stm/Makefile @@ -151,7 +151,7 @@ OBJ += $(addprefix $(BUILD)/, $(SRC_STMUSBD:.c=.o)) OBJ += $(addprefix $(BUILD)/, $(SRC_FATFS:.c=.o)) #OBJ += $(addprefix $(BUILD)/, $(SRC_CC3K:.c=.o)) -all: $(BUILD) $(BUILD)/flash.dfu +all: $(BUILD)/flash.dfu $(BUILD)/flash.dfu: $(BUILD)/flash0.bin $(BUILD)/flash1.bin $(ECHO) "Create $@"