1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/steps.mk Sun Jul 22 16:32:24 2007 +0000
1.3 @@ -0,0 +1,35 @@
1.4 +# Makefile for each steps
1.5 +# Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
1.6 +
1.7 +CT_STEPS := libc_check_config \
1.8 + kernel_check_config \
1.9 + kernel_headers \
1.10 + binutils \
1.11 + cc_core_pass_1 \
1.12 + libc_headers \
1.13 + libc_start_files \
1.14 + cc_core_pass_2 \
1.15 + libfloat \
1.16 + libc \
1.17 + cc \
1.18 + libc_finish \
1.19 + tools \
1.20 + debug \
1.21 +
1.22 +$(CT_STEPS):
1.23 + @$(CT_NG) RESTART=$@ STOP=$@ build
1.24 +
1.25 +$(patsubst %,-%,$(CT_STEPS)):
1.26 + @$(CT_NG) STOP=$(patsubst -%,%,$@) build
1.27 +
1.28 +$(patsubst %,%-,$(CT_STEPS)):
1.29 + @$(CT_NG) RESTART=$(patsubst %-,%,$@) build
1.30 +
1.31 +help-build::
1.32 + @echo ' liststeps - List all build steps'
1.33 +
1.34 +liststeps:
1.35 + @echo 'Available build steps, in order:'
1.36 + @for step in $(CT_STEPS); do \
1.37 + echo " - $${step}"; \
1.38 + done