2006-09-27 16:06:46 +02:00
|
|
|
#
|
2007-07-28 04:44:55 +02:00
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
2006-09-27 16:06:46 +02: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 04:44:55 +02:00
|
|
|
curdir:=$(patsubst %/Makefile,%,$(lastword $(MAKEFILE_LIST)))
|
2006-09-27 16:06:46 +02:00
|
|
|
|
2007-07-28 04:44:55 +02: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 16:06:46 +02:00
|
|
|
|
2007-07-28 04:44:55 +02:00
|
|
|
# builddir dependencies
|
|
|
|
$(curdir)/squashfs/compile := $(curdir)/lzma/install
|
2006-09-27 16:06:46 +02:00
|
|
|
|
2007-07-28 04:44:55 +02:00
|
|
|
# preparatory work
|
|
|
|
$(STAGING_DIR)/include-host/.done:
|
|
|
|
@mkdir -p $$(dirname $@)
|
|
|
|
@cp $(curdir)/include/*.h $$(dirname $@)/
|
|
|
|
@touch $@
|
2006-09-27 16:06:46 +02:00
|
|
|
|
2007-07-28 04:44:55 +02:00
|
|
|
# prerequisites for the individual targets
|
|
|
|
$(curdir)/ := .config
|
2007-07-28 04:53:54 +02:00
|
|
|
$(curdir)//prepare = $(STAGING_DIR)/include-host/.done
|
|
|
|
$(curdir)//compile = $(1)/prepare
|
|
|
|
$(curdir)//install = $(1)/compile
|
|
|
|
|
2007-07-28 04:44:55 +02:00
|
|
|
$(eval $(call stampfile,$(curdir),tools))
|
|
|
|
$(eval $(call subdir,$(curdir)))
|