1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
@echo off
if not exist osos2\config-with-tcp.h goto usage
if "%1"=="" goto withtcp
if "%1"=="--no-tcp" goto notcp
if "%1"=="--with-gcc" goto gcc
if "%1"=="--with-emx" goto emx
:usage
echo usage: makos2 [--no-tcp, --with-emx, --with-gcc]
echo the option "--no-tcp" will produce binaries not using the OS/2 TCP/IP APIs.
echo the option "--with-gcc" is like "--no-tcp", but gcc is used instead of icc.
echo the option "--with-emx" will use EMX including TCP/IP and Termcap Interface.
echo else the standard executables with http/ftp abilities will be built.
echo this batch file must be started from within the elvis-2.1 directory.
goto done
:notcp
echo copying config file for non tcp/ip compile...
copy osos2\config-no-tcp.h config.h
echo deleting some object files, don't worry if they do not exist...
del calc.obj dmmarkup.obj ex.obj http.obj io.obj osnet.obj url.obj ftp.obj
echo building non-tcp/ip elvis...
make -f osos2\makefile.os2 ALL="elvis-no-tcp.exe ref.exe ctags.exe fmt.exe
goto done
:gcc
echo copying config file for non tcp/ip compile using gcc...
copy osos2\config-no-tcp.h config.h
echo building non-tcp/ip elvis with emx/gcc...
make -f osos2\makefile.os2 gcc
goto done
:emx
echo copying config file for emx version...
copy osos2\config-with-tcp.h config.h
echo building emx elvis with emx/gcc...
make -f osos2\makefile.os2 emx
goto done
:withtcp
echo copying config file for tcp/ip compile...
copy osos2\config-with-tcp.h config.h
echo building elvis and misc programs...
make -f osos2\makefile.os2 all
goto done
:done
|