OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / user / user.mak
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:
4 # -include ../user.mak
5 #
6 # This will pull in all the necessary definitions such that
7 # the targets: all, clean, romfs, image 
8 # will work from those directories
9 #
10 # If you need this to work in a lower subdirectory
11 # (say user/xxx/yyy) you should define _reldir=../..
12 # or as appropriate
13 #
14 ifndef ROOTDIR
15 _reldir ?= ..
16 ROOTDIR := $(shell pwd)/$(_reldir)/..
17
18 # Set up the default target
19 ALL: all
20
21 .PHONY: romfs image ALL all
22 image:
23         $(MAKEARCH) -C $(ROOTDIR)/vendors image
24
25 endif
26
27 ifndef UCLINUX_BUILD_LIB
28 UCLINUX_BUILD_USER=1
29 endif
30 include $(ROOTDIR)/vendors/config/common/config.arch
31 -include hostbuild.mak