2 rem Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
\r
3 rem 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
\r
4 rem This file is part of GNU Make.
\r
6 rem GNU Make is free software; you can redistribute it and/or modify it under
\r
7 rem the terms of the GNU General Public License as published by the Free
\r
8 rem Software Foundation; either version 3 of the License, or (at your option)
\r
9 rem any later version.
\r
11 rem GNU Make is distributed in the hope that it will be useful, but WITHOUT
\r
12 rem ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
13 rem FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for.
\r
16 rem You should have received a copy of the GNU General Public License along
\r
17 rem with this program. If not, see <http://www.gnu.org/licenses/>.
\r
19 echo Building Make for MSDOS
\r
21 rem Echo ON so they will see what is going on.
\r
23 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g commands.c -o commands.o
\r
24 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g job.c -o job.o
\r
25 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g dir.c -o dir.o
\r
26 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g file.c -o file.o
\r
27 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g misc.c -o misc.o
\r
28 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g main.c -o main.o
\r
29 gcc -c -I. -I./glob -DHAVE_CONFIG_H -DINCLUDEDIR=\"c:/djgpp/include\" -O2 -g read.c -o read.o
\r
30 gcc -c -I. -I./glob -DHAVE_CONFIG_H -DLIBDIR=\"c:/djgpp/lib\" -O2 -g remake.c -o remake.o
\r
31 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g rule.c -o rule.o
\r
32 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g implicit.c -o implicit.o
\r
33 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g default.c -o default.o
\r
34 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g variable.c -o variable.o
\r
35 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g expand.c -o expand.o
\r
36 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g function.c -o function.o
\r
37 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g vpath.c -o vpath.o
\r
38 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g hash.c -o hash.o
\r
39 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g strcache.c -o strcache.o
\r
40 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g version.c -o version.o
\r
41 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g ar.c -o ar.o
\r
42 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g arscan.c -o arscan.o
\r
43 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g signame.c -o signame.o
\r
44 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g remote-stub.c -o remote-stub.o
\r
45 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g getopt.c -o getopt.o
\r
46 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g getopt1.c -o getopt1.o
\r
48 @if exist libglob.a del libglob.a
\r
49 gcc -I. -c -DHAVE_CONFIG_H -I.. -O2 -g glob.c -o glob.o
\r
50 gcc -I. -c -DHAVE_CONFIG_H -I.. -O2 -g fnmatch.c -o fnmatch.o
\r
51 ar rv libglob.a glob.o fnmatch.o
\r
54 echo commands.o > respf.$$$
\r
55 for %%f in (job dir file misc main read remake rule implicit default variable) do echo %%f.o >> respf.$$$
\r
56 for %%f in (expand function vpath hash strcache version ar arscan signame remote-stub getopt getopt1) do echo %%f.o >> respf.$$$
\r
57 echo glob/libglob.a >> respf.$$$
\r
58 rem gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g guile.c -o guile.o
\r
59 rem echo guile.o >> respf.$$$
\r
62 gcc -o make.new @respf.$$$
\r
63 @if exist make.exe echo Make.exe is now built!
\r
64 @if not exist make.exe echo Make.exe build failed...
\r
65 @if exist make.exe del respf.$$$
\r