summaryrefslogtreecommitdiffstats
path: root/src/makefile
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2010-05-18 13:51:26 -0500
committerPatrick Williams <iawillia@us.ibm.com>2010-05-18 13:51:26 -0500
commit9ea98f274e18a3407ce109a331553e1c910274d9 (patch)
treed1b5b14ed355188b31457733d34dfdd812910afd /src/makefile
parenta5715803fd096bd223b6afd8b26d8efbb96239d4 (diff)
downloadtalos-hostboot-9ea98f274e18a3407ce109a331553e1c910274d9.tar.gz
talos-hostboot-9ea98f274e18a3407ce109a331553e1c910274d9.zip
Improve make infrastructure.
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