Makefile
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue May 08 17:48:32 2007 +0000 (2007-05-08)
changeset 78 c3868084d81a
parent 63 89b41dbffe8d
child 85 ac2845835b13
permissions -rw-r--r--
Huge fixes to glibc build, so that we can build at least (and at last):
- use ports addon even when installing headers,
- use optimisation (-O) when installing headers, to avoid unnecessary warnings (thanks Robert P. J. DAY for pointing this out!),
- lowest kernel version to use is only X.Y.Z, not X.Y.Z.T,
- a bit of preparations for NPTL (RSN I hope),
- fix fixing the linker scripts (changing the backup file is kind of useless and stupid);

Shut uClibc finish step: there really is nothing to do;

Add a patch for glibc-2.3.6 weak aliases handling on some archs (ARM and ALPHA at least);

Did not catch the make errors: fixed the pattern matching in scripts/functions;

Introduce a new log level, ALL:
- send components' build messages there,
- DEBUG log level is destined only for crosstool-NG debug messages,
- migrate sub-actions to use appropriate log levels;

Update the armeb-unknown-linux-gnu sample:
- it builds!
- uses gcc-4.0.4 and glibc-2.3.6,
- updated to latest config options set.
     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 # The project version
     8 export PROJECTVERSION=0.0.2-svn
     9 
    10 # This should eventually be computed if compiling out-of-tree is implemented
    11 export CT_TOP_DIR=$(shell pwd)
    12 
    13 .PHONY: all
    14 all: _ct_build
    15 
    16 HOST_CC = gcc -funsigned-char
    17 
    18 help::
    19 	@echo  'Available make targets:'
    20 	@echo
    21 
    22 include $(CT_TOP_DIR)/kconfig/Makefile
    23 include $(CT_TOP_DIR)/samples/Makefile
    24 
    25 help::
    26 	@echo  'Build targets:'
    27 	@echo  '* build          - Build the toolchain'
    28 	@echo  '  clean          - Remove generated files'
    29 	@echo  '  distclean      - Remove generated files, configuration and build directories'
    30 
    31 include $(CT_TOP_DIR)/tools/Makefile
    32 
    33 help::
    34 	@echo  'Execute "make" or "make all" to build all targets marked with [*]'
    35 
    36 .config: $(shell find $(CT_TOP_DIR)/config -type f -name '*.in')
    37 	@make menuconfig
    38 	@# Because exiting menuconfig without saving is not an error to menuconfig
    39 	@test -f .config
    40 
    41 # Actual build
    42 _ct_build: .config
    43 	@$(CT_TOP_DIR)/scripts/crosstool.sh
    44 
    45 .PHONY: distclean
    46 distclean:: clean
    47 	@rm -f .config* ..config.tmp
    48 	@rm -rf "$(CT_TOP_DIR)/build"