VirtualBox

source: kBuild/trunk/src/kmk/dosbuild.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: 3.3 KB
Line 
1@echo off
2rem Copyright (C) 1998-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 Building Make for MSDOS
19
20rem Echo ON so they will see what is going on.
21@echo on
22gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g commands.c -o commands.o
23gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g output.c -o output.o
24gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g job.c -o job.o
25gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g dir.c -o dir.o
26gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g file.c -o file.o
27gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g misc.c -o misc.o
28gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g main.c -o main.o
29gcc -c -I. -I./glob -DHAVE_CONFIG_H -DINCLUDEDIR=\"c:/djgpp/include\" -O2 -g read.c -o read.o
30gcc -c -I. -I./glob -DHAVE_CONFIG_H -DLIBDIR=\"c:/djgpp/lib\" -O2 -g remake.c -o remake.o
31gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g rule.c -o rule.o
32gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g implicit.c -o implicit.o
33gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g default.c -o default.o
34gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g variable.c -o variable.o
35gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g expand.c -o expand.o
36gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g function.c -o function.o
37gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g vpath.c -o vpath.o
38gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g hash.c -o hash.o
39gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g strcache.c -o strcache.o
40gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g version.c -o version.o
41gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g ar.c -o ar.o
42gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g arscan.c -o arscan.o
43gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g signame.c -o signame.o
44gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g remote-stub.c -o remote-stub.o
45gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g getopt.c -o getopt.o
46gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g getopt1.c -o getopt1.o
47@cd glob
48@if exist libglob.a del libglob.a
49gcc -I. -c -DHAVE_CONFIG_H -I.. -O2 -g glob.c -o glob.o
50gcc -I. -c -DHAVE_CONFIG_H -I.. -O2 -g fnmatch.c -o fnmatch.o
51ar rv libglob.a glob.o fnmatch.o
52@echo off
53cd ..
54echo commands.o > respf.$$$
55for %%f in (job output dir file misc main read remake rule implicit default variable) do echo %%f.o >> respf.$$$
56for %%f in (expand function vpath hash strcache version ar arscan signame remote-stub getopt getopt1) do echo %%f.o >> respf.$$$
57echo glob/libglob.a >> respf.$$$
58rem gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g guile.c -o guile.o
59rem echo guile.o >> respf.$$$
60@echo Linking...
61@echo on
62gcc -o make.new @respf.$$$
63@if exist make.exe echo Make.exe is now built!
64@if not exist make.exe echo Make.exe build failed...
65@if exist make.exe del respf.$$$
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use