glQuake for the lcc-win32 compiler
current release compilation date: January 1, 2000

This is a port of glQuake source code to the lcc-win32 compiler,
based on the Dec. 21, 1999 code release by ID Software. The code
incorporates Dec. 27, 1999 bug fixes by Matthias "Maddes" Buecher
at the Quake Info Pool.  MASM is used to compile assembly.

The project has been compiled and tested successfully on an AMD K6300
processor with 64Mb RAM and a 4Mb Genoa Rendition Verite board.
Rendition's miniGL driver was used.  Frankly, this old Verite rocks
out on glQuake.  I haven't noticed any new bugs, but you may on
your particular system.  Use at your own risk.

I started the port for my own amusement and was happily surprised
with the results.  I hope others will enjoy it as well.  If there is
interest, I'd like to find a home for related news and discussion.

Jeff Ford


JOURNAL

The changes I made to the source are commented with "jf".

The directory structure of the project is modified from the original
source release to be more lcc-win32-friendly:
qs-lcc:	c sources
  -doc: Docs about this port.
    -origdoc: The gnu licence and other source docs.
  -dxsdk: This and its subdirs from the original source release.
          Directx headers from when I was a lad.
  -gas2masm: A separate lcc project for gas2masm.
    -lcc:  Release directory for gas2masm.  Contains the exe.
  -lcc: Release directory for glQuake.  Contains the exe.
  -lib: Libraries.  See library notes below.
  -libsrc:  Library source.

The opengl32.lib (import library) that comes with lcc does not contain
all the imports required glQuake.  The missing ones were pasted from
the opengl.exp file as necessary and a new opengl32.lib was built.
Note that this does not include all missing opengl imports, so
additional imports may be needed if more opengl features are added.


Steps to create the assembly library:

Create preprocessor output file:
lcc -EP -DGLQUAKE math.s

Remove extra spaces in output file math.i and rename to .spp

Convert:
gas2masm <math.spp >math.asm

MASMize it:
ml /c /Cp /coff /Zm /Zi math.asm

Make library:
lcclib quakeasm.lib *.obj

