summaryrefslogtreecommitdiff
path: root/default.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix VMS implicit rules and UNIX paths.John Malmberg2014-10-201-0/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes VMS implicit rules and UNIX style pathname handling. It also fixes some of the VMS style pathname handling, more work there will be needed later. TODO: There are other case insensitive platforms besides VMS. We need to find out why there is extra VMS code for this. This indicates either the extra VMS code is not needed, or the case insensitive support may not be complete on the other case insensitive platforms. * default.c: Add missing definitions to default_suffix_rules[] and default_variables[]. TODO: As it is important that VMS DCL mode definitions must always be a superset of UNIX definitions, a better way of maintaining the VMS DCL mode definitions should be devised. * dir.c (downcase_inplace): Add a reentrant downcase() routine. Add future support for VMS 8.2+ _USE_STD_STAT macro which will disable a lot of VMS specific code from compiling. (dir_file_exists_p): vmsify filename only if directory name has VMS directory delimiters. (file_exists_p): Handle both VMS and UNIX directories. (file_impossible): Handle both VMS and Unix directories. Track whether a VMS format path is needed for the return value. * file.c (lookup_file): Check if vmsify is needed; handle UNIX paths. * implicit.c (pattern_search): Enable UNIX paths. * read.c (parse_file_seq): Enable UNIX paths. * remake.c (f_mtime): Fix gpath_search call for VMS paths. * rule.c (count_implicit_rule): Enable UNIX paths, Fix VMS paths. * vpath.c (selective_vpath_search): Enable UNIX paths.
* Fix and enhance VMS library support.Hartmut Becker2014-09-071-11/+50
| | | | | | | | * ar.c: fix VMS library search for members, which do not have suffixes, aka filename extensions. * arscan.c: fix time conversion and library callback routines. * default.c: more suffixes and automatically create the VMS library if it doesn't exists.
* Enhance/fix VMS setting of program name, MAKE/MAKE_COMMAND variablesHartmut Becker2014-09-071-2/+1
| | | | | | | | * default.c, main.c, makeint.h, vmsfunctions.c: prefix argv[0] with "mcr " for MAKE/MAKE_COMMAND and set the program name to the image filename (without the .exe;version) * vmsfunctions.c: remove obsolete code * vmsify: use xmalloc
* Enhance/fix VMS multi-line support.Hartmut Becker2014-09-071-1/+1
| | | | | | | | * job.c: split the command line at a newline. * default.c, vmsjobs.c: change ECHO variable to a pseudo builtin, which ensures that the VMS/DCL ECHO ("write sys$output") is used and is correctly quoted. * vmsjobs.c: remove unused builtin 'rm'.
* * maintMakefile, various: Improve constification of the codebase.Paul Smith2014-07-071-5/+5
|
* Fix .LIBPATTERNS for MS-Windows builds.Pavel Fedin2014-01-111-0/+2
| | | | | | | default.c (.LIBPATTERNS) [__CYGWIN__ || WINDOWS32]: Provide library patterns for MS-Windows. Copyright-paperwork-exempt: yes
* [Bug #39310] Parse simple pattern prereqs for globbing.Paul Smith2013-07-221-3/+2
| | | | | | | We tried to get some efficiency by avoiding a parse_file_seq() for simple pattern prerequisites, but this also means no wildcard expansion was happening, so add it back. Add regression tests for wildcards in target and prerequisite lists.
* Create a character map to use for locating stop-points in strings.Paul Smith2013-06-221-1/+1
| | | | | | | | | In various places we were passing flags and characters to compare, then using complex conditionals to see where to stop in string searches. Performance numbers reveal that we were spending as much as 23% of our processing time in these functions, most of it in the comparison lines. Instead create a character map and use a single bitwise comparison to determine if this is any one of the stop characters.
* Update source file format: remove TABs, use GNU coding styles.Paul Smith2013-05-171-2/+2
|
* Update copyright for changes in 2013.Paul Smith2013-05-171-1/+1
|
* [Savannah #20501] Handle adding -r/-R to MAKEFLAGS in the makefile.Paul Smith2013-05-131-9/+25
| | | | | | | If -R is set in the makefile and not the command line, then go through all the default variables and undefine them. If -r is set in the makefile and not in the command line, then remove all .SUFFIX prefixes (unless the user set it) and SUFFIX variable setting. In -p mode don't print builtins.
* Add a new variable: GNUMAKEFLAGSPaul Smith2013-05-131-0/+2
| | | | | | | This allows you to write portable makefiles that set GNU make-specific command line options in the environment or makefile: add them to GNUMAKEFLAGS instead of MAKEFLAGS and they will be seen by GNU make but ignored by other implementations of make.
* Rename the make.h file to makeint.h for internal use only.Paul Smith2013-01-201-1/+1
|
* Savannah bug #37179: Use alternate shared library syntax for MacOS.Paul Smith2012-09-091-4/+4
|
* Simplify copyrights using ranges of years.Paul Smith2012-03-051-3/+1
| | | | | The new GNU Maintainer's Manual allows the use of year ranges in certain situations; take advantage of this simplification.
* Convert all "`'" quotes to "''" per new GNU Coding Standard guidelines.Paul Smith2012-03-041-6/+6
| | | | Fixes Savannah bug #34530.
* Update copyright notices.Paul Smith2012-01-161-3/+3
|
* Improve backslash/newline handling to adhere to POSIX requirements.Paul Smith2010-11-061-31/+32
|
* Update copyrights for 2010.Paul Smith2010-07-131-2/+2
|
* Update copyright years.Paul Smith2009-10-251-2/+2
|
* Various simple code cleanups.Paul Smith2009-10-251-2/+2
|
* - Rework secondary expansion so we only defer it if there's a possibilityPaul Smith2009-09-241-2/+3
| | | | | | it might be needed: for most situations we parse prereqs immediately as we used to. Reduces memory usage. - Fixes Savannah bug #18622.
* - Add xcalloc() and call itPaul Smith2009-09-161-2/+1
| | | | | | | | | - Fix memory errors found by valgrind - Remove multi_glob() and empower parse_file_seq() to do its job: the goal here is to remove the confusing reverse/re-reverse we do on the file lists: needed for future fixes. - Add a prefix arg to parse_file_seq() - Make concat() variadic so it can take arbitrary #'s of strings
* - Fix Savannah bug 17825Paul Smith2009-06-131-1/+1
| | | | - Fix Savannah bug 21231
* * Update to GPLv3Paul Smith2007-07-041-4/+4
| | | | | * Update copyright to 2007 * Fix download URL for translation files (thanks to Thiemo Seufer)
* Fix some documentation gitches.Paul Smith2007-05-111-5/+18
| | | | | | | Fix an uninitialized variable. Add builtin rules for Objective C. Add a new debug line that shows where the commands that are about to be run were defined.
* This is a major update, which switches virtually every allocated-but-not-freedPaul Smith2007-03-201-5/+5
| | | | | | | | | | | | | | | string into the strcache. As a side-effect, many more structure members and function arguments can/should be declared const. As mentioned in the changelog, unfortunately measurement shows that this change does not yet reduce memory. The problem is with secondary expansion: because of this we store all the prerequisites in the string cache twice. First we store the prerequisite string after initial expansion but before secondary expansion, then we store each individual file after secondary expansion and expand_deps(). I plan to change expand_deps() to be callable in either context (eval or snap_deps) then have non-second-expansion targets call expand_deps() during eval, so that we only need to store that dependency list once.
* Fix from Eli for incorrect value of $(MAKE) on Cygwin.Paul Smith2006-11-181-7/+7
| | | | | | | | | | | | | | | | A few changes from char* to void* where appropriate, and removing of unnecessary casts. Much more work on const-ifying the codebase. This round involves some code changes to make it correct. NOTE!! There will almost certainly be problems on the non-POSIX ports that will need to be addressed after the const changes are finished: they will need to be const-ified properly and there may need to be some changes to allocate memory, etc. as well. The next (last?) big push for this, still to come, is const-ifying the filenames in struct file, struct dep, etc. This will allow us to store file names in the string cache and finally resolve Savannah bug #15182 (make uses too much memory), among other advantages.
* Another round of cleanups:Paul Smith2006-04-091-1/+1
| | | | | | | | - Add more warnings. - Rename variables that mask out-scope vars with the same name. - Remove all casts of return values from xmalloc, xrealloc, and alloca. - Remove casts of the first argument to xrealloc. - Convert all bcopy/bzero/bcmp invocations to use memcp/memmove/memset/memcmp.
* Last of the copyright updates.Paul Smith2006-02-111-1/+2
|
* Update copyright and license notices on all files.Paul Smith2006-02-111-14/+11
| | | | Added new file strcache.c to various non-UNIX makefiles and build scripts.
* Add a new variable: MAKE_RESTARTS, to count how many times make has re-exec'd.Paul Smith2005-06-251-1/+2
| | | | When rebuilding makefiles, unset -B if MAKE_RESTARTS is >0.
* Various enhancementsPaul Smith2004-05-161-1/+5
| | | | | | | - OS/2 Patches - OpenVMS updates - Sanitize the handling of -include/sinclude with and without -k - Fix the setting of $< for order-only rules.
* - Fix bug #1405: allow multiple pattern-specific variables to match a target.Paul Smith2003-05-021-2/+2
| | | | | - Fix some uncleanliness about the implementation of patterns-specific vars. - Some enhancements to the OS/2 port.
* Add support for OS/2, contributed by Andreas Buening <andreas.buening@nexgo.de>Paul Smith2003-03-241-2/+8
| | | | Also a small patch from Hartmut Becker <Hartmut.Becker@compaq.com> for VMS.
* Convert the source code to use ANSI C style function definitions andPaul Smith2002-10-141-4/+4
| | | | | | | | enable the automake ansi2knr capability. Right now this doesn't quite build using a K&R compiler because of a problem with the loadavg test program, but the rest of the code works. I'm asking the automake list about this problem.
* * Ignore attempt to change a file into itself.Paul Smith2000-03-261-3/+3
| | | | | | * Define COFLAGS to avoid unknown variable warning. * Fix some usec problems on UnixWare. * Don't remove .INTERMEDIATE targets specified on the command line.
* * Updates for VMS, Windows, and DOS ports.Paul Smith2000-02-051-0/+4
| | | | * Clean up some warnings.
* * Merge VMS patches by Hartmut Becker.Paul Smith2000-01-221-9/+74
|
* * Fix PR/1394.Paul Smith1999-10-151-2/+1
| | | | | * Apply changes from Paul Eggert. * Many other cleanups (index/rindex --> strchr/strrchr, etc.)
* * Installed new versions of GLIBC glob library.Paul Smith1999-07-221-10/+10
| | | | | | * Installed Tim Magill's "graph pruning" performance enhancement. * Update version to 3.77.90 for the release. * Require automake 1.4.
* * Added -R / --no-builtin-variables flag.Paul Smith1999-07-081-0/+3
|
* * Update FSF address info in copyright notices.Paul Smith1999-03-051-1/+2
| | | | | | | | * Update maintainers build process; remove GNUmakefile. Require builders to run automake && autoreconf by hand. * Use AC_SUBST_FILE to get the maintMakefile included, rather than GNU make's include directive, which conflicts with automake 1.4's include directive.
* * New feature: .LIBPATTERNS controls the way -lfoo dependencies are expanded.Paul Smith1999-02-221-0/+10
| | | | | | | | * A few tweaks to the system glob test, after trying it on a system where it's true. * Installed patches to archive handling for AIX 4.3 big archives. * Fix a memory stomp in target-specific variables. * Fix a memory leak in foreach functions.
* Checkpoint changes. Bug fixes, mostly.Paul Smith1998-10-031-1/+1
|
* GNU make release 3.77.Paul Smith1998-07-301-1/+9
|
* Tue Mar 19 20:21:34 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>Roland McGrath1996-03-201-3/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merged VMS port from Klaus Kaempf <kkaempf@didymus.rmi.de>. * make.h (PARAMS): New macro. * config.h-vms: New file. * makefile.com: New file. * makefile.vms: New file. * readme.vms: New file. * vmsdir.h: New file. * vmsfunctions.c: New file. * vmsify.c: New file. * file.h: Renamed to filedef.h to avoid conflict with VMS system hdr. * ar.c: Added prototypes and changes for VMS. * commands.c: Likewise. * commands.h: Likewise. * default.c: Likewise. * dep.h: Likewise. * dir.c: Likewise. * expand.c: Likewise. * file.c: Likewise. * function.c: Likewise. * implicit.c: Likewise. * job.c: Likewise. * job.h: Likewise. * main.c: Likewise. * make.h: Likewise. * misc.c: Likewise. * read.c: Likewise. * remake.c: Likewise. * remote-stub.c: Likewise. * rule.c: Likewise. * rule.h: Likewise. * variable.c: Likewise. * variable.h: Likewise. * vpath.c: Likewise. * compatMakefile (srcs): Rename file.h to filedef.h.
* Wed Feb 28 03:56:20 1996 Roland McGrath <roland@charlie-brown.gnu.ai.mit.edu>Roland McGrath1996-02-291-5/+5
| | | | | * default.c (default_terminal_rules): Remove + prefix from RCS cmds. (default_variables): Put + prefix in $(CHECKOUT,v) value instead.
* Remove all [M_XENIX] code.Roland McGrath1995-12-121-19/+3
|
* (default_variables) [__hpux]: Remove special definition of ARFLAGS.Roland McGrath1995-01-111-7/+1
| | | | | Existence of the `f' flag is not consistent across HPUX versions; and one might be using GNU ar anyway.