summaryrefslogtreecommitdiffstats
path: root/src/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/makefile b/src/makefile
new file mode 100644
index 000000000..3247e581e
--- /dev/null
+++ b/src/makefile
@@ -0,0 +1,13 @@
+IMGDIR = ../img
+OBJDIR = ../obj
+include ../config.mk
+
+SUBDIRS = kernel.d
+IMAGES += ${IMGDIR}/kernel.elf
+IMAGES += ${IMGDIR}/kernel.bin
+
+all: ${SUBDIRS}
+ ${MAKE} ${IMAGES}
+
+clean: $(patsubst %.d,%.clean, ${SUBDIRS})
+ (rm -f ${IMAGES} )
OpenPOWER on IntegriCloud