[lk/makefile]: Add code to generate appsboot.mbn file for 7627_surf, 7630_surf and 8250_surf targets

Add code to generate appsboot.mbn for 3 targets. Add make file to support
integration of lk to eclair tree.
diff --git a/makefile b/makefile
index d3fe248..47ccb38 100644
--- a/makefile
+++ b/makefile
@@ -24,7 +24,11 @@
 
 DEBUG ?= 2
 
-BUILDDIR := build-$(PROJECT)
+ifndef $(BOOTLOADER_OUT)
+BOOTLOADER_OUT := .
+endif
+
+BUILDDIR := $(BOOTLOADER_OUT)/build-$(PROJECT)
 OUTBIN := $(BUILDDIR)/lk.bin
 OUTELF := $(BUILDDIR)/lk
 CONFIGHEADER := $(BUILDDIR)/config.h
@@ -41,7 +45,7 @@
 LDFLAGS += -gc-sections
 
 # top level rule
-all:: $(OUTBIN) $(OUTELF).lst $(OUTELF).debug.lst $(OUTELF).sym $(OUTELF).size
+all:: $(OUTBIN) $(OUTELF).lst $(OUTELF).debug.lst $(OUTELF).sym $(OUTELF).size APPSBOOTHEADER
 
 # the following three object lists are identical except for the ordering
 # which is bootobjs, kobjs, objs
@@ -76,6 +80,7 @@
 
 include project/$(PROJECT).mk
 include target/$(TARGET)/rules.mk
+include target/$(TARGET)/tools/makefile
 include platform/$(PLATFORM)/rules.mk
 include arch/$(ARCH)/rules.mk
 include platform/rules.mk