flatten the make system a little bit by providing only modules as a
compilation unit.
to add a module as a dependency of another, just add to the MODULE make
variable, instead of APPS/LIBS/DEVS
diff --git a/kernel/rules.mk b/kernel/rules.mk
index 33ca6c4..45cf94d 100644
--- a/kernel/rules.mk
+++ b/kernel/rules.mk
@@ -1,8 +1,11 @@
LOCAL_DIR := $(GET_LOCAL_DIR)
-LIBS += debug heap
+MODULES += \
+ lib/libc \
+ lib/debug \
+ lib/heap
-KOBJS += \
+OBJS += \
$(LOCAL_DIR)/debug.o \
$(LOCAL_DIR)/dpc.o \
$(LOCAL_DIR)/event.o \