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
9 file
:=${lastword
${MAKEFILE_LIST}}
10 curdir
:=$(patsubst %/Makefile
,%,${file})
12 # subdirectories to descend into
13 $(curdir
)/builddirs
:= kernel-headers
$(if
$(CONFIG_GDB
),gdb
) $(if
$(CONFIG_NATIVE_TOOLCHAIN
),,binutils gcc uClibc
)
15 # builddir dependencies
16 $(curdir
)/uClibc
/prepare
:=$(curdir
)/kernel-headers
/prepare
17 ifeq ($(CONFIG_NATIVE_TOOLCHAIN
),)
18 $(curdir
)/binutils
/prepare
:=$(curdir
)/uClibc
/prepare
19 $(curdir
)/gcc
/prepare
:=$(curdir
)/binutils
/install
20 $(curdir
)/uClibc
/compile
:=$(curdir
)/gcc
/compile
22 $(curdir
)/gcc
/install:=$(curdir
)/uClibc
/install
24 # prerequisites for the individual targets
25 $(curdir
)/ := .config
$(tools
/stamp
)
26 $(curdir
)//prepare
= $(STAGING_DIR
)/include-host
/.done
27 $(curdir
)//compile
= $(1)/prepare
28 $(curdir
)//install = $(1)/compile
30 $(eval
$(call stampfile
,$(curdir
),toolchain
))
31 $(eval
$(call subdir
,$(curdir
)))
This page took 0.038964 seconds and 5 git commands to generate.