2006-09-27 17:06:46 +03:00
|
|
|
#
|
2007-07-28 05:44:55 +03:00
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
2006-09-27 17:06:46 +03: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 05:44:55 +03:00
|
|
|
curdir:=$(patsubst %/Makefile,%,$(lastword $(MAKEFILE_LIST)))
|
2006-09-27 17:06:46 +03:00
|
|
|
|
2007-07-28 05:44:55 +03:00
|
|
|
# subdirectories to descend into
|
|
|
|
$(curdir)/builddirs := sed sstrip ipkg-utils ext2fs squashfs mtd-utils lzma mkimage firmware-utils patch-cmdline $(if $(CONFIG_CCACHE),ccache)
|
2006-09-27 17:06:46 +03:00
|
|
|
|
2007-07-28 05:44:55 +03:00
|
|
|
# builddir dependencies
|
|
|
|
$(curdir)/squashfs/compile := $(curdir)/lzma/install
|
2006-09-27 17:06:46 +03:00
|
|
|
|
2007-07-28 05:44:55 +03:00
|
|
|
# preparatory work
|
|
|
|
$(STAGING_DIR)/include-host/.done:
|
|
|
|
@mkdir -p $$(dirname $@)
|
|
|
|
@cp $(curdir)/include/*.h $$(dirname $@)/
|
|
|
|
@touch $@
|
2006-09-27 17:06:46 +03:00
|
|
|
|
2007-07-28 05:44:55 +03:00
|
|
|
# prerequisites for the individual targets
|
|
|
|
$(curdir)/ := .config
|
|
|
|
$(curdir)//prepare := $(STAGING_DIR)/include-host/.done
|
|
|
|
$(eval $(call stampfile,$(curdir),tools))
|
|
|
|
$(eval $(call subdir,$(curdir)))
|