crosstool-ng/steps.mk
Yann E. MORIN" daa31a0c34 Building target libraries before the cross-compiler is available is doomed! Move build binutils' target libraries after final gcc.
Have a unique list of steps, it's easier to maintain.

 /trunk/scripts/build/binutils.sh |    8     5     3     0 +++++---
 /trunk/scripts/crosstool.sh      |   16     2    14     0 ++--------------
 /trunk/steps.mk                  |   29    16    13     0 ++++++++++++++++-------------
 3 files changed, 23 insertions(+), 30 deletions(-)
2008-04-28 07:38:36 +00:00

38 lines
984 B
Makefile

# Makefile for each steps
# Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
CT_STEPS := libc_check_config \
kernel_check_config \
kernel_headers \
binutils \
cc_core_pass_1 \
libc_headers \
libc_start_files \
cc_core_pass_2 \
libc \
cc \
libc_finish \
binutils_target \
tools \
debug \
export CT_STEPS
$(CT_STEPS):
@$(CT_NG) RESTART=$@ STOP=$@ build
$(patsubst %,+%,$(CT_STEPS)):
@$(CT_NG) STOP=$(patsubst +%,%,$@) build
$(patsubst %,%+,$(CT_STEPS)):
@$(CT_NG) RESTART=$(patsubst %+,%,$@) build
help-build::
@echo ' liststeps - List all build steps'
liststeps:
@echo 'Available build steps, in order:'
@for step in $(CT_STEPS); do \
echo " - $${step}"; \
done