From: Philip Brown <phil@bo...> - 2002-02-26 10:03:30
Yes, even more stuff done! :-)
There are now exactly THREE FILES that are OS-specific:
cd_$(OSNAME).c q_$(OSNAME).c snd_$(OSNAME).c
a 'make' in the top-level directory will automatically build them from
the 'correct' place.
The first two files have teeny tiny differences between solaris and linux.
I'm almost embarrassed to have them be still separate.
The biggie is of course sound handling. But for 'porting' to a new OS,
you could just link to ../null/snddma_null.c and you can ignore the trickiest
So, you now have a very cross-platform source base to play with, for
Quake-on-GLX. It should be trivial to add in irix, BSD, HPUX,
possibly even MacOS X.
And as I mention in the README file, it would theoretically be possible to
wedge in another compile target, for the "softx" rendering, etc. But why
FYI: I found the 'bug' in the solaris keyboard input routines:
Id had stripped out keyboard handling, since solaris was going to
be a 'server-only' release. Ha.
With this release, I hope to take a rest from quake2 code fiddling, and
concentrate on actually getting OpenGL performance on my box to be
This one time, at band camp, Philip Brown wrote:
>There are now exactly THREE FILES that are OS-specific:
>cd_$(OSNAME).c q_$(OSNAME).c snd_$(OSNAME).c
>a 'make' in the top-level directory will automatically build them from
>the 'correct' place.
>The first two files have teeny tiny differences between solaris and linux.
>I'm almost embarrassed to have them be still separate.
As a status update for what I've been doing, I now have merged the linux/
and bsd/ trees together into, for want of a better name, src/. I expect to
have the solaris code merged in tomorrow and probably irix RSN too. (win32
is significantly different that I don't want to touch it just yet, I don't
have any win32 machines to check that it still builds on, either).
The important part of this is that you don't have to be embarrassed anymore.
>The biggie is of course sound handling.
I'm intrigued, I'll grab your tarball and check it out. I recently tried to
patch snd_linux.c so that sound worked on PPC (you can't mmap /dev/dsp on
PPC under linux), but that doesn't work completely. If you've done what I
think you've done, then I might be able to use the code from your
"I have a feeling the auditors haven't looked at crontab yet, but I'm
curious to see if they deem a reference to `yogurt sucking maggots' a
security risk as well."
-- Paul Fenwick, scary.devil.monastery