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
|
|
|
#
|
2007-07-30 15:00:27 +00:00
|
|
|
curdir:=toolchain
|
2006-09-27 14:06:46 +00:00
|
|
|
|
2007-07-28 13:29:03 +00:00
|
|
|
# subdirectories to descend into
|
2007-07-28 13:44:04 +00:00
|
|
|
$(curdir)/builddirs := kernel-headers $(if $(CONFIG_GDB),gdb) $(if $(CONFIG_NATIVE_TOOLCHAIN),,binutils gcc uClibc)
|
2007-07-30 21:57:14 +00:00
|
|
|
$(curdir)/builddirs-compile:=. $(filter-out kernel-headers,$($(curdir)/builddirs))
|
|
|
|
$(curdir)/builddirs-install:=$($(curdir)/builddirs-compile)
|
2005-03-06 03:34:52 +00:00
|
|
|
|
2007-07-28 13:29:03 +00:00
|
|
|
# builddir dependencies
|
2007-07-28 13:44:04 +00:00
|
|
|
$(curdir)/uClibc/prepare:=$(curdir)/kernel-headers/prepare
|
2006-08-10 19:25:26 +00:00
|
|
|
ifeq ($(CONFIG_NATIVE_TOOLCHAIN),)
|
2007-07-28 13:44:04 +00:00
|
|
|
$(curdir)/binutils/prepare:=$(curdir)/uClibc/prepare
|
|
|
|
$(curdir)/gcc/prepare:=$(curdir)/binutils/install
|
|
|
|
$(curdir)/uClibc/compile:=$(curdir)/gcc/compile
|
2006-08-10 19:25:26 +00:00
|
|
|
endif
|
2007-07-28 13:44:04 +00:00
|
|
|
$(curdir)/gcc/install:=$(curdir)/uClibc/install
|
2005-03-06 03:34:52 +00:00
|
|
|
|
2007-07-28 13:29:03 +00:00
|
|
|
# prerequisites for the individual targets
|
2007-07-30 21:14:08 +00:00
|
|
|
$(curdir)/ := .config prereq
|
2007-07-28 13:44:04 +00:00
|
|
|
$(curdir)//prepare = $(STAGING_DIR)/include-host/.done
|
|
|
|
$(curdir)//compile = $(1)/prepare
|
|
|
|
$(curdir)//install = $(1)/compile
|
2005-03-06 03:34:52 +00:00
|
|
|
|
2007-07-30 18:22:01 +00:00
|
|
|
$(eval $(call stampfile,$(curdir),toolchain,install))
|
2007-07-28 13:44:04 +00:00
|
|
|
$(eval $(call subdir,$(curdir)))
|
2007-04-18 17:35:46 +00:00
|
|
|
|