Update version to -svn.
1 # Makefile for crosstool-NG.
2 # Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
4 # Don't print directory as we descend into them
5 MAKEFLAGS += --no-print-directory
7 export CT_TOP_DIR=$(shell pwd)
9 # This is crosstool-ng version string
10 export CT_VERSION=$(shell cat $(CT_TOP_DIR)/version)
15 HOST_CC = gcc -funsigned-char
18 @echo 'Available make targets:'
21 include $(CT_TOP_DIR)/kconfig/Makefile
22 include $(CT_TOP_DIR)/samples/Makefile
25 @echo 'Build targets:'
26 @echo '* build - Build the toolchain'
27 @echo ' tarball - Build a tarball of the configured toolchain'
28 @echo ' clean - Remove generated files'
29 @echo ' distclean - Remove generated files, configuration and build directories'
31 include $(CT_TOP_DIR)/tools/Makefile
34 @echo 'Execute "make" or "make all" to build all targets marked with [*]'
36 .config: $(shell find $(CT_TOP_DIR)/config -type f -name '*.in')
38 @# Because exiting menuconfig without saving is not an error to menuconfig
43 @$(CT_TOP_DIR)/scripts/crosstool.sh
47 @$(CT_TOP_DIR)/scripts/tarball.sh
51 @rm -f .config* ..config.tmp
52 @rm -rf "$(CT_TOP_DIR)/targets"