aboutsummaryrefslogtreecommitdiff
path: root/scripts/stubs/Makefile
blob: eb588d81a634d868e964e99a23d9d7b97ef34d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
CROSS_COMPILE = stm32-
CC = $(CROSS_COMPILE)gcc
OBJCOPY = $(CROSS_COMPILE)objcopy

all:	stm32_opterase.bin stm32_optprog.bin

%.bin:	%.S
	$(CC) -nostdlib -Wl,-Ttext,0x20000000 $<
	$(OBJCOPY) -O binary a.out $@

clean:
	-rm *.bin