]> git.dujemihanovic.xyz Git - nameless-os.git/blobdiff - Makefile
all: Add $(CROSS_COMPILE) support
[nameless-os.git] / Makefile
index 993a455b631b63c0d082d7150a80de0394bff5b3..4e5ae9a65c26722f0f19a1114b59e8c48ccb5789 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
+export CROSS_COMPILE = i686-elf-
 export AS = yasm
-export CC = i686-elf-gcc
+export CC = gcc
 export QEMU = qemu-system-i386 -monitor stdio
 export GIT_REV = $(shell git describe --long HEAD)
+export REAL_CC = $(CROSS_COMPILE)$(CC)
 MAKEFLAGS += -rR
 
 default: kernel/kernel.elf bootloader