From 45a6fdb04f3bf605eb4280473dd22db041ece6a7 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 26 Sep 2021 16:09:46 +0200 Subject: Remove startup.c and switch to libopencm3's Linker Script --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0b7e9c0..3a2f096 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,4 @@ -OBJS = main.o startup.o - # tools PREFIX ?= arm-none-eabi CC = $(PREFIX)-gcc @@ -10,8 +8,7 @@ OBJCOPY = $(PREFIX)-objcopy all: deps/libopencm3/lib/libopencm3_stm32f1.a mkdir build $(CC) -O0 -c -g -DSTM32F1 -Ideps/libopencm3/include -mcpu=cortex-m3 -mthumb -o build/main.o src/main.c - $(CC) -O0 -c -g -DSTM32F1 -Ideps/libopencm3/include -mcpu=cortex-m3 -mthumb -o build/startup.o src/startup.c - $(LD) --static -nostartfiles -mcpu=cortex-m3 -mthumb -msoft-float -Tld/stm32f103c8t6.ld -Ldeps/libopencm3/lib build/startup.o build/main.o -lopencm3_stm32f1 -o build/ledcontrol.elf + $(LD) --static -nostartfiles -mcpu=cortex-m3 -mthumb -msoft-float -Tld/stm32f103c8t6.ld -Ldeps/libopencm3/lib build/main.o -lopencm3_stm32f1 -o build/ledcontrol.elf $(OBJCOPY) -O binary build/ledcontrol.elf build/ledcontrol.bin deps/libopencm3/lib/libopencm3_stm32f1.a: -- cgit v1.2.3-70-g09d2