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
12 # subdirectories to descend into
13 tools/builddirs := sed sstrip ipkg-utils ext2fs squashfs mtd-utils lzma mkimage firmware-utils patch-cmdline $(if $(CONFIG_CCACHE),ccache)
15 # builddir dependencies
16 tools/squashfs/compile := tools/lzma/install
19 $(STAGING_DIR)/include-host/.done:
20 @mkdir -p $$(dirname $@)
21 @cp tools/include/*.h $$(dirname $@)/
24 # prerequisites for the individual targets
26 tools//prepare = $(STAGING_DIR)/include-host/.done
27 tools//compile = $(1)/prepare
28 tools//install = $(1)/compile
30 $(eval $(call stampfile,tools,tools))
31 $(eval $(call subdir,tools))