aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/Makefile.include
diff options
context:
space:
mode:
authorUwe Hermann2010-12-30 14:12:32 +0100
committerUwe Hermann2010-12-30 14:12:32 +0100
commit8c946de4d432f575452688217ba0eeccaa0d351f (patch)
tree14aac5d2fb8df56a455c7353460e35bc69bafec6 /examples/stm32/Makefile.include
parentd37a786c63a748027879e610a314b8f229c8325e (diff)
Some more LD paths fixes.
Diffstat (limited to 'examples/stm32/Makefile.include')
-rw-r--r--examples/stm32/Makefile.include8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/stm32/Makefile.include b/examples/stm32/Makefile.include
index d603d39..6594fb9 100644
--- a/examples/stm32/Makefile.include
+++ b/examples/stm32/Makefile.include
@@ -27,11 +27,13 @@ OBJDUMP = $(PREFIX)-objdump
# Uncomment this line if you want to use the installed (not local) library.
# TOOLCHAIN_DIR = `dirname \`which $(CC)\``/../$(PREFIX)
TOOLCHAIN_DIR = ../../../..
-CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
+CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \
+ -I$(TOOLCHAIN_DIR)/include/libopencm3 -fno-common \
-mcpu=cortex-m3 -mthumb
LDSCRIPT = $(BINARY).ld
-LDFLAGS += -L$(TOOLCHAIN_DIR)/lib/stm32 -T$(LDSCRIPT) -nostartfiles \
- -Wl,--gc-sections
+LDFLAGS += -L$(TOOLCHAIN_DIR)/lib -L$(TOOLCHAIN_DIR)/lib/libopencm3 \
+ -L$(TOOLCHAIN_DIR)/lib/stm32 \
+ -T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections
OBJS += $(BINARY).o
OOCD ?= openocd