No description
Find a file
Hartmut Becker 7e51810bb5 Enhance/fix VMS build environment
* config.h-vms.template: make sure the CRTL version is known
* makefile.com: always compile/link the guile module, remove VAXCRTL
parameter, new LIST parameter
* makefile.vms: always compile/link the guile module, use more
complete dependencies
* prepare_vms.com: helper to create a VMS config file when building
from a snapshot of the repository
2014-09-07 17:13:56 -04:00
config * configure.ac, maintMakefile, w32/Makefile.am: Fix autotools issues. 2014-09-07 16:59:37 -04:00
doc [SV 41983] Support omitting the text argument to $(file ...) 2014-07-07 01:59:03 -04:00
glob * glob.c (glob) [SV 18123]: Cherry-pick glibc fix 2013-10-20 13:18:50 -04:00
po Convert to auto-generated ChangeLog files. 2013-10-13 16:48:22 -04:00
tests * read.c (eval): [SV 41677] Correct test for TAB vs. 8 spaces. 2014-07-07 03:43:57 -04:00
w32 * configure.ac, maintMakefile, w32/Makefile.am: Fix autotools issues. 2014-09-07 16:59:37 -04:00
.gitignore * configure.ac, maintMakefile, w32/Makefile.am: Fix autotools issues. 2014-09-07 16:59:37 -04:00
.purify * Fix memory leaks, fd leaks, and some long-standing bugs recognizing when 1999-07-20 22:34:41 +00:00
acinclude.m4 Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
alloca.c Convert all "`'" quotes to "''" per new GNU Coding Standard guidelines. 2012-03-04 00:24:20 +00:00
amiga.c [SV 40361] Don't use vsnprintf(), which is an ISO C99 function. 2013-11-23 22:23:52 -05:00
amiga.h Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
ar.c [SV 40361] Don't use vsnprintf(), which is an ISO C99 function. 2013-11-23 22:23:52 -05:00
arscan.c * arscan.c [ANDROID]: Android has no ar.h but supports archives. 2014-07-07 03:56:17 -04:00
AUTHORS Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
build.template [SV 40254] Modify build.sh to work properly with Guile support. 2013-10-19 12:24:14 -04:00
build_w32.bat Fix the MS-Windows build: now guile.c must always be compiled in. 2013-10-23 19:28:38 +03:00
ChangeLog.1 [SV 39709] Fix some typos. 2013-10-09 01:53:55 -04:00
ChangeLog.2 cosmetics: fix few innocuous typos 2013-05-05 20:50:37 -04:00
ChangeLog.3 Convert to auto-generated ChangeLog files. 2013-10-13 16:48:22 -04:00
commands.c * commands.c: [SV 40789] Remove unneeded header dlfcn.h 2014-01-12 10:54:59 -05:00
commands.h Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
config.ami.template Invert the #define for output-sync: turn it off with NO_OUTPUT_SYNC 2013-09-21 17:37:59 -04:00
config.h-vms.template Enhance/fix VMS build environment 2014-09-07 17:13:56 -04:00
config.h.W32.template Invert the #define for output-sync: turn it off with NO_OUTPUT_SYNC 2013-09-21 17:37:59 -04:00
config_flags_pm.com Update the regression test harness to support VMS. 2014-07-07 02:47:30 -04:00
configh.dos.template Invert the #define for output-sync: turn it off with NO_OUTPUT_SYNC 2013-09-21 17:37:59 -04:00
configure.ac * configure.ac, maintMakefile, w32/Makefile.am: Fix autotools issues. 2014-09-07 16:59:37 -04:00
configure.bat Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
COPYING * Update to GPLv3 2007-07-04 19:35:15 +00:00
debug.h Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
default.c * maintMakefile, various: Improve constification of the codebase. 2014-07-07 01:59:03 -04:00
dep.h [Bug #39310] Parse simple pattern prereqs for globbing. 2013-07-22 02:23:02 -04:00
dir.c * various: Assume ISO C89-compliant free() implementation. 2014-07-07 01:59:03 -04:00
dosbuild.bat Enhance the output sync mode. 2013-09-12 04:07:52 -04:00
expand.c * various: Assume ISO C89-compliant free() implementation. 2014-07-07 01:59:03 -04:00
file.c [SV 40361] Don't use vsnprintf(), which is an ISO C99 function. 2013-11-23 22:23:52 -05:00
filedef.h Modify the update_status field in struct file to be an enum. 2013-07-14 19:18:21 -04:00
function.c * various: Assume ISO C89-compliant free() implementation. 2014-07-07 01:59:03 -04:00
getloadavg.c Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
getopt.c Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
getopt.h Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
getopt1.c Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
gettext.h Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
gmk-default.scm Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
gnumake.h Sanitize the registered function interface. 2013-10-05 16:10:30 -04:00
guile.c [SV 40254] Modify build.sh to work properly with Guile support. 2013-10-19 12:24:14 -04:00
hash.c Use xcalloc() in hash.c to handle out of memory errors. 2013-05-17 01:24:19 -04:00
hash.h Rearrange elements to reduce struct size on 64bit architectures. 2012-10-28 14:57:49 +00:00
implicit.c [SV 31155] Parse order-only tokens in second expansion results. 2013-09-22 17:10:35 -04:00
INSTALL Fix problems with README and build.sh 2004-11-30 20:58:52 +00:00
job.c * various: Assume ISO C89-compliant free() implementation. 2014-07-07 01:59:03 -04:00
job.h [SV 40361] Don't use vsnprintf(), which is an ISO C99 function. 2013-11-23 22:23:52 -05:00
load.c * load.c (load_file): Reset the name length minus the symbol. 2013-11-24 04:03:19 -05:00
loadapi.c Sanitize the registered function interface. 2013-10-05 16:10:30 -04:00
main.c [SV 42695] Fix compilation error on MS-Windows. 2014-07-12 13:01:18 +03:00
maintMakefile * configure.ac, maintMakefile, w32/Makefile.am: Fix autotools issues. 2014-09-07 16:59:37 -04:00
make.1 [SV 35248] Add --debug "n" flag to turn off current debug options. 2013-09-14 21:01:10 -04:00
make.lnk Enhance the output sync mode. 2013-09-12 04:07:52 -04:00
make_msvc_net2003.sln - Fixed a bug reported by Michael Matz regarding handling of parallel 2005-08-08 05:08:00 +00:00
make_msvc_net2003.vcproj Fix MS Visual Studio NET2003 build. 2013-10-24 21:20:36 +03:00
Makefile.am [SV 40240] Use configure info to build load test shared libs 2013-10-19 15:39:15 -04:00
Makefile.ami Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
makefile.com Enhance/fix VMS build environment 2014-09-07 17:13:56 -04:00
Makefile.DOS.template Add VMS port updates from Hartmut Becker. 2013-09-22 17:10:34 -04:00
makefile.vms Enhance/fix VMS build environment 2014-09-07 17:13:56 -04:00
makeint.h Fix compilation on MS-Windows. 2014-07-16 18:23:04 +03:00
misc.c [SV 40361] Don't use vsnprintf(), which is an ISO C99 function. 2013-11-23 22:23:52 -05:00
NEWS [SV 41983] Support omitting the text argument to $(file ...) 2014-07-07 01:59:03 -04:00
NMakefile.template NMakefile.template ($(OUTDIR)/posixfcn.obj): Fix a typo. 2014-05-13 20:30:47 +03:00
output.c * output.c (pump_from_tmp): [SV 42378] Flush the output file regularly. 2014-07-07 03:10:17 -04:00
output.h Invert the #define for output-sync: turn it off with NO_OUTPUT_SYNC 2013-09-21 17:37:59 -04:00
prepare_vms.com Enhance/fix VMS build environment 2014-09-07 17:13:56 -04:00
prepare_w32.bat Modify instructions, etc. for Git support. 2013-01-12 19:31:13 -05:00
read.c Change the order of "makefile" and "Makefile" to match the manual. 2014-08-30 10:43:34 +03:00
README.Amiga Update source file format: remove TABs, use GNU coding styles. 2013-05-17 02:29:46 -04:00
README.customs Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
README.DOS.template Update source file format: remove TABs, use GNU coding styles. 2013-05-17 02:29:46 -04:00
README.git * README.git: Add some missing release steps. 2013-10-20 13:08:27 -04:00
README.OS2.template Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
README.template Add VMS port updates from Hartmut Becker. 2013-09-22 17:10:34 -04:00
README.VMS Add VMS port updates from Hartmut Becker. 2013-09-22 17:10:34 -04:00
README.W32.template Fix portability issues for Guile 1.8. 2013-09-30 10:56:20 -04:00
remake.c * maintMakefile, various: Improve constification of the codebase. 2014-07-07 01:59:03 -04:00
remote-cstms.c [SV 40361] Don't use vsnprintf(), which is an ISO C99 function. 2013-11-23 22:23:52 -05:00
remote-stub.c Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
rule.c * various: Assume ISO C89-compliant free() implementation. 2014-07-07 01:59:03 -04:00
rule.h * maintMakefile, various: Improve constification of the codebase. 2014-07-07 01:59:03 -04:00
SCOPTIONS Thu May 9 13:54:49 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> 1996-05-09 18:02:06 +00:00
signame.c [Bug #39158] Source cleanups suggested by cppcheck utility. 2013-07-21 17:52:13 -04:00
SMakefile.template Enhance the output sync mode. 2013-09-12 04:07:52 -04:00
strcache.c Update source file format: remove TABs, use GNU coding styles. 2013-05-17 02:29:46 -04:00
subproc.bat Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
test_make.com Update the regression test harness to support VMS. 2014-07-07 02:47:30 -04:00
TODO.private Portability for Guile 1.8. Force UTF-8 encoding. 2013-09-29 13:16:21 -04:00
variable.c * various: Assume ISO C89-compliant free() implementation. 2014-07-07 01:59:03 -04:00
variable.h * maintMakefile, various: Improve constification of the codebase. 2014-07-07 01:59:03 -04:00
version.c * maintMakefile, various: Improve constification of the codebase. 2014-07-07 01:59:03 -04:00
vmsdir.h Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
vmsfunctions.c Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
vmsify.c Update copyright for changes in 2013. 2013-05-17 01:47:42 -04:00
vmsjobs.c [SV 40361] Don't use vsnprintf(), which is an ISO C99 function. 2013-11-23 22:23:52 -05:00
vpath.c [Bug #39158] Source cleanups suggested by cppcheck utility. 2013-07-21 17:52:13 -04:00

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This version of GNU make has been tested on
Microsoft Windows 2000/XP/2003/Vista/7/2008.
It has also been used on Windows 95/98/NT, and on OS/2.

It builds with the MinGW port of GCC (tested with GCC 3.4.2).

It also builds with MSVC 2.x, 4.x, 5.x, 6.x, and 2003 as well as
with .NET 7.x and .NET 2003.

As of version 4.0, a build with Guile is supported (tested with Guile
2.0.3).  To build with Guile, you will need, in addition to Guile
itself, its dependency libraries and the pkg-config program.  The
latter is used to figure out which compilation and link switches and
libraries need to be mentioned on the compiler command lines to
correctly link with Guile.  A Windows port of pkg-config can be found
on the Windows download page of the GTK+ project:

  http://www.gtk.org/download/win32.php

The libraries on which Guile depends can vary depending on your
version and build of Guile.  At the very least, the Boehm's GC library
will be needed, and typically also GNU MP, libffi, libunistring, and
libtool's libltdl.  Whoever built the port of Guile you have should
also provide you with these dependencies or a URL where to download
them.

The Windows 32-bit port of GNU make is maintained jointly by various
people.  It was originally made by Rob Tulloh.


Do this first, regardless of the build method you choose:
---------------------------------------------------------

 1. At the Windows command prompt run:

      if not exist NMakefile copy NMakefile.template NMakefile
      if not exist config.h copy config.h.W32 config.h

    Then edit config.h to your liking (especially the few shell-related
    defines near the end, or HAVE_CASE_INSENSITIVE_FS which corresponds
    to './configure --enable-case-insensitive-file-system').


Using make_msvc_net2003.vcproj
------------------------------

 2. Open make_msvc_net2003.vcproj in MSVS71 or MSVC71 or any compatible IDE,
    then build this project as usual.  There's also a solution file for
    Studio 2003.


Building with (MinGW-)GCC using build_w32.bat
---------------------------------------------

 2. Open a W32 command prompt for your installed (MinGW-)GCC, setup a
    correct PATH and other environment variables for it, then execute ...

        build_w32.bat gcc

    This produces gnumake.exe in the current directory.

    The batch file will probe for Guile installation, and will build
    gnumake.exe with Guile if it finds it.  If you have Guile
    installed, but want to build Make without Guile support, type

        build_w32.bat --without-guile gcc


Building with (MSVC++-)cl using build_w32.bat or NMakefile
----------------------------------------------------------

 2. Open a W32 command prompt for your installed (MSVC++-)cl, setup a
    correct PATH and other environment variables for it (usually via
    executing vcvars32.bat or vsvars32.bat from the cl-installation,
    e.g. "%VS71COMNTOOLS%vsvars32.bat"; or using a corresponding start
    menue entry from the cl-installation), then execute EITHER ...

        build_w32.bat

    (this produces WinDebug/gnumake.exe and WinRel/gnumake.exe)

    ... OR ...

        nmake /f NMakefile

    (this produces WinDebug/make.exe and WinRel/make.exe).

    The batch file will probe for Guile installation, and will build
    gnumake.exe with Guile if it finds it.  If you have Guile
    installed, but want to build Make without Guile support, type

        build_w32.bat --without-guile

-------------------
-- Notes/Caveats --
-------------------

GNU make on Windows 32-bit platforms:

        This version of make is ported natively to Windows32 platforms
        (Windows NT 3.51, Windows NT 4.0, Windows 2000, Windows XP,
        Windows 95, and Windows 98). It does not rely on any 3rd party
        software or add-on packages for building. The only thing
        needed is a Windows compiler.  Two compilers supported
        officially are the MinGW port of GNU GCC, and the various
        versions of the Microsoft C compiler.

        Do not confuse this port of GNU make with other Windows32 projects
        which provide a GNU make binary. These are separate projects
        and are not connected to this port effort.

GNU make and sh.exe:

        This port prefers if you have a working sh.exe somewhere on
        your system. If you don't have sh.exe, the port falls back to
        MSDOS mode for launching programs (via a batch file).  The
        MSDOS mode style execution has not been tested that carefully
        though (The author uses GNU bash as sh.exe).

        There are very few true ports of Bourne shell for NT right now.
        There is a version of GNU bash available from Cygnus "Cygwin"
        porting effort (http://www.cygwin.com/).
        Other possibilities are the MKS version of sh.exe, or building
        your own with a package like NutCracker (DataFocus) or Portage
        (Consensys).  Also MinGW includes sh (http://mingw.org/).

GNU make and brain-dead shells (BATCH_MODE_ONLY_SHELL):

        Some versions of Bourne shell do not behave well when invoked
        as 'sh -c' from CreateProcess().  The main problem is they seem
        to have a hard time handling quoted strings correctly. This can
        be circumvented by writing commands to be executed to a batch
        file and then executing the command by calling 'sh file'.

        To work around this difficulty, this version of make supports
        a batch mode.  When BATCH_MODE_ONLY_SHELL is defined at compile
        time, make forces all command lines to be executed via script
        files instead of by command line.  In this mode you must have a
        working sh.exe in order to use parallel builds (-j).

        A native Windows32 system with no Bourne shell will also run
        in batch mode.  All command lines will be put into batch files
        and executed via $(COMSPEC) (%COMSPEC%).  However, parallel
        builds ARE supported with Windows shells (cmd.exe and
        command.com).  See the next section about some peculiarities
        of parallel builds on Windows.

Support for parallel builds

        Parallel builds (-jN) are supported in this port, with 1
        limitation: The number of concurrent processes has a hard
        limit of 64, due to the way this port implements waiting for
        its subprocesses.

GNU make and Cygnus GNU Windows32 tools:

        Good news! Make now has native support for Cygwin sh. To enable,
        define the HAVE_CYGWIN_SHELL in config.h and rebuild make
        from scratch. This version of make tested with B20.1 of Cygwin.
        Do not define BATCH_MODE_ONLY_SHELL if you use HAVE_CYGWIN_SHELL.

GNU make and the MKS shell:

        There is now semi-official support for the MKS shell. To turn this
        support on, define HAVE_MKS_SHELL in the config.h.W32 before you
        build make.  Do not define BATCH_MODE_ONLY_SHELL if you turn
        on HAVE_MKS_SHELL.

GNU make handling of drive letters in pathnames (PATH, vpath, VPATH):

        There is a caveat that should be noted with respect to handling
        single character pathnames on Windows systems.  When colon is
        used in PATH variables, make tries to be smart about knowing when
        you are using colon as a separator versus colon as a drive
        letter.  Unfortunately, something as simple as the string 'x:/'
        could be interpreted 2 ways: (x and /) or (x:/).

        Make chooses to interpret a letter plus colon (e.g. x:/) as a
        drive letter pathname.  If it is necessary to use single
        character directories in paths (VPATH, vpath, Path, PATH), the
        user must do one of two things:

         a. Use semicolon as the separator to disambiguate colon. For
            example use 'x;/' if you want to say 'x' and '/' are
            separate components.

         b. Qualify the directory name so that there is more than
            one character in the path(s) used. For example, none
            of these settings are ambiguous:

              ./x:./y
              /some/path/x:/some/path/y
              x:/some/path/x:x:/some/path/y

        Please note that you are free to mix colon and semi-colon in the
        specification of paths.  Make is able to figure out the intended
        result and convert the paths internally to the format needed
        when interacting with the operating system, providing the path
        is not within quotes, e.g. "x:/test/test.c".

        You are encouraged to use colon as the separator character.
        This should ease the pain of deciding how to handle various path
        problems which exist between platforms.  If colon is used on
        both Unix and Windows systems, then no ifdef'ing will be
        necessary in the makefile source.

GNU make test suite:

        I verified all functionality with a slightly modified version
        of make-test-%VERSION% (modifications to get test suite to run
        on Windows NT). All tests pass in an environment that includes
        sh.exe.  Tests were performed on both Windows NT and Windows 95.

Pathnames and white space:

        Unlike Unix, Windows 95/NT systems encourage pathnames which
        contain white space (e.g. C:\Program Files\). These sorts of
        pathnames are valid on Unix too, but are never encouraged.
        There is at least one place in make (VPATH/vpath handling) where
        paths containing white space will simply not work. There may be
        others too. I chose to not try and port make in such a way so
        that these sorts of paths could be handled. I offer these
        suggestions as workarounds:

                1. Use 8.3 notation. i.e. "x:/long~1/", which is actually
                   "x:\longpathtest".  Type "dir /x" to view these filenames
                   within the cmd.exe shell.
                2. Rename the directory so it does not contain white space.

        If you are unhappy with this choice, this is free software
        and you are free to take a crack at making this work. The code
        in w32/pathstuff.c and vpath.c would be the places to start.

Pathnames and Case insensitivity:

        Unlike Unix, Windows 95/NT systems are case insensitive but case
        preserving.  For example if you tell the file system to create a
        file named "Target", it will preserve the case.  Subsequent access to
        the file with other case permutations will succeed (i.e. opening a
        file named "target" or "TARGET" will open the file "Target").

        By default, GNU make retains its case sensitivity when comparing
        target names and existing files or directories.  It can be
        configured, however, into a case preserving and case insensitive
        mode by adding a define for HAVE_CASE_INSENSITIVE_FS to
        config.h.W32.

        For example, the following makefile will create a file named
        Target in the directory subdir which will subsequently be used
        to satisfy the dependency of SUBDIR/DepTarget on SubDir/TARGET.
        Without HAVE_CASE_INSENSITIVE_FS configured, the dependency link
        will not be made:

        subdir/Target:
                touch $@

        SUBDIR/DepTarget: SubDir/TARGET
                cp $^ $@

        Reliance on this behavior also eliminates the ability of GNU make
        to use case in comparison of matching rules.  For example, it is
        not possible to set up a C++ rule using %.C that is different
        than a C rule using %.c.  GNU make will consider these to be the
        same rule and will issue a warning.

SAMBA/NTFS/VFAT:

        I have not had any success building the debug version of this
        package using SAMBA as my file server. The reason seems to be
        related to the way VC++ 4.0 changes the case name of the pdb
        filename it is passed on the command line. It seems to change
        the name always to to lower case. I contend that the VC++
        compiler should not change the casename of files that are passed
        as arguments on the command line. I don't think this was a
        problem in MSVC 2.x, but I know it is a problem in MSVC 4.x.

        The package builds fine on VFAT and NTFS filesystems.

        Most all of the development I have done to date has been using
        NTFS and long file names. I have not done any considerable work
        under VFAT. VFAT users may wish to be aware that this port of
        make does respect case sensitivity.

FAT:

        Version 3.76 added support for FAT filesystems. Make works
        around some difficulties with stat'ing of files and caching of
        filenames and directories internally.

Bug reports:

        Please submit bugs via the normal bug reporting mechanism which
        is described in the GNU make manual and the base README.

-------------------------------------------------------------------------------
Copyright (C) 1996-2013 Free Software Foundation, Inc.
This file is part of GNU Make.

GNU Make 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.

GNU Make 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/>.