2006-06-27 00:44:04 +00:00
|
|
|
#
|
2007-07-28 13:29:03 +00:00
|
|
|
# Copyright (C) 2007 OpenWrt.org
|
2006-06-27 00:44:04 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-03-06 03:34:52 +00:00
|
|
|
# Main makefile for the toolchain
|
2006-06-27 00:44:04 +00:00
|
|
|
#
|
2006-09-27 14:06:46 +00:00
|
|
|
|
2007-07-28 13:29:03 +00:00
|
|
|
# subdirectories to descend into
|
|
|
|
toolchain/builddirs := kernel-headers $(if $(CONFIG_GDB),gdb) $(if $(CONFIG_NATIVE_TOOLCHAIN),,binutils gcc uClibc)
|
2005-03-06 03:34:52 +00:00
|
|
|
|
2007-07-28 13:29:03 +00:00
|
|
|
# builddir dependencies
|
|
|
|
toolchain/uClibc/prepare:=toolchain/kernel-headers/prepare
|
2006-08-10 19:25:26 +00:00
|
|
|
ifeq ($(CONFIG_NATIVE_TOOLCHAIN),)
|
2007-07-28 13:29:03 +00:00
|
|
|
toolchain/binutils/prepare:=toolchain/uClibc/prepare
|
|
|
|
toolchain/gcc/prepare:=toolchain/binutils/install
|
|
|
|
toolchain/uClibc/compile:=toolchain/gcc/compile
|
2006-08-10 19:25:26 +00:00
|
|
|
endif
|
2007-07-28 13:29:03 +00:00
|
|
|
toolchain/gcc/install:=toolchain/uClibc/install
|
2005-03-06 03:34:52 +00:00
|
|
|
|
2007-07-28 13:29:03 +00:00
|
|
|
# prerequisites for the individual targets
|
|
|
|
toolchain/ := .config $(tools/stamp)
|
|
|
|
toolchain//prepare = $(STAGING_DIR)/include-host/.done
|
|
|
|
toolchain//compile = $(1)/prepare
|
|
|
|
toolchain//install = $(1)/compile
|
2005-03-06 03:34:52 +00:00
|
|
|
|
2007-07-28 13:29:03 +00:00
|
|
|
$(eval $(call stampfile,toolchain,toolchain))
|
|
|
|
$(eval $(call subdir,toolchain))
|
2007-04-18 17:35:46 +00:00
|
|
|
|