aboutsummaryrefslogtreecommitdiff
path: root/stm/Makefile
diff options
context:
space:
mode:
authorJohn R. Lenton2014-01-14 23:58:05 +0000
committerJohn R. Lenton2014-01-14 23:58:05 +0000
commitff8007c7d6497b108e8abe80ab3311945a03fe52 (patch)
treee2f6974d6476cc46b7414ba0626cb519142c3e3d /stm/Makefile
parent9daa78943e58602f74c89a2b5b1ed225f4ccf6cc (diff)
parentc6920d31e2b03205fe2851f74a6a4b48d0165608 (diff)
Merge remote-tracking branch 'upstream/master' into builtins
Diffstat (limited to 'stm/Makefile')
-rw-r--r--stm/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/stm/Makefile b/stm/Makefile
index 2facff81c..d4dbd960a 100644
--- a/stm/Makefile
+++ b/stm/Makefile
@@ -33,6 +33,7 @@ CFLAGS += -Os -DNDEBUG
endif
LDFLAGS = --nostdlib -T stm32f405.ld
+LIBS = $(shell $(CC) -print-libgcc-file-name)
SRC_C = \
main.c \
@@ -57,6 +58,7 @@ SRC_C = \
pybwlan.c \
i2c.c \
usrsw.c \
+ adc.c \
SRC_S = \
startup_stm32f40xx.s \
@@ -100,6 +102,7 @@ SRC_STM = \
usbd_storage_msd.c \
stm324x7i_eval.c \
stm324x7i_eval_sdio_sd.c \
+ stm32f4xx_adc.c \
#SRC_STM_OTG = \
# usb_hcd.c \
@@ -143,7 +146,7 @@ $(BUILD)/flash1.bin: $(BUILD)/flash.elf
$(BUILD)/flash.elf: $(OBJ)
$(ECHO) "LINK $@"
- $(Q)$(LD) $(LDFLAGS) -o $@ $(OBJ)
+ $(Q)$(LD) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
$(Q)$(SIZE) $@
$(BUILD)/%.o: %.s