From 6872bc9ae68e02ab43b9ba4870c4a23992948b95 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 27 Apr 2017 21:37:54 +0200 Subject: bootstrapped from an OSX with separate ELF toolchain --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index ed04a72..aedfa12 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,4 +1,5 @@ CC := gcc +LD := ld all: image.bin @@ -10,7 +11,7 @@ boot.bin: boot.asm gdt.asm stage1_functions.asm stage2_functions.asm switch_mode nasm boot.asm -f bin -o boot.bin kernel.bin: kernel.o - ld -o kernel.bin -Ttext 0x8000 kernel.o -m elf_i386 --oformat binary + $(LD) -o kernel.bin -Ttext 0x8000 kernel.o -m elf_i386 --oformat binary kernel.o: kernel.c $(CC) -m32 -ffreestanding -c -o kernel.o kernel.c -- cgit v1.2.3-54-g00ecf