summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile3
1 files changed, 2 insertions, 1 deletions
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