From 07ddaabc49362f672e0d4f52f57220aac7af39cf Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 21 Jun 2018 20:03:16 +0200 Subject: Split into separate files and tidy up --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index aeac4a4..1d38433 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,16 @@ all: kernel.img kernel.img: kernel.elf - arm-linux-gnu-objcopy kernel.elf -O binary kernel.img + arm-none-eabi-objcopy kernel.elf -O binary kernel.img -kernel.elf : main.o linkscript.ld - arm-linux-gnu-ld --no-undefined main.o -o kernel.elf -T linkscript.ld +kernel.elf : main.o slow_status_flash.o linkscript.ld + arm-none-eabi-ld --no-undefined main.o slow_status_flash.o -o kernel.elf -T linkscript.ld main.o: src/main.s - arm-linux-gnu-as -Isrc src/main.s -o main.o + arm-none-eabi-as -Isrc src/main.s -o main.o + +slow_status_flash.o: src/slow_status_flash.s + arm-none-eabi-as -Isrc src/slow_status_flash.s -o slow_status_flash.o clean: rm -f main.o kernel.elf kernel.img -- cgit v1.2.3