-gcc-install: uClibc-install
-
-TOOLCHAIN_STAMP_DIR:=$(STAGING_DIR)/stampfiles
-
-$(TOOLCHAIN_STAMP_DIR):
- mkdir -p $@
-
-$(STAGING_DIR):
- @mkdir -p $@/lib
- @mkdir -p $@/include
- @mkdir -p $@/$(REAL_GNU_TARGET_NAME)
- @ln -sf ../lib $@/$(REAL_GNU_TARGET_NAME)/lib
-
-$(TOOLCHAIN_BUILD_DIR):
- @mkdir -p $@
-
-%-download: FORCE
- $(MAKE) -C $(patsubst %-download,%,$@) download
-
-%-prepare: $(TOOLCHAIN_STAMP_DIR) $(STAGING_DIR) $(TOOLCHAIN_BUILD_DIR) FORCE
- @[ -f $(TOOLCHAIN_STAMP_DIR)/.toolchain_$@ ] || { \
- $(MAKE) -C $(patsubst %-prepare,%,$@) prepare; \
- }
- @touch $(TOOLCHAIN_STAMP_DIR)/.toolchain_$@
-
-%-compile: %-prepare
- @[ -f $(TOOLCHAIN_STAMP_DIR)/.toolchain_$@ ] || { \
- $(MAKE) -C $(patsubst %-compile,%,$@) compile; \
- }
- @touch $(TOOLCHAIN_STAMP_DIR)/.toolchain_$@
-
-%-install: %-compile
- @[ -f $(TOOLCHAIN_STAMP_DIR)/.toolchain_$@ ] || { \
- $(MAKE) -C $(patsubst %-install,%,$@) install; \
- }
- @touch $(TOOLCHAIN_STAMP_DIR)/.toolchain_$@