Makefile
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 22 21:16:17 2007 +0000 (2007-05-22)
changeset 123 8de240c770dc
parent 97 63a30dd47eb8
child 129 ebdfd61687fb
permissions -rw-r--r--
Be verbose when making build system tools available, and when access is removed. Log this to DEBUG.
Remove last remnants of color scheme.
Small fixes to some comments.
     1 # Makefile for crosstool-NG.
     2 # Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
     3 
     4 # Don't print directory as we descend into them
     5 MAKEFLAGS += --no-print-directory
     6 
     7 export CT_TOP_DIR=$(shell pwd)
     8 
     9 # This is crosstool-ng version string
    10 export CT_VERSION=$(shell cat $(CT_TOP_DIR)/version)
    11 
    12 export CT_RESTART=$(RESTART)
    13 
    14 .PHONY: all
    15 all: build
    16 
    17 HOST_CC = gcc -funsigned-char
    18 
    19 help::
    20 	@echo  'Available make targets:'
    21 	@echo
    22 
    23 include $(CT_TOP_DIR)/kconfig/Makefile
    24 include $(CT_TOP_DIR)/samples/Makefile
    25 
    26 help::
    27 	@echo  'Build targets:'
    28 	@echo  '* build          - Build the toolchain'
    29 	@echo  '  tarball        - Build a tarball of the configured toolchain'
    30 	@echo  '  clean          - Remove generated files'
    31 	@echo  '  distclean      - Remove generated files, configuration and build directories'
    32 
    33 include $(CT_TOP_DIR)/tools/Makefile
    34 
    35 help::
    36 	@echo  'Execute "make" or "make all" to build all targets marked with [*]'
    37 	@echo  'Pass RESTART=<step> to restart a previously saved step (read doc first!)'
    38 
    39 .config: $(CONFIG_FILES) $(CT_TOP_DIR)/config/debug.in
    40 	@make oldconfig
    41 
    42 # Actual build
    43 build: .config
    44 	@$(CT_TOP_DIR)/scripts/crosstool.sh
    45 
    46 .PHONY: tarball
    47 tarball:
    48 	@$(CT_TOP_DIR)/scripts/tarball.sh
    49 
    50 .PHONY: distclean
    51 distclean:: clean
    52 	@rm -f .config* ..config.tmp
    53 	@rm -rf "$(CT_TOP_DIR)/targets"