aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32/Makefile.include
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32/Makefile.include')
-rw-r--r--examples/stm32/Makefile.include6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/stm32/Makefile.include b/examples/stm32/Makefile.include
index 6594fb9..af6d02f 100644
--- a/examples/stm32/Makefile.include
+++ b/examples/stm32/Makefile.include
@@ -28,11 +28,9 @@ OBJDUMP = $(PREFIX)-objdump
# TOOLCHAIN_DIR = `dirname \`which $(CC)\``/../$(PREFIX)
TOOLCHAIN_DIR = ../../../..
CFLAGS += -Os -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include \
- -I$(TOOLCHAIN_DIR)/include/libopencm3 -fno-common \
- -mcpu=cortex-m3 -mthumb
+ -fno-common -mcpu=cortex-m3 -mthumb
LDSCRIPT = $(BINARY).ld
-LDFLAGS += -L$(TOOLCHAIN_DIR)/lib -L$(TOOLCHAIN_DIR)/lib/libopencm3 \
- -L$(TOOLCHAIN_DIR)/lib/stm32 \
+LDFLAGS += -L$(TOOLCHAIN_DIR)/lib -L$(TOOLCHAIN_DIR)/lib/stm32 \
-T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections
OBJS += $(BINARY).o