From 8c946de4d432f575452688217ba0eeccaa0d351f Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 30 Dec 2010 14:12:32 +0100 Subject: Some more LD paths fixes. --- examples/stm32/Makefile.include | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'examples/stm32/Makefile.include') 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 -- cgit v1.2.3