1 @echo Building Make for MSDOS
\r
2 @rem Echo ON so they will see what is going on.
\r
4 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g commands.c -o commands.o
\r
5 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g job.c -o job.o
\r
6 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g dir.c -o dir.o
\r
7 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g file.c -o file.o
\r
8 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g misc.c -o misc.o
\r
9 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g main.c -o main.o
\r
10 gcc -c -I. -I./glob -DHAVE_CONFIG_H -DINCLUDEDIR=\"c:/djgpp/include\" -O2 -g read.c -o read.o
\r
11 gcc -c -I. -I./glob -DHAVE_CONFIG_H -DLIBDIR=\"c:/djgpp/lib\" -O2 -g remake.c -o remake.o
\r
12 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g rule.c -o rule.o
\r
13 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g implicit.c -o implicit.o
\r
14 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g default.c -o default.o
\r
15 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g variable.c -o variable.o
\r
16 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g expand.c -o expand.o
\r
17 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g function.c -o function.o
\r
18 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g vpath.c -o vpath.o
\r
19 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g hash.c -o hash.o
\r
20 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g strcache.c -o strcache.o
\r
21 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g version.c -o version.o
\r
22 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g ar.c -o ar.o
\r
23 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g arscan.c -o arscan.o
\r
24 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g signame.c -o signame.o
\r
25 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g remote-stub.c -o remote-stub.o
\r
26 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g getopt.c -o getopt.o
\r
27 gcc -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g getopt1.c -o getopt1.o
\r
29 @if exist libglob.a del libglob.a
\r
30 gcc -I. -c -DHAVE_CONFIG_H -I.. -O2 -g glob.c -o glob.o
\r
31 gcc -I. -c -DHAVE_CONFIG_H -I.. -O2 -g fnmatch.c -o fnmatch.o
\r
32 ar rv libglob.a glob.o fnmatch.o
\r
35 echo commands.o > respf.$$$
\r
36 for %%f in (job dir file misc main read remake rule implicit default variable) do echo %%f.o >> respf.$$$
\r
37 for %%f in (expand function vpath hash strcache version ar arscan signame remote-stub getopt getopt1) do echo %%f.o >> respf.$$$
\r
38 echo glob/libglob.a >> respf.$$$
\r
41 gcc -o make.new @respf.$$$
\r
42 @if exist make.exe echo Make.exe is now built!
\r
43 @if not exist make.exe echo Make.exe build failed...
\r
44 @if exist make.exe del respf.$$$
\r
46 @rem Copyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
\r
47 @rem 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
\r
48 @rem This file is part of GNU Make.
\r
50 @rem GNU Make is free software; you can redistribute it and/or modify it under the
\r
51 @rem terms of the GNU General Public License as published by the Free Software
\r
52 @rem Foundation; either version 2, or (at your option) any later version.
\r
54 @rem GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
\r
55 @rem WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
\r
56 @rem A PARTICULAR PURPOSE. See the GNU General Public License for more details.
\r
58 @rem You should have received a copy of the GNU General Public License along with
\r
59 @rem GNU Make; see the file COPYING. If not, write to the Free Software
\r
60 @rem Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
\r