Fix glibc and uClibc downloading and extracting.
Although we no longer need the kernel config file, we now need to specify the kernel source directory when installing headers.
Re-order components downloading to match build order.
Fix the saveSample.sh script in case the referenced files are the same as the destination files.
1 # Makefile for crosstool-NG.
2 # Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
5 export PROJECTVERSION=0.0.2-svn
7 # This should eventually be computed if compiling out-of-tree is implemented
8 export CT_TOP_DIR=$(shell pwd)
13 HOST_CC = gcc -funsigned-char
16 @echo 'Available make targets:'
19 include $(CT_TOP_DIR)/kconfig/Makefile
20 include $(CT_TOP_DIR)/samples/Makefile
23 @echo 'Build targets:'
24 @echo '* build - Build the toolchain'
25 @echo ' clean - Remove generated files'
26 @echo ' distclean - Remove generated files, configuration and build directories'
28 include $(CT_TOP_DIR)/tools/Makefile
31 @echo 'Execute "make" or "make all" to build all targets marked with [*]'
33 .config: $(shell find $(CT_TOP_DIR)/config -type f -name '*.in')
35 @# Because exiting menuconfig without saving is not an error to menuconfig
40 @$(CT_TOP_DIR)/scripts/crosstool.sh
44 @rm -f .config* ..config.tmp
45 @rm -rf "$(CT_TOP_DIR)/build"