1.1 --- a/Makefile Tue Jun 26 21:23:05 2007 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,86 +0,0 @@
1.4 -# Makefile for crosstool-NG.
1.5 -# Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
1.6 -
1.7 -# Don't print directory as we descend into them
1.8 -MAKEFLAGS += --no-print-directory
1.9 -
1.10 -export CT_TOP_DIR=$(shell pwd)
1.11 -
1.12 -# This is crosstool-ng version string
1.13 -export CT_VERSION=$(shell cat $(CT_TOP_DIR)/version)
1.14 -
1.15 -export CT_STOP=$(STOP)
1.16 -export CT_RESTART=$(RESTART)
1.17 -
1.18 -.PHONY: all
1.19 -all: build
1.20 -
1.21 -HOST_CC = gcc -funsigned-char
1.22 -
1.23 -# Help system
1.24 -help:: help-head help-config help-samples help-build help-distrib help-env help-tail
1.25 -
1.26 -help-head::
1.27 - @echo 'Available make targets:'
1.28 -
1.29 -help-config::
1.30 - @echo
1.31 - @echo 'Configuration targets:'
1.32 -
1.33 -help-samples::
1.34 - @echo
1.35 - @echo 'Preconfigured targets:'
1.36 -
1.37 -help-build::
1.38 - @echo
1.39 - @echo 'Build targets:'
1.40 -
1.41 -help-distrib::
1.42 - @echo
1.43 - @echo 'Distribution targets:'
1.44 -
1.45 -help-env::
1.46 - @echo
1.47 - @echo 'Environement variables (see docs/overview.txt):'
1.48 -
1.49 -help-tail::
1.50 - @echo
1.51 - @echo 'Execute "make" or "make all" to build all targets marked with [*]'
1.52 -
1.53 -# End help system
1.54 -
1.55 -help-build::
1.56 - @echo '* build - Build the toolchain'
1.57 - @echo ' clean - Remove generated files'
1.58 - @echo ' distclean - Remove generated files, configuration and build directories'
1.59 -
1.60 -include $(CT_TOP_DIR)/kconfig/Makefile
1.61 -include $(CT_TOP_DIR)/samples/Makefile
1.62 -include $(CT_TOP_DIR)/tools/Makefile
1.63 -include $(CT_TOP_DIR)/Makefile.steps
1.64 -
1.65 -help-distrib::
1.66 - @echo ' tarball - Build a tarball of the configured toolchain'
1.67 -
1.68 -help-env::
1.69 - @echo ' STOP - Stop the build just after this step'
1.70 - @echo ' RESTART - Restart the build just before this step'
1.71 -
1.72 -.config:
1.73 - @echo "You must run either one of \"make config\" or \"make menuconfig\" first"
1.74 - @false
1.75 -
1.76 -# Actual build
1.77 -build: .config
1.78 - @$(CT_TOP_DIR)/scripts/crosstool.sh
1.79 -
1.80 -.PHONY: tarball
1.81 -tarball:
1.82 - @$(CT_TOP_DIR)/scripts/tarball.sh
1.83 -
1.84 -.PHONY: distclean
1.85 -distclean:: clean
1.86 - @rm -f .config* ..config.tmp
1.87 - @rm -f log.*
1.88 - @[ ! -d "$(CT_TOP_DIR)/targets" ] || chmod -R u+w "$(CT_TOP_DIR)/targets"
1.89 - @rm -rf "$(CT_TOP_DIR)/targets"