VirtualBox

source: kBuild/trunk/src/kmk/configure.bat@ 2074

Last change on this file since 2074 was 1993, checked in by bird, 16 years ago

Merged in current GNU Make code (CVS from 2008-10-28). Ref #55.

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette