Cross compiler is now set by the arch
[akaros.git] / Makefile
index 90553bc..37707ce 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -183,11 +183,11 @@ include $(srctree)/scripts/Kbuild.include
 
 # Akaros Build Environment
 # =========================================================================
-AKAROSINCLUDE   := \
-                               -I$(srctree)/kern/arch/ \
-                               -I$(srctree)/kern/include/
+AKAROSINCLUDE   := -I$(srctree)/kern/include/
 
-CROSS_COMPILE := $(ARCH)-ros-
+# CROSS_COMPILE is defined per-arch.  Each arch can set other makeflags, kbuild
+# directories, etc. 
+include $(srctree)/kern/arch/$(ARCH)/Makefile
 
 CC         := $(CROSS_COMPILE)gcc 
 CPP        := $(CROSS_COMPILE)g++