2 # Copyright (C) 2006 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 include $(TOPDIR
)/rules.mk
11 TARGETS-y
:=kernel-headers
12 TARGETS-
$(CONFIG_GDB
) += gdb
13 ifeq ($(CONFIG_NATIVE_TOOLCHAIN
),)
14 TARGETS-y
+=binutils gcc uClibc
17 TARGETS_DOWNLOAD
:=$(patsubst %,%-download
,$(TARGETS-y
))
18 TARGETS_COMPILE
:=$(patsubst %,%-compile
,$(TARGETS-y
))
19 TARGETS_INSTALL
:=$(patsubst %,%-install,$(TARGETS-y
))
20 TARGETS_CLEAN
:=$(patsubst %,%-clean,$(TARGETS-y
))
21 STAMP
:=$(STAGING_DIR
)/stampfiles
/.toolchain_installed
24 download
: $(TARGETS_DOWNLOAD
)
25 compile
: $(TARGETS_COMPILE
)
27 clean: $(TARGETS_CLEAN
)
29 ifneq ($(shell $(SCRIPT_DIR
)/timestamp.pl
-p .
$(STAMP
)),$(STAMP
))
30 $(STAMP
): $(TARGETS_INSTALL
)
33 ifeq ($(CONFIG_CCACHE
),y
)
34 uClibc-prepare
: ccache-install
36 uClibc-prepare
: kernel-headers-prepare
37 ifeq ($(CONFIG_NATIVE_TOOLCHAIN
),)
38 binutils-prepare
: uClibc-prepare
39 gcc-prepare
: binutils-install
40 uClibc-compile
: gcc-compile
42 gcc-install
: uClibc-install
45 mkdir
-p
$(shell dirname
$@
)
48 $(STAGING_DIR
)/$(REAL_GNU_TARGET_NAME
):
52 $(TOOLCHAIN_BUILD_DIR
):
55 $(eval
$(call default_subtargets
,$(STAGING_DIR
)/$(REAL_GNU_TARGET_NAME
) $(TOOLCHAIN_BUILD_DIR
)))
This page took 0.057069 seconds and 5 git commands to generate.