Userspace no longer includes the kernel's arch/*
[akaros.git] / kern / Makefrag
index 8502400..d0d60c9 100644 (file)
@@ -1,4 +1,12 @@
-
 KERN_DIR := kern
-include $(KERN_DIR)/ivylib/Makefrag
+
+KERN_CFLAGS += $(CFLAGS) -DROS_KERNEL
+KERN_CFLAGS += -I$(INCLUDE_DIR)
+KERN_LDFLAGS := $(LDFLAGS)
+
+include $(KERN_DIR)/arch/$(TARGET_ARCH)/boot/Makefrag
+include $(KERN_DIR)/ivy/Makefrag
+include $(KERN_DIR)/arch/$(TARGET_ARCH)/Makefrag
 include $(KERN_DIR)/src/Makefrag
+
+.PRECIOUS: $(OBJDIR)/$(KERN_DIR)/%.o