From 0a737f57f32b13f33ad90029b6208f30f99c3cff Mon Sep 17 00:00:00 2001 From: LEdoianX Date: Thu, 14 Apr 2016 22:18:48 +0200 Subject: [PATCH] More changes to Makefile.final I have no idea what to write all the time --- Makefile.final | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.final b/Makefile.final index 34b4569..c79b535 100644 --- a/Makefile.final +++ b/Makefile.final @@ -5,10 +5,10 @@ OPENCM3_DIR = /home/ledoian/libopencm3-examples/libopencm3-examples/libopencm3 EXAMPLE_DIR = /home/ledoian/libopencm3-examples/libopencm3-examples/examples/stm32/f1/stm32vl-discovery %.o: %.c - arm-none-eabi-gcc -Os -g -Wextra -Wshadow -Wimplicit-function-declaration -Wredundant-decls -Wmissing-prototypes -fno-common -ffunction-sections -fdata-sections -MD -Wall -Wundef -I$(OPENCM3_DIR)/include -DSTM32F1 -mthumb -mcpu=cortex-m3 -msoft-float -mfix-cortex-m3-ldrd -c $*.c -o $*.o + arm-none-eabi-gcc -Os -g -Wextra -fno-common -ffunction-sections -fdata-sections -MD -Wall -Wundef -I $(OPENCM3_DIR)/include -D STM32F1 -mthumb -mcpu=cortex-m3 -msoft-float -mfix-cortex-m3-ldrd -c $*.c -o $*.o %.elf: %.o - arm-none-eabi-gcc --static -nostartfiles -L$(OPENCM3_DIR)/lib -T$(EXAMPLE_DIR)/stm32vl-discovery.ld -Wl,-Map=$*.map -Wl,--gc-sections -mthumb -mcpu=cortex-m3 -msoft-float -mfix-cortex-m3-ldrd $*.o -lopencm3-stm32f1 -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group -o $*.elf # FIXME: vytvořil se .map soubor? + arm-none-eabi-gcc --static -nostartfiles -L $(OPENCM3_DIR)/lib -T $(EXAMPLE_DIR)/stm32vl-discovery.ld -Wl,-Map=$*.map -Wl,--gc-sections -mthumb -mcpu=cortex-m3 -msoft-float -mfix-cortex-m3-ldrd $*.o -l opencm3_stm32f1 -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group -o $*.elf %.bin: %.elf arm-none-eabi-objcopy -Obinary $*.elf $*.bin