summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index 5b6f727..aa642f8 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -10,6 +10,7 @@ ISO = lunos.iso
# Build tools
BINUTILS_DIR := $(shell pwd)/cc/toolchain/build-binutils
+USER_CC = $(shell pwd)/cc/gcc/bin/x86_64-pc-ethos-gcc
CC := clang
LD := ld
AS := as
@@ -28,12 +29,12 @@ sys:
.PHONY: user
user:
- cd cmd/; make CC=$(CC) AS=$(AS) LD=$(LD) TARGET=$(TARGET) \
+ cd cmd/; make CC=$(USER_CC) AS=$(AS) LD=$(LD) TARGET=$(TARGET) \
SYSROOT=$(SYSROOT)
.PHONY: lib
lib:
- cd lib/; make CC=$(CC) AS=$(AS) LD=$(LD) TARGET=$(TARGET) \
+ cd lib/; make CC=$(USER_CC) AS=$(AS) LD=$(LD) TARGET=$(TARGET) \
SYSROOT=$(SYSROOT)
root: