VirtualBox

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

Last change on this file since 1116 was 503, checked in by bird, 18 years ago

Untested merge with GNU Make v3.81 (vendor/gnumake/2005-05-16 -> vendor/gnumake/current).

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1@echo off
2rem Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
3rem 2004, 2005, 2006 Free Software Foundation, Inc.
4rem This file is part of GNU Make.
5
6rem GNU Make is free software; you can redistribute it and/or modify it under
7rem the terms of the GNU General Public License as published by the Free
8rem Software Foundation; either version 2, or (at your option) any later
9rem version.
10
11rem GNU Make is distributed in the hope that it will be useful, but WITHOUT
12rem ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13rem FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14rem more details.
15
16rem You should have received a copy of the GNU General Public License along
17rem with GNU Make; see the file COPYING. If not, write to the Free Software
18rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19
20echo Configuring MAKE for DJGPP
21
22rem The SmallEnv trick protects against too small environment block,
23rem in which case the values will be truncated and the whole thing
24rem goes awry. COMMAND.COM will say "Out of environment space", but
25rem many people don't care, so we force them to care by refusing to go.
26
27rem Where is the srcdir?
28set XSRC=.
29if not "%XSRC%"=="." goto SmallEnv
30if "%1%"=="" goto SrcDone
31set XSRC=%1
32if not "%XSRC%"=="%1" goto SmallEnv
33
34:SrcDone
35
36update %XSRC%/configh.dos ./config.h
37
38rem Do they have Make?
39redir -o junk.$$$ -eo make -n -f NUL
40rem REDIR will return 1 if it cannot run Make.
41rem If it can run Make, it will usually return 2,
42rem but 0 is also OK with us.
43if errorlevel 2 goto MakeOk
44if not errorlevel 1 goto MakeOk
45if exist junk.$$$ del junk.$$$
46echo No Make program found--use DOSBUILD.BAT to build Make.
47goto End
48
49rem They do have Make. Generate the Makefile.
50
51:MakeOk
52del junk.$$$
53update %XSRC%/Makefile.DOS ./Makefile
54echo Done.
55if not "%XSRC%"=="." echo Invoke Make thus: "make srcdir=%XSRC%"
56goto End
57
58:SmallEnv
59echo Your environment is too small. Please enlarge it and run me again.
60
61:End
62set XRSC=
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