Makefile
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
child 12 343721860361
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     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.1
     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: 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 #include $(CT_TOP_DIR)/samples/Makefile
    21 
    22 help::
    23 	@echo  'Build targets:'
    24 	@echo  '* build		  - Build the toolchain'
    25 	@echo  '  clean		  - Remove generated files'
    26 	@echo  '  distclean	  - Remove generated files and configuration'
    27 
    28 include $(CT_TOP_DIR)/tools/Makefile
    29 
    30 .config: config/*.in
    31 	@make menuconfig
    32 	@# Because exiting menuconfig without saving is not an error to menuconfig
    33 	@test -f .config
    34 
    35 # Actual build
    36 build: .config
    37 	@$(CT_TOP_DIR)/scripts/crosstool.sh
    38 
    39 .PHONY: clean
    40 clean::
    41 	@rm -f .crosstool.config
    42 
    43 .PHONY: distclean
    44 distclean:: clean
    45 	@rm -f .config* ..config.tmp
    46