Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 103 lines (91 sloc) 2.987 kB
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
1 @echo off
2 if not exist osos2\config-with-tcp.h goto usage
3 if "%1"=="" goto withtcp
97d8998 @mbert Import Elvis 2.1_4 (written by Steve Kirkendall)
authored
4 if "%1"=="--with-tcp" goto withtcp
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
5 if "%1"=="--no-tcp" goto notcp
6 if "%1"=="--with-gcc" goto gcc
7 if "%1"=="--with-emx" goto emx
8 if "%1"=="--with-debug" goto debug
9 if "%1"=="--with-x11" goto x11
97d8998 @mbert Import Elvis 2.1_4 (written by Steve Kirkendall)
authored
10 if "%1"=="--with-all" goto all
11 if "%1"=="package" goto package
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
12
13 :usage
97d8998 @mbert Import Elvis 2.1_4 (written by Steve Kirkendall)
authored
14 echo usage: makos2 [--with-tcp --no-tcp --with-emx --with-x11 --with-gcc --with-all]
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
15 echo the option "--no-tcp" will produce binaries not using the OS/2 TCP/IP APIs.
16 echo the option "--with-gcc" is like "--no-tcp", but gcc is used instead of icc.
17 echo the option "--with-emx" will use EMX including TCP/IP and Termcap.
18 echo the option "--with-x11" will use EMX including TCP/IP, X11 and Termcap.
97d8998 @mbert Import Elvis 2.1_4 (written by Steve Kirkendall)
authored
19 echo the option "--with-all" will run all of the above plus the INF docs.
20 echo else the standard executables with http/ftp abilities will be built,
21 echo like if "--with-tcp" was specified.
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
22 echo this batch file must be started from within the elvis-2.1 directory.
23 goto done
24
25 :notcp
26 echo copying config file for non tcp/ip compile...
27 copy osos2\config-no-tcp.h config.h
28 echo deleting some object files, don't worry if they do not exist...
29 del calc.obj dmmarkup.obj ex.obj http.obj io.obj osnet.obj url.obj ftp.obj buffer.obj
30 echo building non-tcp/ip elvis...
2fe6e17 @mbert Import Elvis 2.2_1 (written by Steve Kirkendall)
authored
31 make -f osos2\Makefile.os2 wcc-no-tcp
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
32 goto done
33
34 :gcc
35 echo copying config file for non tcp/ip compile using gcc...
2fe6e17 @mbert Import Elvis 2.2_1 (written by Steve Kirkendall)
authored
36 rem copy osos2\config-no-tcp.h config.h
37 copy osos2\config-with-tcp.h config.h
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
38 echo building non-tcp/ip elvis with emx/gcc...
97d8998 @mbert Import Elvis 2.1_4 (written by Steve Kirkendall)
authored
39 make -f osos2\Makefile.os2 gcc
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
40 goto done
41
42 :emx
43 echo copying config file for emx version...
44 copy osos2\config-with-tcp.h config.h
45 echo building emx elvis with emx/gcc...
97d8998 @mbert Import Elvis 2.1_4 (written by Steve Kirkendall)
authored
46 make -f osos2\Makefile.os2 emx
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
47 goto done
48
49 :debug
50 echo copying config file for debug version...
51 copy osos2\config-with-tcp.h config.h
52 echo building x11 elvis with emx/gcc...
97d8998 @mbert Import Elvis 2.1_4 (written by Steve Kirkendall)
authored
53 make -f osos2\Makefile.os2 debug
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
54 goto done
55
56 :x11
57 echo copying config file for x11 version...
58 copy osos2\config-with-tcp.h config.h
59 echo building x11 elvis with emx/gcc...
97d8998 @mbert Import Elvis 2.1_4 (written by Steve Kirkendall)
authored
60 make -f osos2\Makefile.os2 x11
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
61 goto done
62
63 :withtcp
64 echo copying config file for tcp/ip compile...
65 copy osos2\config-with-tcp.h config.h
66 echo building elvis and misc programs...
2fe6e17 @mbert Import Elvis 2.2_1 (written by Steve Kirkendall)
authored
67 make -f osos2\Makefile.os2 wcc
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
68 goto done
69
97d8998 @mbert Import Elvis 2.1_4 (written by Steve Kirkendall)
authored
70 :package
71 cd exeos2
72 del *gcc.exe
73 cd ..
2fe6e17 @mbert Import Elvis 2.2_1 (written by Steve Kirkendall)
authored
74 make -f osos2/Makefile.os2 elvis-2.2_1-os2.tar.gz
97d8998 @mbert Import Elvis 2.1_4 (written by Steve Kirkendall)
authored
75 goto done
76
77 :all
78 del *.obj *.o >nul
79 call makos2.cmd --with-tcp
80 if errorlevel 1 goto error
81 del *.obj >nul
82 call makos2.cmd --no-tcp
83 if errorlevel 1 goto error
84 del *.obj >nul
85 call makos2.cmd --with-gcc
86 if errorlevel 1 goto error
87 del *.obj >nul
88 call makos2.cmd --with-emx
89 if errorlevel 1 goto error
90 del *.o >nul
91 call makos2.cmd --with-x11
92 if errorlevel 1 goto error
93 del *.o >nul
94 make -f osos2\Makefile.os2 lib\\elvis.INF
95 if errorlevel 1 goto error
96 echo success.
97 goto done
98
99 :error
100 echo build failed, aborted.
101
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
102 :done
Something went wrong with that request. Please try again.