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 02:44:55 +00:00
|
|
|
curdir:=$(patsubst %/Makefile,%,$(lastword $(MAKEFILE_LIST)))
|
2006-09-27 14:06:46 +00:00
|
|
|
|
2007-07-28 02:44:55 +00: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 14:06:46 +00:00
|
|
|
|
2007-07-28 02:44:55 +00:00
|
|
|
# builddir dependencies
|
|
|
|
$(curdir)/squashfs/compile := $(curdir)/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 $@)
|
|
|
|
@cp $(curdir)/include/*.h $$(dirname $@)/
|
|
|
|
@touch $@
|
2006-09-27 14:06:46 +00:00
|
|
|
|
2007-07-28 02:44:55 +00:00
|
|
|
# prerequisites for the individual targets
|
|
|
|
$(curdir)/ := .config
|
|
|
|
$(curdir)//prepare := $(STAGING_DIR)/include-host/.done
|
|
|
|
$(eval $(call stampfile,$(curdir),tools))
|
|
|
|
$(eval $(call subdir,$(curdir)))
|