initial commit of lk (little kernel) project
diff --git a/macros.mk b/macros.mk
new file mode 100644
index 0000000..13c1d9b
--- /dev/null
+++ b/macros.mk
@@ -0,0 +1,5 @@
+# Find the local dir of the make file
+GET_LOCAL_DIR    = $(patsubst %/,%,$(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))))
+
+# makes sure the target dir exists
+MKDIR = if [ ! -d $(dir $@) ]; then mkdir -p $(dir $@); fi