1 # This makefile makes it very simple to build
2 # components from within user/xxx directories.
3 # Each user/xxx/Makefile should include the first line:
6 # This will pull in all the necessary definitions such that
7 # the targets: all, clean, romfs, image
8 # will work from those directories
10 # If you need this to work in a lower subdirectory
11 # (say user/xxx/yyy) you should define _reldir=../..
16 ROOTDIR := $(shell pwd)/$(_reldir)/..
18 # Set up the default target
21 .PHONY: romfs image ALL all
23 $(MAKEARCH) -C $(ROOTDIR)/vendors image
27 ifndef UCLINUX_BUILD_LIB
30 include $(ROOTDIR)/vendors/config/common/config.arch
31 -include hostbuild.mak