* New config.sub and config.guess
[make.git] / dosbuild.bat
blob34ca4b43b903f0694604a7690144907732074c94
1 @echo Building Make for MSDOS\r\r
2 @rem Echo ON so they will see what is going on.\r\r
3 @echo on\r\r
4 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g commands.c -o commands.o\r\r
5 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g job.c -o job.o\r\r
6 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g dir.c -o dir.o\r\r
7 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g file.c -o file.o\r\r
8 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g misc.c -o misc.o\r\r
9 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g main.c -o main.o\r\r
10 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -DINCLUDEDIR=\"c:/djgpp/include\" -O2 -g read.c -o read.o\r\r
11 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -DLIBDIR=\"c:/djgpp/lib\" -O2 -g remake.c -o remake.o\r\r
12 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g rule.c -o rule.o\r\r
13 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g implicit.c -o implicit.o\r\r
14 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g default.c -o default.o\r\r
15 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g variable.c -o variable.o\r\r
16 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g expand.c -o expand.o\r\r
17 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g function.c -o function.o\r\r
18 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g vpath.c -o vpath.o\r\r
19 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g version.c -o version.o\r\r
20 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g ar.c -o ar.o\r\r
21 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g arscan.c -o arscan.o\r\r
22 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g signame.c -o signame.o\r\r
23 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g remote-stub.c -o remote-stub.o\r\r
24 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g getopt.c -o getopt.o\r\r
25 gcc  -c -I. -I./glob -DHAVE_CONFIG_H -O2 -g getopt1.c -o getopt1.o\r\r
26 @cd glob\r\r
27 @if exist libglob.a del libglob.a\r\r
28 gcc -I. -c -DHAVE_CONFIG_H -I.. -O2 -g glob.c -o glob.o\r\r
29 gcc -I. -c -DHAVE_CONFIG_H -I.. -O2 -g fnmatch.c -o fnmatch.o\r\r
30 ar rv libglob.a glob.o fnmatch.o\r\r
31 @echo off\r\r
32 cd ..\r\r
33 echo commands.o > respf.$$$\r\r
34 for %%f in (job dir file misc main read remake rule implicit default variable) do echo %%f.o >> respf.$$$\r\r
35 for %%f in (expand function vpath version ar arscan signame remote-stub getopt getopt1) do echo %%f.o >> respf.$$$\r\r
36 echo glob/libglob.a >> respf.$$$\r\r
37 @echo Linking...\r\r
38 @echo on\r\r
39 gcc -o make.new @respf.$$$\r\r
40 @if exist make.exe echo Make.exe is now built!\r\r
41 @if not exist make.exe echo Make.exe build failed...\r\r
42 @if exist make.exe del respf.$$$\r\r