use $(curdir) again
[openwrt.git] / toolchain / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # Main makefile for the toolchain
8 #
9 file:=${lastword ${MAKEFILE_LIST}}
10 curdir:=$(patsubst %/Makefile,%,${file})
11
12 # subdirectories to descend into
13 $(curdir)/builddirs := kernel-headers $(if $(CONFIG_GDB),gdb) $(if $(CONFIG_NATIVE_TOOLCHAIN),,binutils gcc uClibc)
14
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
21 endif
22 $(curdir)/gcc/install:=$(curdir)/uClibc/install
23
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
29
30 $(eval $(call stampfile,$(curdir),toolchain))
31 $(eval $(call subdir,$(curdir)))
32
This page took 0.038964 seconds and 5 git commands to generate.