lpc1114/Makefile

18 lines
317 B
Makefile

CROSS_COMPILE = arm-none-eabi-
CC = $(CROSS_COMPILE)gcc
OBJCOPY = $(CROSS_COMPILE)objcopy
CFLAGS = -mcpu=cortex-m0 -mthumb -O -nostdlib -std=gnu99 -fno-toplevel-reorder
all: first.bin
first.elf: first.o
$(CC) $(CFLAGS) -T flash.ld -o $@ $<
%.bin: %.elf
$(OBJCOPY) -Obinary $< $@
clean:
rm -f *.o *.elf *.bin