| 1 | <<<<<<< .working
|
|---|
| 2 | @echo off
|
|---|
| 3 | rem Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
|
|---|
| 4 | rem 2004, 2005, 2006 Free Software Foundation, Inc.
|
|---|
| 5 | rem This file is part of GNU Make.
|
|---|
| 6 |
|
|---|
| 7 | rem GNU Make is free software; you can redistribute it and/or modify it under
|
|---|
| 8 | rem the terms of the GNU General Public License as published by the Free
|
|---|
| 9 | rem Software Foundation; either version 2, or (at your option) any later
|
|---|
| 10 | rem version.
|
|---|
| 11 |
|
|---|
| 12 | rem GNU Make is distributed in the hope that it will be useful, but WITHOUT
|
|---|
| 13 | rem ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|---|
| 14 | rem FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|---|
| 15 | rem more details.
|
|---|
| 16 |
|
|---|
| 17 | rem You should have received a copy of the GNU General Public License along
|
|---|
| 18 | rem with GNU Make; see the file COPYING. If not, write to the Free Software
|
|---|
| 19 | rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|---|
| 20 |
|
|---|
| 21 | echo Configuring MAKE for DJGPP
|
|---|
| 22 |
|
|---|
| 23 | rem The SmallEnv trick protects against too small environment block,
|
|---|
| 24 | rem in which case the values will be truncated and the whole thing
|
|---|
| 25 | rem goes awry. COMMAND.COM will say "Out of environment space", but
|
|---|
| 26 | rem many people don't care, so we force them to care by refusing to go.
|
|---|
| 27 |
|
|---|
| 28 | rem Where is the srcdir?
|
|---|
| 29 | set XSRC=.
|
|---|
| 30 | if not "%XSRC%"=="." goto SmallEnv
|
|---|
| 31 | if "%1%"=="" goto SrcDone
|
|---|
| 32 | set XSRC=%1
|
|---|
| 33 | if not "%XSRC%"=="%1" goto SmallEnv
|
|---|
| 34 |
|
|---|
| 35 | :SrcDone
|
|---|
| 36 |
|
|---|
| 37 | update %XSRC%/configh.dos ./config.h
|
|---|
| 38 |
|
|---|
| 39 | rem Do they have Make?
|
|---|
| 40 | redir -o junk.$$$ -eo make -n -f NUL
|
|---|
| 41 | rem REDIR will return 1 if it cannot run Make.
|
|---|
| 42 | rem If it can run Make, it will usually return 2,
|
|---|
| 43 | rem but 0 is also OK with us.
|
|---|
| 44 | if errorlevel 2 goto MakeOk
|
|---|
| 45 | if not errorlevel 1 goto MakeOk
|
|---|
| 46 | if exist junk.$$$ del junk.$$$
|
|---|
| 47 | echo No Make program found--use DOSBUILD.BAT to build Make.
|
|---|
| 48 | goto End
|
|---|
| 49 |
|
|---|
| 50 | rem They do have Make. Generate the Makefile.
|
|---|
| 51 |
|
|---|
| 52 | :MakeOk
|
|---|
| 53 | del junk.$$$
|
|---|
| 54 | update %XSRC%/Makefile.DOS ./Makefile
|
|---|
| 55 | echo Done.
|
|---|
| 56 | if not "%XSRC%"=="." echo Invoke Make thus: "make srcdir=%XSRC%"
|
|---|
| 57 | goto End
|
|---|
| 58 |
|
|---|
| 59 | :SmallEnv
|
|---|
| 60 | echo Your environment is too small. Please enlarge it and run me again.
|
|---|
| 61 |
|
|---|
| 62 | :End
|
|---|
| 63 | set XRSC=
|
|---|
| 64 | =======
|
|---|
| 65 | @echo off
|
|---|
| 66 | rem Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
|
|---|
| 67 | rem 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
|
|---|
| 68 | rem This file is part of GNU Make.
|
|---|
| 69 | rem
|
|---|
| 70 | rem GNU Make is free software; you can redistribute it and/or modify it under
|
|---|
| 71 | rem the terms of the GNU General Public License as published by the Free
|
|---|
| 72 | rem Software Foundation; either version 3 of the License, or (at your option)
|
|---|
| 73 | rem any later version.
|
|---|
| 74 | rem
|
|---|
| 75 | rem GNU Make is distributed in the hope that it will be useful, but WITHOUT
|
|---|
| 76 | rem ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|---|
| 77 | rem FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for.
|
|---|
| 78 | rem more details.
|
|---|
| 79 | rem
|
|---|
| 80 | rem You should have received a copy of the GNU General Public License along
|
|---|
| 81 | rem with this program. If not, see <http://www.gnu.org/licenses/>.
|
|---|
| 82 |
|
|---|
| 83 | echo Configuring MAKE for DJGPP
|
|---|
| 84 |
|
|---|
| 85 | rem The SmallEnv trick protects against too small environment block,
|
|---|
| 86 | rem in which case the values will be truncated and the whole thing
|
|---|
| 87 | rem goes awry. COMMAND.COM will say "Out of environment space", but
|
|---|
| 88 | rem many people don't care, so we force them to care by refusing to go.
|
|---|
| 89 |
|
|---|
| 90 | rem Where is the srcdir?
|
|---|
| 91 | set XSRC=.
|
|---|
| 92 | if not "%XSRC%"=="." goto SmallEnv
|
|---|
| 93 | if "%1%"=="" goto SrcDone
|
|---|
| 94 | set XSRC=%1
|
|---|
| 95 | if not "%XSRC%"=="%1" goto SmallEnv
|
|---|
| 96 |
|
|---|
| 97 | :SrcDone
|
|---|
| 98 |
|
|---|
| 99 | update %XSRC%/configh.dos ./config.h
|
|---|
| 100 |
|
|---|
| 101 | rem Do they have Make?
|
|---|
| 102 | redir -o junk.$$$ -eo make -n -f NUL
|
|---|
| 103 | rem REDIR will return 1 if it cannot run Make.
|
|---|
| 104 | rem If it can run Make, it will usually return 2,
|
|---|
| 105 | rem but 0 is also OK with us.
|
|---|
| 106 | if errorlevel 2 goto MakeOk
|
|---|
| 107 | if not errorlevel 1 goto MakeOk
|
|---|
| 108 | if exist junk.$$$ del junk.$$$
|
|---|
| 109 | echo No Make program found--use DOSBUILD.BAT to build Make.
|
|---|
| 110 | goto End
|
|---|
| 111 |
|
|---|
| 112 | rem They do have Make. Generate the Makefile.
|
|---|
| 113 |
|
|---|
| 114 | :MakeOk
|
|---|
| 115 | del junk.$$$
|
|---|
| 116 | update %XSRC%/Makefile.DOS ./Makefile
|
|---|
| 117 | echo Done.
|
|---|
| 118 | if not "%XSRC%"=="." echo Invoke Make thus: "make srcdir=%XSRC%"
|
|---|
| 119 | goto End
|
|---|
| 120 |
|
|---|
| 121 | :SmallEnv
|
|---|
| 122 | echo Your environment is too small. Please enlarge it and run me again.
|
|---|
| 123 |
|
|---|
| 124 | :End
|
|---|
| 125 | set XRSC=
|
|---|
| 126 | >>>>>>> .merge-right.r1992
|
|---|