summaryrefslogtreecommitdiff
path: root/Makefile.in
AgeCommit message (Collapse)AuthorFilesLines
2018-04-07WIP: autotoolizationAlexey Neyman1-354/+0
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-04-07Get rid of sub{lib,doc}dirAlexey Neyman1-13/+3
They don't make sense - using same ct-ng won't work with different versions, so they cannot coexist in the same prefix. Also localize other configure variables so that their usage is easier to track. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-03-29Makefile.in: check for configure being up to dateChris Packham1-1/+5
Fixes #934 Add a rule that errors out with a message if configure.ac is newer than configure. This should catch times where someone is building from the repo without running bootstrap. Signed-off-by: Chris Packham <judge.packham@gmail.com>
2017-11-20showConfig.sh no longer has anything substitutedAlexey Neyman1-3/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-09-18Merge pull request #784 from bmwiedemann/dateAlexey Neyman1-1/+1
Allow for reproducible builds
2017-07-21use gzip -nBernhard M. Wiedemann1-1/+1
to not record timestamps in .gz file headers to make build reproducible
2017-07-17Fix new framework for running from installed pathAlexey Neyman1-1/+1
Fixes #777 Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08Fix the references to old config variablesAlexey Neyman1-1/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-06-08Restore exec permission on ct-ng itselfAlexey Neyman1-0/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-06-08Fix debuild warnings/errorsAlexey Neyman1-3/+2
- Update .gitignore, do not place .gitignore into directories installed in bulk - Remove executable permissions and shebangs from the scripts that are supposed to be invoked only via ct-ng frontent; prepend them with $(bash). Despite what showSamples.sh said, it already has some bashisms. - Remove --with autotools-dev and override dh_update_autotools_config to avoid having config.{sub,guess} clobbered with older versions - Install bash completion where Debian (now) expects it - Update man page to use .\" as the comment delimiter, instead of undefined macro (."); also, minor text edits. - Install kconfig.mk without execute permission. - Remove shell wrappers from 170-localedef-fix-trampoline.patch, we do not use that for applying patches - Revoke execute permissions on 210-expat.sh - Get flags from dpkg-buildflags if available Signed-off-by: Alexey Neyman <stilor@att.net>
2017-04-29Fix make clean/mrproperAlexey Neyman1-4/+4
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-04-29Fix for missing DESTDIRAlexey Neyman1-1/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-04-23Avoid installing configure.in.inAlexey Neyman1-2/+2
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-04-22Generate config/configure.in directlyAlexey Neyman1-21/+1
from configure rather than substitute it from Makefile. Eventually we might want to get rid of configure.in completely, doing on-the-fly checks at the time of `ct-ng build`, but that is left for another day. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-04-22Allow 'make V=1' to see the commands.Alexey Neyman1-76/+52
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-21Add a release creation scriptAlexey Neyman1-2/+2
One TBD left is the signing of the tarballs. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-21Move some scripts to a new directory, maintainerAlexey Neyman1-4/+3
... which are not of much interest to the end user. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-21Hot fix for 'make install'Alexey Neyman1-1/+11
... while I continue to work on release script. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-02Use configure to find the processor countDan McGregor1-0/+2
configure.ac now finds how to count the CPUs in a system. Currently the getconf method and sysctl methods are supported. Adding more is easy enough. Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
2017-02-27Require GNU sedAlexey Neyman1-29/+6
After much struggling with macos (BSD) sed and even getting everything work in crosstool-ng itself, I had to abandon that because some components rely on GNU syntax. Specifically, GNU libc uses '/.../{H;g}' (note absense of the separator after 'g'). So, revert the -r/-E detection and check for sed's being of GNU origin. MacOS people, sorry, but you'd have to install GNU sed. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-27Revert "Determine whether -E/-r option selects extended regexp"Alexey Neyman1-4/+1
This reverts commit 7bcf18bfab84374d3305c7a088f95ac1219ddf93.
2017-02-14Determine whether -E/-r option selects extended regexpAlexey Neyman1-1/+4
... and then use the right option. See the note in scripts/functions on where we should use ${foo} and where just 'foo'; this boils down to whether we can expect the build tools override to be in effect (e.g. in the actual build scripts) or not (i.e. outside of scripts/build). While running in scripts/functions, or in scripts/crosstool-NG.sh the build tools override directory (.build/tools/bin) may have not been set up (yet, or at all). Also, modify the installed scripts (populate, xldd) accordingly. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-13Detect both wget/curl and allow user to select the agentAlexey Neyman1-0/+7
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-28Rework configure logic wrt GNU autotoolsAlexey Neyman1-2/+2
Rather than requiring them of a certain version, detect if they are present (and have sufficient version) and select an appropriate companion tool otherwise. The reason is that, for example, most recent gettext requires automake 1.15, but the newest available CentOS has 1.13. Hence, the option to "upgrade your system" does not apply, and the warning comment above the companion tools is rather scary. With this approach, it will work out of the box - either by using the host's tools, or by building them as needed. Note that the user can still change the setting in the config. While there, propagate the new version checking macro to awk/bash/host binutils, and switch from --with-foo=xxx to officially blessed FOO=xxx: the latter does not require checking for bogus values (i.e., --with-foo, --without-foo) and AC_PROG_* macros recognize the corresponding settings without further modifications. For now, I kept --with-foo=, if only to complain and steer people to the new way. To be cleaned up after a release. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-20Install canadian crosses into a separate subdir.Alexey Neyman1-3/+3
Makes them sorted out by host, and removes the need for similar hack in samples.mk. Change how canadian crosses are named: using `=' character resulted in Glibc build failure. Move loading config into a common function, CT_LoadConfig. Signed-off-by: Alexey Neyman <stilor@att.net>
2017-01-13Add a check for gperf function signature.Alexey Neyman1-0/+1
Loosely based on: https://github.com/systemd/systemd/commit/c9f7b4d356a453a01aa77a6bb74ca7ef49732c08 Signed-off-by: Alexey Neyman <stilor@att.net>
2016-09-07samples: install "broken" fileYogesh Sharma1-0/+3
Currently the broken file is not installed when doing an non-local install. This causes ct-ng list-samples to not notify the user that a sample is broken. This commit triggers the creation of the broken file as needed. Signed-off-by: Yogesh Sharma <ysharm01@harris.com>
2015-11-19Makefile.in: Fix uninstall targetBryan Hundven1-1/+1
`make uninstall` is ran against `$(TARGETS)`, which includes `lib-kconfig`. `lib-kconfig` is installed as a part of the `lib` target, so during uninstall, removing `lib` is enough to also remove `lib-kconfig`. Filter out `lib-kconfig` during `real-uninstall`. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-13file modes: Set files to be non-executableBryan Hundven1-0/+0
I was going to start doing some autoconf work, and noticed that configure.in was executable. Then I noticed Makefile.in was executable. o.O So, I ran ```find . -type f -executable``` and found a bunch of files that shouldn't be set executable. This commit makes them normal files again. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2015-11-13Cygwin: Link to libintl for gettextRay Donnelly1-0/+1
Signed-off-by: Ray Donnelly <mingw.android@gmail.com>
2015-10-03Revert the automated build optionJean-Marie Lemetayer1-1/+0
This reverts commits: * d6413fe29fbdcd72a04b3d5820ba2e134dbaf558. * 4f266e1a8c78cec2c425b17784576db56125bbbd. Signed-off-by: Jean-Marie Lemetayer <jeanmarie.lemetayer@gmail.com>
2015-09-29configure: Add automated build optionBryan Hundven1-0/+1
This commit introduces a configure time option to let the build know that this is going to be an automated build. This forces the build to disable the progress bar, log tool warnings, and force the log level to debug. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
2013-09-14configure: Add --with-gperf optionRay Donnelly1-0/+3
On OS X, Apple supply an old gperf (3.0.3) with xcode and xcode commandline tools which causes build failures: ./zconf.hash.c:183:17: error: expected expression {offsetof(struct kconf_id_strings_t, kconf_id_strings_str2), .. upgrading to gperf 3.0.4 was sufficient to fix this, so this option allows the user to specify the gperf program that they wish to use. To install gperf 3.0.4 from homebrew, I did: brew tap homebrew/dupes brew install homebrew/dupes/gperf .. then passed --with-gperf=$BREWFIX/Cellar/gperf/3.0.4/bin/gperf to configure Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Message-Id: <CAOYw7dtCmcJ9WiqmQ81MmZeRPcV-tDOqe9=kRDW4uQGuZNd2Ng@mail.gmail.com> Patchwork-Id: 274892
2013-07-10Allow reordered MAKEFLAGSRay Donnelly1-0/+5
-R and -r (-Rr) can be reordered to -r and -R (-rR). This happens with MSYS1/2 gnu-make and mingw32-make, and triggers "Recursion detected, bailing out..." Signed-off-by: Ray Donnelly <mingw.android@gmail.com> Message-Id: <CAOYw7dsdsg-XaDOwwEWJeUUSo2Vu_UD5GtkSgNTu59ai7yx0cQ@mail.gmail.com> Patchwork-Id: 258027
2013-02-25Makefile: fix parrallel (-j) installsYann E. MORIN"1-4/+3
Currently, we would remove previously installed patches before installing the new ones. Unfortunately, that does not play well with heavily parallel installs. Now, we consider it is the responsibility of the user to first uninstall any previous version before installing a new one. Reported-by: Markos Chandras <markos.chandras@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-11-06Makefile.in: Use only standard options compatible with BSD installTitus von Boxberg1-1/+2
Don't use options specific to FSF's coreutils install. Signed-off-by: Titus von Boxberg <titus@v9g.de> Message-Id: <51587db99510a9ec08f8.1352226968@tschetwerikow.boxberg.lan> Patchwork-Id: 197532
2012-07-14configure: check for GNU awk, not any awkYann E. MORIN"1-0/+4
Building glibc requires GNU awk, not any other. Reported-by: Han Sooloo <hansooloo@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
2012-01-16configure: also detect plain grepYann E. MORIN"1-1/+1
We need just 'grep', and we need to be able to call it with 'grep -E'. Check for 'grep', and bailout if egrep != grep -E Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2012-01-16scripts: fix tools overrideYann E. MORIN"1-22/+35
The tools found by the new autostuff configure can contain arguments, for example: grep -E This needs separating the paths set for the Makfile from the paths set for the scripts. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2012-01-14kconfig: install compiled frontendsYann E. MORIN"1-28/+56
The kconfig frontends are currently instaleld as source files. This is a remnant of the early times, when I wanted a single installation of crosstool-NG to be shared across multiple machines, potentially of different architectures. This does not really make sense, and it's been a long time since it was las tpossible in practice. So, just build the kconfig frontends at make-time, and install them as we do for all other crosstool-NG dependent files. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-11-07configure: use autoconf to generate configureYann E. MORIN"1-64/+66
Create configure.ac, an autoconf script to generate ./configure This will be needed by a subsequent patch to properly handle --build and --host, and more tests, when the kconfig stuff will be installed pre-built. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-09-28Makefile: use phony targetsMichael Hope1-0/+2
Add 'build', 'build-*', and 'install' as phony targets to the top level Makefile. I tend to do everything in tree with the build in a directory called 'build'. This interfered with the target 'build', making it think the target was up to date, and stopping scripts/crosstool-NG.sh from being regenerated. Added 'install' as I often set the prefix to $PWD/install. Signed-off-by: Michael Hope <michael.hope@linaro.org>
2011-08-22configure: use def_bool for available featuresYann E. MORIN"1-2/+3
It's one line shorter, and easier to read. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-22configure: require libtoolize, create wrapper to itTitus von Boxberg"1-10/+12
libtoolize must be checked_for and there needs to be a wrapper that points to GNU libtoolize since that may be installed as glibtoolize. This fixes a problem with building Cloog/PPL that was Reported-by: "Pierrick Brossin" <pierrick@bs-network.net> Signed-off-by: "Titus von Boxberg" <titus@v9g.de>
2011-08-21configure: recognise and handle --program-transform-nameYann E. MORIN"1-2/+4
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-19configure: recognise and handle --program-suffixYann E. MORIN"1-2/+7
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-17configure: handle --program-prefixYann E. MORIN"1-11/+21
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-08-19Makefile: introduce PROG_NAME to contain the 'ct-ng' executable nameYann E. MORIN"1-18/+20
With the upcomming --program-{prefix,suffix,transform-name} options, we'll have a need to centralise the actual executable name, that is now no longer be a constant. Rather than spread the prefix/suffix through-out the code, just centralise the name setting in one place. Beside, transform-name would not be possible without setting the name at a single location. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-07-31Makefile: fix samples installYann E. MORIN"1-4/+11
Installing samples was not installing the C library config file and the reported.by description. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
2011-06-04Makefile: make it work for auto-completionYann E. MORIN"1-0/+11
The latest autocompletion calls 'make -qp' to get all the possible targets. This currently fails, as our makefile is calling itself again and again ad-libitum. Fix it by detecting that the recursion level is not 0, and bail out if so. It works so well that it has the side effect of showing only the 'public' target, and hide our internal ones! :-) Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>