fix compile errors with make 3.80
[openwrt.git] / tools / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # Main makefile for the host tools
8 #
9
10 file:=${lastword ${MAKEFILE_LIST}}
11 curdir:=tools
12
13 # subdirectories to descend into
14 $(curdir)/builddirs := sed sstrip ipkg-utils ext2fs squashfs mtd-utils lzma mkimage firmware-utils patch-cmdline $(if $(CONFIG_CCACHE),ccache)
15
16 # builddir dependencies
17 $(curdir)/squashfs/compile := $(curdir)/lzma/install
18
19 # preparatory work
20 define copy_include
21 $(STAGING_DIR)/include-host/.done:
22 @mkdir -p $$$$(dirname $$@)
23 @cp $(1)/include/*.h $$$$(dirname $$@)/
24 @touch $$@
25 $(curdir)//prepare = $(STAGING_DIR)/include-host/.done
26 endef
27 $(eval $(call copy_include,$(curdir)))
28
29 # prerequisites for the individual targets
30 $(curdir)/ := .config
31 $(curdir)//compile = $(1)/prepare
32 $(curdir)//install = $(1)/compile
33
34 $(eval $(call stampfile,$(curdir),tools))
35 $(eval $(call subdir,$(curdir)))
This page took 0.048843 seconds and 5 git commands to generate.