diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-08-07 00:04:25 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-08-07 00:04:25 +0000 |
commit | 12c49b6a6adbbcb0c7a19119c8a8c94b5f025f79 (patch) | |
tree | 9cda5ecf22a01d8a2ac22cd1a6510d51dfd5f3c3 /toolchain/Makefile | |
parent | 17453f9ace6001138259af04d4c4d5bfbe4e4dd5 (diff) |
build system cleanup/restructuring as described in http://lists.openwrt.org/pipermail/openwrt-devel/2007-August/001159.html
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8362 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/Makefile')
-rw-r--r-- | toolchain/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/toolchain/Makefile b/toolchain/Makefile index b11653190..80bdf485d 100644 --- a/toolchain/Makefile +++ b/toolchain/Makefile @@ -19,12 +19,23 @@ ifeq ($(CONFIG_NATIVE_TOOLCHAIN),) $(curdir)/binutils/prepare:=$(curdir)/uClibc/prepare $(curdir)/gcc/prepare:=$(curdir)/binutils/install $(curdir)/uClibc/compile:=$(curdir)/gcc/compile + $(curdir)/gcc/install:=$(curdir)/uClibc/compile + $(curdir)/uClibc/install:=$(curdir)/gcc/install endif -$(curdir)/gcc/install:=$(curdir)/uClibc/install + +$(TOOLCHAIN_DIR)/info.mk: .config + @for dir in $(TOOLCHAIN_DIR); do ( \ + set -x; \ + mkdir -p "$$dir"; \ + cd "$$dir"; \ + mkdir -p bin lib include stamp; \ + ); done + @grep GCC_VERSION $@ >/dev/null 2>&1 || $(INSTALL_DATA) $(TOPDIR)/toolchain/info.mk $@ + @touch $@ # prerequisites for the individual targets $(curdir)/ := .config prereq -$(curdir)//prepare = $(STAGING_DIR)/include-host/.done +$(curdir)//prepare = $(STAGING_DIR)/.prepared $(TOOLCHAIN_DIR)/info.mk $(curdir)//compile = $(1)/prepare $(curdir)//install = $(1)/compile |