2007-02-24 11:00:05 +00:00
|
|
|
# Makefile for crosstool-NG.
|
|
|
|
# Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
|
|
|
|
|
2007-05-07 16:10:17 +00:00
|
|
|
# Don't print directory as we descend into them
|
|
|
|
MAKEFLAGS += --no-print-directory
|
|
|
|
|
2007-02-24 11:00:05 +00:00
|
|
|
export CT_TOP_DIR=$(shell pwd)
|
|
|
|
|
2007-05-13 19:03:49 +00:00
|
|
|
# This is crosstool-ng version string
|
|
|
|
export CT_VERSION=$(shell cat $(CT_TOP_DIR)/version)
|
|
|
|
|
2007-02-24 11:00:05 +00:00
|
|
|
.PHONY: all
|
2007-05-10 21:33:35 +00:00
|
|
|
all: build
|
2007-02-24 11:00:05 +00:00
|
|
|
|
|
|
|
HOST_CC = gcc -funsigned-char
|
|
|
|
|
|
|
|
help::
|
2007-05-07 09:04:02 +00:00
|
|
|
@echo 'Available make targets:'
|
2007-02-24 11:00:05 +00:00
|
|
|
@echo
|
|
|
|
|
|
|
|
include $(CT_TOP_DIR)/kconfig/Makefile
|
2007-05-07 09:04:02 +00:00
|
|
|
include $(CT_TOP_DIR)/samples/Makefile
|
2007-02-24 11:00:05 +00:00
|
|
|
|
|
|
|
help::
|
|
|
|
@echo 'Build targets:'
|
2007-03-12 18:59:31 +00:00
|
|
|
@echo '* build - Build the toolchain'
|
2007-05-12 09:54:29 +00:00
|
|
|
@echo ' tarball - Build a tarball of the configured toolchain'
|
2007-03-12 18:59:31 +00:00
|
|
|
@echo ' clean - Remove generated files'
|
2007-04-10 16:17:39 +00:00
|
|
|
@echo ' distclean - Remove generated files, configuration and build directories'
|
2007-02-24 11:00:05 +00:00
|
|
|
|
|
|
|
include $(CT_TOP_DIR)/tools/Makefile
|
|
|
|
|
2007-05-07 09:04:02 +00:00
|
|
|
help::
|
|
|
|
@echo 'Execute "make" or "make all" to build all targets marked with [*]'
|
|
|
|
|
2007-05-17 22:10:48 +00:00
|
|
|
.config: $(CONFIG_FILES) $(CT_TOP_DIR)/config/debug.in
|
2007-05-17 16:22:51 +00:00
|
|
|
@make oldconfig
|
2007-02-24 11:00:05 +00:00
|
|
|
|
|
|
|
# Actual build
|
2007-05-10 21:33:35 +00:00
|
|
|
build: .config
|
2007-02-24 11:00:05 +00:00
|
|
|
@$(CT_TOP_DIR)/scripts/crosstool.sh
|
|
|
|
|
2007-05-12 09:54:29 +00:00
|
|
|
.PHONY: tarball
|
|
|
|
tarball:
|
|
|
|
@$(CT_TOP_DIR)/scripts/tarball.sh
|
|
|
|
|
2007-02-24 11:00:05 +00:00
|
|
|
.PHONY: distclean
|
|
|
|
distclean:: clean
|
|
|
|
@rm -f .config* ..config.tmp
|
2007-05-10 21:33:35 +00:00
|
|
|
@rm -rf "$(CT_TOP_DIR)/targets"
|