2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # Main makefile for the host tools
10 file
:=${lastword
${MAKEFILE_LIST}}
13 # subdirectories to descend into
14 $(curdir
)/builddirs
:= sed sstrip ipkg-utils ext2fs squashfs mtd-utils lzma mkimage firmware-utils patch-cmdline
$(if
$(CONFIG_CCACHE
),ccache
)
16 # builddir dependencies
17 $(curdir
)/squashfs
/compile
:= $(curdir
)/lzma
/install
21 $(STAGING_DIR
)/include-host
/.done
:
22 @mkdir
-p
$$$$(dirname
$$@
)
23 @cp
$(1)/include/*.h
$$$$(dirname
$$@
)/
25 $(curdir
)//prepare
= $(STAGING_DIR
)/include-host
/.done
27 $(eval
$(call copy_include
,$(curdir
)))
29 # prerequisites for the individual targets
31 $(curdir
)//compile
= $(1)/prepare
32 $(curdir
)//install = $(1)/compile
34 $(eval
$(call stampfile
,$(curdir
),tools
))
35 $(eval
$(call subdir
,$(curdir
)))