diff options
author | tschwinge <tschwinge> | 2008-05-30 00:45:36 +0000 |
---|---|---|
committer | tschwinge <tschwinge> | 2008-05-30 00:45:36 +0000 |
commit | 082cc039a73115e6979da336e2458a69feef8984 (patch) | |
tree | 2ae914d424341c2603f28a6c0f679c96451e03f3 /Makefoo.am | |
parent | fdc0b89fda9cb61ea651ca3e480cd63983a5e7d3 (diff) |
2008-05-29 Thomas Schwinge <tschwinge@gnu.org>
* configure.ac: Include `newlib/headers.m4' and
`libc-parts/headers.m4'.
(ccheaders, SYSINCLUDES): Remove.
(USER_CPPFLAGS, USER_LDFLAGS, KERNEL_CPPFLAGS): Adapt to building with
a cross compiler.
(USER_LDADD): Remove.
(CHECK_CPPFLAGS): Define `_GNU_SOURCE' and `_ENABLE_TESTS'.
(CHECK_CFLAGS): New.
(HAVE_CROSS, TRAVERSE_HIERARCHY): New conditionals.
(--enable-tests, ENABLE_TESTS): New command line option with
conditional.
(libc.a.in): Instantiate as `sysroot/lib/libc.a'.
* libc.a.in: Rewritten to no longer specify file paths, but instead
linker switches.
* Makefile.am (SUBDIRS): Only recurse into if [TRAVERSE_HIERARCHY].
(libc-stmp): Only consider if [HAVE_CROSS].
[! HAVE_CROSS && ! ENABLE_TESTS]: Build `cross-compiler'.
(cross-compiler): New target.
Include `Makefoo.am', `binutils/Makefrag.am' and `gcc/Makefrag.am'.
* Makefoo.am: New file.
* binutils: New directory.
* gcc: Likewise.
* README: Update.
Diffstat (limited to 'Makefoo.am')
-rw-r--r-- | Makefoo.am | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Makefoo.am b/Makefoo.am new file mode 100644 index 0000000..207bf86 --- /dev/null +++ b/Makefoo.am @@ -0,0 +1,47 @@ +# Copyright (C) 2003, 2005, 2008 Free Software Foundation, Inc. +# +# This file is part of the GNU Hurd. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +# Have the built cross tools appear in `$PATH'. TODO. Is that how it is to be +# done properly? TODO. Would $(PATH_SEPARATOR) always be available already? +PATH_orig := $(shell printenv PATH) +PATH = $(abspath bin)$(PATH_SEPARATOR)$(PATH_orig) + +SYSROOT := $(abspath sysroot) + +# Don't use in-place evaluation, as the referenced values may not yet be +# available. +abs_top_builddir = $(abspath $(top_builddir)) +abs_srcdir = $(abspath $(srcdir)) +abs_top_srcdir = $(abspath $(top_srcdir)) + + +# TODO. ``build-aux'' hard-coded. +fix_config_guess_and_sub = \ + { find ./ -name config.guess \ + || echo CHOKE/ME; \ + } | \ + while read f; do \ + ln -vsf '$(abs_top_srcdir)'/build-aux/config.guess "$$f" \ + || exit "$$?"; \ + done && \ + { find ./ -name config.sub \ + || echo CHOKE/ME; \ + } | \ + while read f; do \ + ln -vsf '$(abs_top_srcdir)'/build-aux/config.sub "$$f" \ + || exit "$$?"; \ + done |