VirtualBox

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

Last change on this file since 3387 was 3140, checked in by bird, 6 years ago

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

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

© 2023 Oracle
ContactPrivacy policyTerms of Use