2006-09-27 14:06:46 +00:00
|
|
|
#
|
2007-07-28 02:44:55 +00:00
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
2006-09-27 14:06:46 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# Main makefile for the host tools
|
|
|
|
#
|
|
|
|
|
2007-07-28 13:29:03 +00:00
|
|
|
curdir:=tools
|
2006-09-27 14:06:46 +00:00
|
|
|
|
2007-07-28 02:44:55 +00:00
|
|
|
# subdirectories to descend into
|
2007-07-28 13:29:03 +00:00
|
|
|
tools/builddirs := sed sstrip ipkg-utils ext2fs squashfs mtd-utils lzma mkimage firmware-utils patch-cmdline $(if $(CONFIG_CCACHE),ccache)
|
2006-09-27 14:06:46 +00:00
|
|
|
|
2007-07-28 02:44:55 +00:00
|
|
|
# builddir dependencies
|
2007-07-28 13:29:03 +00:00
|
|
|
tools/squashfs/compile := tools/lzma/install
|
2006-09-27 14:06:46 +00:00
|
|
|
|
2007-07-28 02:44:55 +00:00
|
|
|
# preparatory work
|
|
|
|
$(STAGING_DIR)/include-host/.done:
|
|
|
|
@mkdir -p $$(dirname $@)
|
2007-07-28 13:29:03 +00:00
|
|
|
@cp tools/include/*.h $$(dirname $@)/
|
2007-07-28 02:44:55 +00:00
|
|
|
@touch $@
|
2006-09-27 14:06:46 +00:00
|
|
|
|
2007-07-28 02:44:55 +00:00
|
|
|
# prerequisites for the individual targets
|
2007-07-28 13:29:03 +00:00
|
|
|
tools/ := .config
|
|
|
|
tools//prepare = $(STAGING_DIR)/include-host/.done
|
|
|
|
tools//compile = $(1)/prepare
|
|
|
|
tools//install = $(1)/compile
|
2007-07-28 02:53:54 +00:00
|
|
|
|
2007-07-28 13:29:03 +00:00
|
|
|
$(eval $(call stampfile,tools,tools))
|
|
|
|
$(eval $(call subdir,tools))
|