Compiling servers
How to compile servers?
Only for RAIN developers.
- Get Watcom C/C++.
- Make amp11 library (subset of
amp11)
from sources in /src/amp. amp11 requires Watcom 11.0 and Wmake.
- Get Midas (I used and recommend
version 1.1.2).
- Bugfix and enhance Midas with /src/midas files.
Note: Midas 1.1.2 bugs (midasdll.c, doscnf.c, win32cnf.c) must be fixed
(see Midas buglist)
and file access (file.*) and wav decoder (midasfx.*) slightly enhanced
before using it.
It's possible to compile only these files, not whole Midas,
and give .objs to linker, the same code with bugs from midas.lib will not
be used.
Also Midas timer code was modified in precompiled RAIN servers
so that background play doesn't
speed up timer (buffers must be longer then,
in sdevice.h DMABUFLEN 10 (was 25), in dsm.h MIXBUFLEN 10 (was 40)).
You don't have to do this modification, clients just
won't be allowed to speed-up timer.
- Make Midas library with Watcom.
- Set paths in makefile and make RAIN servers. Of course with Watcom.
Windows server (rain-win.c) may also be compiled with other compilers, but
it wasn't tested, DOS server (rain-dos.c) needs Watcom because of DOS4GW.
Note: Stub.exe (stub.c) is stub for windows RAIN.EXE server.
It calls DOS server with DOS4GW.EXE RAIN.LE command.
Stub is inserted by Watcom linker option 'option stub=stub.exe'.