StupidSynth/Makefile

12 lines
276 B
Makefile

TOOLCHAIN = arm-none-eabi
CC = $(TOOLCHAIN)-gcc
OBJCOPY = $(TOOLCHAIN)-objcopy
all: kernel.img
kernel.img: boot.o kernel.o
$(CC) -T link.ld -o kernel.elf -ffreestanding -O2 -nostdlib boot.o kernel.o
$(OBJCOPY) kernel.elf -O binary kernel.img
clean:
rm -f *.o *.elf *.img