From 3955de98fa26ca847041f5fcb50268927b44a208 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Mon, 26 Sep 2022 13:14:30 +0300 Subject: makefile: use our toolchain --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 07343b1..e7c5182 100644 --- a/Makefile +++ b/Makefile @@ -6,15 +6,13 @@ ARCH = x86 ARCH_BOOT = arch/$(ARCH)/boot BOOTBIN = $(ARCH_BOOT)/bootloader.bin -TARGET_TOOLS = $(HOME)/path/to/cross/compiler/i686-elf- -CC = $(TARGET_TOOLS)gcc -export CC -LD = $(TARGET_TOOLS)ld -export LD -AS = $(TARGET_TOOLS)as -export AS -OBJDUMP = $(TARGET_TOOLS)objdump -export OBJDUMP +TARGET = i686-elf +TARGET_TOOLS = $(PWD)/tools/toolchain/bin/$(TARGET)- + +CC = $(TARGET_TOOLS)gcc +LD = $(TARGET_TOOLS)ld +AS = $(TARGET_TOOLS)as +OBJDUMP = $(TARGET_TOOLS)objdump C_SOURCES = \ kernel/main.c \ @@ -22,6 +20,8 @@ C_SOURCES = \ drivers/video/console/vgacon.c OBJECTS = ${C_SOURCES:.c=.o} +export CC LD AS OBJDUMP + .PHONY: all qemu objdump-boot objdump-kernel clean all: $(OSBIN) -- cgit v1.2.3-18-g5258