Makefile
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 06 21:47:29 2007 +0000 (2007-05-06)
changeset 62 651912c5477c
parent 33 24f1e56e89a0
child 63 89b41dbffe8d
permissions -rw-r--r--
Linux kernel headers install does not need the kernel to be configured. Dropping this unneccessary step.
     1 # Makefile for crosstool-NG.
     2 # Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
     3 
     4 # The project version
     5 export PROJECTVERSION=0.0.2-svn
     6 
     7 # This should eventually be computed if compiling out-of-tree is implemented
     8 export CT_TOP_DIR=$(shell pwd)
     9 
    10 .PHONY: all
    11 all: _ct_build
    12 
    13 HOST_CC = gcc -funsigned-char
    14 
    15 help::
    16 	@echo  'Available make targets (*: default target):'
    17 	@echo
    18 
    19 include $(CT_TOP_DIR)/kconfig/Makefile
    20 
    21 help::
    22 	@echo  'Build targets:'
    23 	@echo  '* build          - Build the toolchain'
    24 	@echo  '  clean          - Remove generated files'
    25 	@echo  '  distclean      - Remove generated files, configuration and build directories'
    26 
    27 include $(CT_TOP_DIR)/tools/Makefile
    28 
    29 .config: $(shell find $(CT_TOP_DIR)/config -type f -name '*.in')
    30 	@make menuconfig
    31 	@# Because exiting menuconfig without saving is not an error to menuconfig
    32 	@test -f .config
    33 
    34 # Actual build
    35 _ct_build: .config
    36 	@$(CT_TOP_DIR)/scripts/crosstool.sh
    37 
    38 .PHONY: distclean
    39 distclean:: clean
    40 	@rm -f .config* ..config.tmp
    41 	@rm -rf "$(CT_TOP_DIR)/build"