diff options
author | Joursoir <chat@joursoir.net> | 2022-09-26 13:14:30 +0300 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2022-10-03 20:49:23 +0300 |
commit | 3955de98fa26ca847041f5fcb50268927b44a208 (patch) | |
tree | d60a5045d3c4343def0bfc3b6cfba91dcd96c3b2 | |
parent | 719919dd0dfc8a22186b3394bb6a8f951431f909 (diff) | |
download | mfsos-3955de98fa26ca847041f5fcb50268927b44a208.tar.gz mfsos-3955de98fa26ca847041f5fcb50268927b44a208.tar.bz2 mfsos-3955de98fa26ca847041f5fcb50268927b44a208.zip |
makefile: use our toolchain
-rw-r--r-- | Makefile | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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) |