blob: bc5bc313165b3ab1dc1950fe53dc60e46a3721f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
all: build
build: blink.uf2
blink.uf2: blink.elf
./elf2uf2 blink.elf blink.uf2
objects = main.o blink.o clocks.o gpio.o pll.o uart.o xosc.o
blink.elf: $(objects)
arm-none-eabi-ld -T pico_ram_only.ld -o blink.elf $(objects)
$(objects): %.o: %.s
arm-none-eabi-as -o $@ $<
clean:
rm blink.elf blink.uf2 *.o
|