redboot.c - adds implicit creation of boardconfig partition
[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 curdir:=tools
10
11 # subdirectories to descend into
12 $(curdir)/builddirs := sed sstrip ipkg-utils genext2fs squashfs mtd-utils lzma mkimage firmware-utils patch-cmdline pkg-config automake $(if $(CONFIG_CCACHE),ccache) bison $(if $(CONFIG_powerpc),dtc) lua
13
14 # builddir dependencies
15 $(curdir)/squashfs/compile := $(curdir)/lzma/install
16
17 # preparatory work
18 $(STAGING_DIR)/.prepared: $(TMP_DIR)/.build
19 @for dir in $(STAGING_DIR) $(STAGING_DIR_HOST); do ( \
20 set -x; \
21 mkdir -p "$$dir"; \
22 cd "$$dir"; \
23 mkdir -p bin lib include stamp; \
24 ); done
25 mkdir -p $(BUILD_DIR_HOST)/stamp $(BUILD_DIR)/stamp
26 $(INSTALL_DATA) $(TOPDIR)/tools/include/*.h $(STAGING_DIR_HOST)/include/
27 touch $@
28
29 $(curdir)//prepare = $(STAGING_DIR)/.prepared
30 $(curdir)//compile = $(STAGING_DIR)/.prepared
31
32 # prerequisites for the individual targets
33 $(curdir)/ := .config prereq
34 $(curdir)//install = $(1)/compile
35
36 $(eval $(call stampfile,$(curdir),tools,install))
37 $(eval $(call subdir,$(curdir)))
This page took 0.039862 seconds and 5 git commands to generate.