21d2b6876e417a3ac016aa9cfd4df38319e64f24
2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # Main makefile for the toolchain
10 # subdirectories to descend into
11 toolchain
/builddirs
:= kernel-headers
$(if
$(CONFIG_GDB
),gdb
) $(if
$(CONFIG_NATIVE_TOOLCHAIN
),,binutils gcc uClibc
)
13 # builddir dependencies
14 toolchain
/uClibc
/prepare
:=toolchain
/kernel-headers
/prepare
15 ifeq ($(CONFIG_NATIVE_TOOLCHAIN
),)
16 toolchain
/binutils
/prepare
:=toolchain
/uClibc
/prepare
17 toolchain
/gcc
/prepare
:=toolchain
/binutils
/install
18 toolchain
/uClibc
/compile
:=toolchain
/gcc
/compile
20 toolchain
/gcc
/install:=toolchain
/uClibc
/install
22 # prerequisites for the individual targets
23 toolchain
/ := .config
$(tools
/stamp
)
24 toolchain
//prepare
= $(STAGING_DIR
)/include-host
/.done
25 toolchain
//compile
= $(1)/prepare
26 toolchain
//install = $(1)/compile
28 $(eval
$(call stampfile
,toolchain
,toolchain
))
29 $(eval
$(call subdir
,toolchain
))