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