Subversion Repositories Kolibri OS

Compare Revisions

No changes between revisions

Ignore whitespace Rev 5130 → Rev 5131

/contrib/other/sdlquake-1.0.9/3dfx.txt
0,0 → 1,69
GLQuake Drivers
 
Graphics Subsystem: Voodoo Graphics or Voodoo Rush
 
Copyright ( 1997 3Dfx Interactive, Inc. )
All Rights Reserved
 
3Dfx Interactive, Inc.
www: www.3dfx.com
news: news.3dfx.com
 
-----------------------------------------------------------------------
NOTE: GLQuake requires DirectX support DirectSound. DirectX can be
installed from the media provided with your Voodoo Based 3D Accelerator.
 
Glide 2.31 or HIGHER runtime drivers *MUST* be installed to use this
GLQuake driver. Please download these drivers from your board
manufacturer OR unsupported drivers from http://www.3dfx.com
-----------------------------------------------------------------------
 
Release Notes for GLQuake's mini-GL driver
 
What's in the distribution?
---------------------------
 
This distribution contains GLQuake Drivers for Voodoo Based 3D
Accelerators. These drivers were tested on the following boards:
 
Voodoo Graphics:
- Quantum 3D Obsidian
- Diamond Monster 3D
- Orchid Righteous 3D
- Deltron Realvision Flash 3D
- Guillemot MaxiGamer
- Skywell Magic 3D
 
Voodoo Rush:
- Hercules Stringray 128-3D
- Intergraph Intense 3D Voodoo
- Jazz Multimedia Adrenaline Rush
 
NOTE: The enclosed drivers are not meant to replace any Direct3D or
Glide drivers provided by your Voodoo Graphics card manufacturer.
Please obtain supported drivers from your board manufacturer.
 
OEMSR2 and NT users: Do NOT replace OPENGL32.DLL located in your
Windows\SYSTEM directory.
 
Requirements
------------
 
- Voodoo Graphics or Voodoo Rush Based 3D Accelerator
- Windows 95 (Windows NT is supported for Voodoo Rush)
- A PC with a Pentium 90 or higher CPU
- 16MB of RAM
- 2D Video card set at 16 bit color
 
Support and Frequently Asked Questions
--------------------------------------
 
GLQuake is currently unsupported. You may however find answers to
questions on various Quake dedicated websites. 3Dfx provides a GLQuake
newsgroup on news.3dfx.com (Newsgroup name is 3dfx.games.glquake ) to
discuss GLQuake with other users. 3Dfx also provides a regularly
updated GLQuake FAQ at: http://www.3dfx.com/game_dev/quake_faq.html
 
 
Voodoo Graphics and Voodoo Rush are trademarks of 3Dfx Interactive, Inc.
All other trademarks are the property of their respective owners.
/contrib/other/sdlquake-1.0.9/COPYING
0,0 → 1,87
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
 
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too.
 
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
 
To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
 
For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
 
We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
 
Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
 
Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
 
The precise terms and conditions for copying, distribution and modification follow.
 
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
 
Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
 
1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
 
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
 
2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
 
 
a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
 
b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
 
c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
 
In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
 
3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
 
a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
 
b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
 
c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
 
4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
 
5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
 
6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
 
7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
 
If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
 
It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
 
This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
 
8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
 
9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
 
Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
 
10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
 
NO WARRANTY
 
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
 
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
 
 
END OF TERMS AND CONDITIONS
/contrib/other/sdlquake-1.0.9/Makefile.Solaris
0,0 → 1,483
#
# Quake Makefile for Solaris
#
# Nov '97 by Zoid <zoid@idsoftware.com>
#
# ELF only
#
 
VERSION=1.09
 
ifneq (,$(findstring i86pc,$(shell uname -m)))
ARCH=i386
else
ARCH=sparc
endif
 
MOUNT_DIR=/grog/Projects/WinQuake
 
BUILD_DEBUG_DIR=debug$(ARCH)
BUILD_RELEASE_DIR=release$(ARCH)
 
CC=gcc
BASE_CFLAGS=-I/usr/openwin/include
 
RELEASE_CFLAGS=$(BASE_CFLAGS) -O6 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations
DEBUG_CFLAGS=$(BASE_CFLAGS) -g
LDFLAGS=-R /usr/openwin/lib -L /usr/openwin/lib -lm -lX11 -lXext -lsocket -lnsl -lthread -ldl
XIL_LDFLAGS=-L /opt/SUNWits/Graphics-sw/xil/lib -R /opt/SUNWits/Graphics-sw/xil/lib:/usr/openwin/lib -L /usr/openwin/lib -lm -lxil -lX11 -lXext -lsocket -lnsl -lthread -ldl
 
DO_CC=$(CC) $(CFLAGS) -o $@ -c $<
DO_AS=$(CC) $(CFLAGS) -DELF -x assembler-with-cpp -o $@ -c $<
 
#############################################################################
# SETUP AND BUILD
#############################################################################
 
TARGETS=$(BUILDDIR)/quake.sw $(BUILDDIR)/quake.xil
 
build_debug:
@-mkdir $(BUILD_DEBUG_DIR)
$(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)"
 
build_release:
@-mkdir $(BUILD_RELEASE_DIR)
$(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(RELEASE_CFLAGS)"
 
all: build_debug build_release
 
targets: $(TARGETS)
 
#############################################################################
# CLIENT/SERVER
#############################################################################
 
QUAKE_OBJS= \
$(BUILDDIR)/chase.o \
$(BUILDDIR)/cl_demo.o \
$(BUILDDIR)/cl_input.o \
$(BUILDDIR)/cl_main.o \
$(BUILDDIR)/cl_parse.o \
$(BUILDDIR)/cl_tent.o \
$(BUILDDIR)/cmd.o \
$(BUILDDIR)/common.o \
$(BUILDDIR)/console.o \
$(BUILDDIR)/crc.o \
$(BUILDDIR)/cvar.o \
$(BUILDDIR)/draw.o \
$(BUILDDIR)/d_edge.o \
$(BUILDDIR)/d_fill.o \
$(BUILDDIR)/d_init.o \
$(BUILDDIR)/d_modech.o \
$(BUILDDIR)/d_part.o \
$(BUILDDIR)/d_polyse.o \
$(BUILDDIR)/d_scan.o \
$(BUILDDIR)/d_sky.o \
$(BUILDDIR)/d_sprite.o \
$(BUILDDIR)/d_surf.o \
$(BUILDDIR)/d_vars.o \
$(BUILDDIR)/d_zpoint.o \
$(BUILDDIR)/host.o \
$(BUILDDIR)/host_cmd.o \
$(BUILDDIR)/keys.o \
$(BUILDDIR)/menu.o \
$(BUILDDIR)/mathlib.o \
$(BUILDDIR)/model.o \
$(BUILDDIR)/nonintel.o \
$(BUILDDIR)/pr_cmds.o \
$(BUILDDIR)/pr_edict.o \
$(BUILDDIR)/pr_exec.o \
$(BUILDDIR)/r_aclip.o \
$(BUILDDIR)/r_alias.o \
$(BUILDDIR)/r_bsp.o \
$(BUILDDIR)/r_light.o \
$(BUILDDIR)/r_draw.o \
$(BUILDDIR)/r_efrag.o \
$(BUILDDIR)/r_edge.o \
$(BUILDDIR)/r_misc.o \
$(BUILDDIR)/r_main.o \
$(BUILDDIR)/r_sky.o \
$(BUILDDIR)/r_sprite.o \
$(BUILDDIR)/r_surf.o \
$(BUILDDIR)/r_part.o \
$(BUILDDIR)/r_vars.o \
$(BUILDDIR)/screen.o \
$(BUILDDIR)/sbar.o \
$(BUILDDIR)/sv_main.o \
$(BUILDDIR)/sv_phys.o \
$(BUILDDIR)/sv_move.o \
$(BUILDDIR)/sv_user.o \
$(BUILDDIR)/zone.o \
$(BUILDDIR)/view.o \
$(BUILDDIR)/wad.o \
$(BUILDDIR)/world.o \
$(BUILDDIR)/cd_null.o \
$(BUILDDIR)/snd_dma.o \
$(BUILDDIR)/snd_mix.o \
$(BUILDDIR)/snd_mem.o \
$(BUILDDIR)/net_dgrm.o \
$(BUILDDIR)/net_loop.o \
$(BUILDDIR)/net_main.o \
$(BUILDDIR)/net_vcr.o \
$(BUILDDIR)/net_udp.o \
$(BUILDDIR)/net_bsd.o \
$(BUILDDIR)/sys_sun.o \
$(BUILDDIR)/snd_sun.o
 
QUAKE_AS_OBJS= \
$(BUILDDIR)/d_copy.o \
$(BUILDDIR)/d_draw.o \
$(BUILDDIR)/d_draw16.o \
$(BUILDDIR)/d_parta.o \
$(BUILDDIR)/d_polysa.o \
$(BUILDDIR)/d_scana.o \
$(BUILDDIR)/d_spr8.o \
$(BUILDDIR)/d_varsa.o \
$(BUILDDIR)/math.o \
$(BUILDDIR)/r_aliasa.o \
$(BUILDDIR)/r_drawa.o \
$(BUILDDIR)/r_edgea.o \
$(BUILDDIR)/r_varsa.o \
$(BUILDDIR)/surf16.o \
$(BUILDDIR)/surf8.o \
$(BUILDDIR)/worlda.o \
$(BUILDDIR)/r_aclipa.o \
$(BUILDDIR)/snd_mixa.o \
$(BUILDDIR)/sys_dosa.o
 
QUAKE_X_OBJS = $(BUILDDIR)/vid_sunx.o
 
QUAKE_XIL_OBJS = $(BUILDDIR)/vid_sunxil.o
 
ifeq ($(ARCH),i386)
$(BUILDDIR)/quake.sw : $(QUAKE_OBJS) $(QUAKE_AS_OBJS) $(QUAKE_X_OBJS)
$(CC) -o $(@) $(QUAKE_OBJS) $(QUAKE_AS_OBJS) $(QUAKE_X_OBJS) $(LDFLAGS)
 
$(BUILDDIR)/quake.xil: $(QUAKE_OBJS) $(QUAKE_AS_OBJS) $(QUAKE_XIL_OBJS)
$(CC) -o $(@) $(QUAKE_OBJS) $(QUAKE_AS_OBJS) $(QUAKE_XIL_OBJS) $(XIL_LDFLAGS)
else
$(BUILDDIR)/quake.sw : $(QUAKE_OBJS) $(QUAKE_X_OBJS)
$(CC) -o $(@) $(QUAKE_OBJS) $(QUAKE_X_OBJS) $(LDFLAGS)
 
$(BUILDDIR)/quake.xil: $(QUAKE_OBJS) $(QUAKE_XIL_OBJS)
$(CC) -o $(@) $(QUAKE_OBJS) $(QUAKE_XIL_OBJS) $(XIL_LDFLAGS)
endif
 
##
 
$(BUILDDIR)/chase.o : $(MOUNT_DIR)/chase.c
$(DO_CC)
 
$(BUILDDIR)/cl_demo.o : $(MOUNT_DIR)/cl_demo.c
$(DO_CC)
 
$(BUILDDIR)/cl_input.o : $(MOUNT_DIR)/cl_input.c
$(DO_CC)
 
$(BUILDDIR)/cl_main.o : $(MOUNT_DIR)/cl_main.c
$(DO_CC)
 
$(BUILDDIR)/cl_parse.o : $(MOUNT_DIR)/cl_parse.c
$(DO_CC)
 
$(BUILDDIR)/cl_tent.o : $(MOUNT_DIR)/cl_tent.c
$(DO_CC)
 
$(BUILDDIR)/cmd.o : $(MOUNT_DIR)/cmd.c
$(DO_CC)
 
$(BUILDDIR)/common.o : $(MOUNT_DIR)/common.c
$(DO_CC)
 
$(BUILDDIR)/console.o : $(MOUNT_DIR)/console.c
$(DO_CC)
 
$(BUILDDIR)/crc.o : $(MOUNT_DIR)/crc.c
$(DO_CC)
 
$(BUILDDIR)/cvar.o : $(MOUNT_DIR)/cvar.c
$(DO_CC)
 
$(BUILDDIR)/draw.o : $(MOUNT_DIR)/draw.c
$(DO_CC)
 
$(BUILDDIR)/d_edge.o : $(MOUNT_DIR)/d_edge.c
$(DO_CC)
 
$(BUILDDIR)/d_fill.o : $(MOUNT_DIR)/d_fill.c
$(DO_CC)
 
$(BUILDDIR)/d_init.o : $(MOUNT_DIR)/d_init.c
$(DO_CC)
 
$(BUILDDIR)/d_modech.o : $(MOUNT_DIR)/d_modech.c
$(DO_CC)
 
$(BUILDDIR)/d_part.o : $(MOUNT_DIR)/d_part.c
$(DO_CC)
 
$(BUILDDIR)/d_polyse.o : $(MOUNT_DIR)/d_polyse.c
$(DO_CC)
 
$(BUILDDIR)/d_scan.o : $(MOUNT_DIR)/d_scan.c
$(DO_CC)
 
$(BUILDDIR)/d_sky.o : $(MOUNT_DIR)/d_sky.c
$(DO_CC)
 
$(BUILDDIR)/d_sprite.o : $(MOUNT_DIR)/d_sprite.c
$(DO_CC)
 
$(BUILDDIR)/d_surf.o : $(MOUNT_DIR)/d_surf.c
$(DO_CC)
 
$(BUILDDIR)/d_vars.o : $(MOUNT_DIR)/d_vars.c
$(DO_CC)
 
$(BUILDDIR)/d_zpoint.o : $(MOUNT_DIR)/d_zpoint.c
$(DO_CC)
 
$(BUILDDIR)/host.o : $(MOUNT_DIR)/host.c
$(DO_CC)
 
$(BUILDDIR)/host_cmd.o : $(MOUNT_DIR)/host_cmd.c
$(DO_CC)
 
$(BUILDDIR)/keys.o : $(MOUNT_DIR)/keys.c
$(DO_CC)
 
$(BUILDDIR)/menu.o : $(MOUNT_DIR)/menu.c
$(DO_CC)
 
$(BUILDDIR)/mathlib.o : $(MOUNT_DIR)/mathlib.c
$(DO_CC)
 
$(BUILDDIR)/model.o : $(MOUNT_DIR)/model.c
$(DO_CC)
 
$(BUILDDIR)/nonintel.o : $(MOUNT_DIR)/nonintel.c
$(DO_CC)
 
$(BUILDDIR)/pr_cmds.o : $(MOUNT_DIR)/pr_cmds.c
$(DO_CC)
 
$(BUILDDIR)/pr_edict.o : $(MOUNT_DIR)/pr_edict.c
$(DO_CC)
 
$(BUILDDIR)/pr_exec.o : $(MOUNT_DIR)/pr_exec.c
$(DO_CC)
 
$(BUILDDIR)/r_aclip.o : $(MOUNT_DIR)/r_aclip.c
$(DO_CC)
 
$(BUILDDIR)/r_alias.o : $(MOUNT_DIR)/r_alias.c
$(DO_CC)
 
$(BUILDDIR)/r_bsp.o : $(MOUNT_DIR)/r_bsp.c
$(DO_CC)
 
$(BUILDDIR)/r_light.o : $(MOUNT_DIR)/r_light.c
$(DO_CC)
 
$(BUILDDIR)/r_draw.o : $(MOUNT_DIR)/r_draw.c
$(DO_CC)
 
$(BUILDDIR)/r_efrag.o : $(MOUNT_DIR)/r_efrag.c
$(DO_CC)
 
$(BUILDDIR)/r_edge.o : $(MOUNT_DIR)/r_edge.c
$(DO_CC)
 
$(BUILDDIR)/r_misc.o : $(MOUNT_DIR)/r_misc.c
$(DO_CC)
 
$(BUILDDIR)/r_main.o : $(MOUNT_DIR)/r_main.c
$(DO_CC)
 
$(BUILDDIR)/r_sky.o : $(MOUNT_DIR)/r_sky.c
$(DO_CC)
 
$(BUILDDIR)/r_sprite.o : $(MOUNT_DIR)/r_sprite.c
$(DO_CC)
 
$(BUILDDIR)/r_surf.o : $(MOUNT_DIR)/r_surf.c
$(DO_CC)
 
$(BUILDDIR)/r_part.o : $(MOUNT_DIR)/r_part.c
$(DO_CC)
 
$(BUILDDIR)/r_vars.o : $(MOUNT_DIR)/r_vars.c
$(DO_CC)
 
$(BUILDDIR)/screen.o : $(MOUNT_DIR)/screen.c
$(DO_CC)
 
$(BUILDDIR)/sbar.o : $(MOUNT_DIR)/sbar.c
$(DO_CC)
 
$(BUILDDIR)/sv_main.o : $(MOUNT_DIR)/sv_main.c
$(DO_CC)
 
$(BUILDDIR)/sv_phys.o : $(MOUNT_DIR)/sv_phys.c
$(DO_CC)
 
$(BUILDDIR)/sv_move.o : $(MOUNT_DIR)/sv_move.c
$(DO_CC)
 
$(BUILDDIR)/sv_user.o : $(MOUNT_DIR)/sv_user.c
$(DO_CC)
 
$(BUILDDIR)/zone.o : $(MOUNT_DIR)/zone.c
$(DO_CC)
 
$(BUILDDIR)/view.o : $(MOUNT_DIR)/view.c
$(DO_CC)
 
$(BUILDDIR)/wad.o : $(MOUNT_DIR)/wad.c
$(DO_CC)
 
$(BUILDDIR)/world.o : $(MOUNT_DIR)/world.c
$(DO_CC)
 
$(BUILDDIR)/cd_null.o : $(MOUNT_DIR)/cd_null.c
$(DO_CC)
 
$(BUILDDIR)/snd_dma.o : $(MOUNT_DIR)/snd_dma.c
$(DO_CC)
 
$(BUILDDIR)/snd_mix.o : $(MOUNT_DIR)/snd_mix.c
$(DO_CC)
 
$(BUILDDIR)/snd_mem.o : $(MOUNT_DIR)/snd_mem.c
$(DO_CC)
 
$(BUILDDIR)/net_dgrm.o : $(MOUNT_DIR)/net_dgrm.c
$(DO_CC)
 
$(BUILDDIR)/net_loop.o : $(MOUNT_DIR)/net_loop.c
$(DO_CC)
 
$(BUILDDIR)/net_main.o : $(MOUNT_DIR)/net_main.c
$(DO_CC)
 
$(BUILDDIR)/net_vcr.o : $(MOUNT_DIR)/net_vcr.c
$(DO_CC)
 
$(BUILDDIR)/net_udp.o : $(MOUNT_DIR)/net_udp.c
$(DO_CC)
 
$(BUILDDIR)/net_bsd.o : $(MOUNT_DIR)/net_bsd.c
$(DO_CC)
 
$(BUILDDIR)/sys_sun.o : $(MOUNT_DIR)/sys_sun.c
$(DO_CC)
 
$(BUILDDIR)/snd_sun.o : $(MOUNT_DIR)/snd_sun.c
$(DO_CC)
 
$(BUILDDIR)/in_sun.o : $(MOUNT_DIR)/in_sun.c
$(DO_CC)
 
$(BUILDDIR)/vid_sunx.o : $(MOUNT_DIR)/vid_sunx.c
$(DO_CC)
 
$(BUILDDIR)/vid_sunxil.o : $(MOUNT_DIR)/vid_sunxil.c
$(DO_CC)
 
#####
 
$(BUILDDIR)/d_copy.o : $(MOUNT_DIR)/d_copy.s
$(DO_AS)
 
$(BUILDDIR)/d_draw.o : $(MOUNT_DIR)/d_draw.s
$(DO_AS)
 
$(BUILDDIR)/d_draw16.o : $(MOUNT_DIR)/d_draw16.s
$(DO_AS)
 
$(BUILDDIR)/d_parta.o : $(MOUNT_DIR)/d_parta.s
$(DO_AS)
 
$(BUILDDIR)/d_polysa.o : $(MOUNT_DIR)/d_polysa.s
$(DO_AS)
 
$(BUILDDIR)/d_scana.o : $(MOUNT_DIR)/d_scana.s
$(DO_AS)
 
$(BUILDDIR)/d_spr8.o : $(MOUNT_DIR)/d_spr8.s
$(DO_AS)
 
$(BUILDDIR)/d_varsa.o : $(MOUNT_DIR)/d_varsa.s
$(DO_AS)
 
$(BUILDDIR)/math.o : $(MOUNT_DIR)/math.s
$(DO_AS)
 
$(BUILDDIR)/r_aliasa.o : $(MOUNT_DIR)/r_aliasa.s
$(DO_AS)
 
$(BUILDDIR)/r_drawa.o : $(MOUNT_DIR)/r_drawa.s
$(DO_AS)
 
$(BUILDDIR)/r_edgea.o : $(MOUNT_DIR)/r_edgea.s
$(DO_AS)
 
$(BUILDDIR)/r_varsa.o : $(MOUNT_DIR)/r_varsa.s
$(DO_AS)
 
$(BUILDDIR)/surf16.o : $(MOUNT_DIR)/surf16.s
$(DO_AS)
 
$(BUILDDIR)/surf8.o : $(MOUNT_DIR)/surf8.s
$(DO_AS)
 
$(BUILDDIR)/worlda.o : $(MOUNT_DIR)/worlda.s
$(DO_AS)
 
$(BUILDDIR)/r_aclipa.o : $(MOUNT_DIR)/r_aclipa.s
$(DO_AS)
 
$(BUILDDIR)/snd_mixa.o : $(MOUNT_DIR)/snd_mixa.s
$(DO_AS)
 
$(BUILDDIR)/sys_dosa.o : $(MOUNT_DIR)/sys_dosa.s
$(DO_AS)
 
#############################################################################
# TAR
#############################################################################
 
# Make RPMs. You need to be root to make this work
RPMDIR = /var/tmp/quake-$(VERSION)
 
tar:
if [ ! -d archives ];then mkdir archives;fi
$(MAKE) copyfiles COPYDIR=$(RPMDIR)
cd $(RPMDIR); tar cvf q2ded-$(VERSION)-$(ARCH)-sun-solaris2.5.1.tar *
cd $(RPMDIR); compress q2ded-$(VERSION)-$(ARCH)-sun-solaris2.5.1.tar
mv $(RPMDIR)/*.tar.Z archives/.
rm -rf $(RPMDIR)
 
copyfiles:
-mkdirhier $(COPYDIR)
cp $(BUILD_RELEASE_DIR)/quake.sw $(COPYDIR)
cp $(BUILD_RELEASE_DIR)/quake.xil $(COPYDIR)
strip $(COPYDIR)/quake
strip $(COPYDIR)/quake.xil
cp $(MOUNT_DIR)/README.Solaris $(COPYDIR)/README.Solaris
 
#############################################################################
# MISC
#############################################################################
 
clean: clean-debug clean-release
 
clean-debug:
$(MAKE) clean2 BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)"
 
clean-release:
$(MAKE) clean2 BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(DEBUG_CFLAGS)"
 
clean2:
-rm -f $(QUAKE_OBJS) $(QUAKE_X_OBJS) $(QUAKE_XIL_OBJS)
 
/contrib/other/sdlquake-1.0.9/Makefile.am
0,0 → 1,292
 
bin_PROGRAMS = sdlquake
 
sdlquake_LDADD = @MATHLIB@ @INETLIB@
 
sdlquake_SOURCES = \
adivtab.h \
anorm_dots.h \
anorms.h \
asm_draw.h \
asm_i386.h \
block16.h \
block8.h \
bspfile.h \
cd_sdl.c \
cdaudio.h \
chase.c \
cl_demo.c \
cl_input.c \
cl_main.c \
cl_parse.c \
cl_tent.c \
clean.bat \
client.h \
cmd.c \
cmd.h \
common.c \
common.h \
conproc.h \
console.c \
console.h \
crc.c \
crc.h \
cvar.c \
cvar.h \
d_copy.S \
d_edge.c \
d_fill.c \
d_iface.h \
d_ifacea.h \
d_init.c \
d_local.h \
d_modech.c \
d_part.c \
d_polyse.c \
d_scan.c \
d_sky.c \
d_sprite.c \
d_surf.c \
d_zpoint.c \
dosasm.S \
dosisms.h \
draw.c \
draw.h \
host.c \
host_cmd.c \
input.h \
keys.c \
keys.h \
mathlib.c \
mathlib.h \
menu.c \
menu.h \
model.c \
model.h \
modelgen.h \
mpdosock.h \
net.h \
net_bsd.c \
net_bw.h \
net_dgrm.c \
net_dgrm.h \
net_loop.c \
net_loop.h \
net_main.c \
net_udp.c \
net_udp.h \
net_vcr.c \
net_vcr.h \
net_wso.c \
pr_cmds.c \
pr_comp.h \
pr_edict.c \
pr_exec.c \
progdefs.h \
progs.h \
protocol.h \
quakeasm.h \
quakedef.h \
r_aclip.c \
r_alias.c \
r_bsp.c \
r_draw.c \
r_edge.c \
r_efrag.c \
r_light.c \
r_local.h \
r_main.c \
r_misc.c \
r_part.c \
r_shared.h \
r_sky.c \
r_sprite.c \
r_surf.c \
r_vars.c \
r_varsa.S \
render.h \
resource.h \
sbar.c \
sbar.h \
scitech \
screen.c \
screen.h \
server.h \
snd_dma.c \
snd_mem.c \
snd_mix.c \
snd_sdl.c \
sound.h \
spritegn.h \
sv_main.c \
sv_move.c \
sv_phys.c \
sv_user.c \
sys.h \
sys_sdl.c \
vgamodes.h \
vid.h \
vid_sdl.c \
view.c \
view.h \
wad.c \
wad.h \
winquake.h \
world.c \
world.h \
zone.c \
zone.h \
$(X86_SRCS) $(NONX86_SRCS)
 
X86_SRCS = \
snd_mixa.S \
sys_dosa.S \
d_draw.S \
d_draw16.S \
d_parta.S \
d_polysa.S \
d_scana.S \
d_spr8.S \
d_varsa.S \
math.S \
r_aclipa.S \
r_aliasa.S \
r_drawa.S \
r_edgea.S \
surf16.S \
surf8.S \
worlda.S
 
NONX86_SRCS = \
d_vars.c \
nonintel.c
 
 
NULL_SRCS = \
cd_null.c \
in_null.c \
net_none.c \
snd_null.c \
sys_null.c \
vid_null.c
 
DOS_SRCS = \
cd_audio.c \
dos_v2.c \
in_dos.c \
mplib.c \
mplpc.c \
net_bw.c \
net_comx.c \
net_dos.c \
net_ipx.c \
net_ipx.h \
net_ser.c \
net_ser.h \
snd_dos.c \
snd_gus.c \
sys_dos.c \
vid_dos.c \
vid_dos.h \
vid_ext.c \
vid_vga.c \
vregset.c \
vregset.h
 
WIN_SRCS = \
cd_win.c \
conproc.c \
in_win.c \
net_mp.c \
net_mp.h \
net_win.c \
net_wins.c \
net_wins.h \
net_wipx.c \
net_wipx.h \
snd_win.c \
sys_win.c \
sys_wina.S \
sys_wind.c \
vid_win.c
 
LNX_SRCS = \
cd_linux.c \
snd_linux.c \
sys_linux.c \
vid_svgalib.c \
vid_x.c
 
SUN_SRCS = \
snd_sun.c \
in_sun.c \
sys_sun.c \
vid_sunx.c \
vid_sunxil.c
 
NEXT_SRCS = \
snd_next.c
 
GL_SRCS = \
gl_draw.c \
gl_mesh.c \
gl_model.c \
gl_model.h \
gl_refrag.c \
gl_rlight.c \
gl_rmain.c \
gl_rmisc.c \
gl_rsurf.c \
gl_screen.c \
gl_test.c \
gl_vidlinux.c \
gl_vidlinuxglx.c \
gl_vidnt.c \
gl_warp.c \
gl_warp_sin.h \
glquake.h \
glquake2.h
 
EXTRA_DIST = \
README.SDL \
3dfx.txt \
Makefile.Solaris \
Makefile.linuxi386 \
README.Solaris \
WinQuake.dsp \
WinQuake.dsw \
WinQuake.mdp \
WinQuake.ncb \
WinQuake.opt \
WinQuake.plg \
cwsdpmi.exe \
glqnotes.txt \
makezip.bat \
progdefs.q1 \
progdefs.q2 \
q.bat \
qa.bat \
qb.bat \
qe3.ico \
qt.bat \
quake-data.spec.sh \
quake-hipnotic.spec.sh \
quake-rogue.spec.sh \
quake-shareware.spec.sh \
quake.gif \
quake.ico \
quake.spec.sh \
winquake.aps \
winquake.rc \
wq.bat \
wqreadme.txt \
$(NULL_SRCS) \
$(DOS_SRCS) \
$(WIN_SRCS) \
$(LNX_SRCS) \
$(SUN_SRCS) \
$(NEXT_SRCS) \
$(GL_SRCS)
 
dist-hook:
cp -rp data docs dxsdk gas2masm kit scitech $(distdir)/
/contrib/other/sdlquake-1.0.9/Makefile.in
0,0 → 1,765
# Makefile.in generated automatically by automake 1.4 from Makefile.am
 
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
 
 
SHELL = @SHELL@
 
srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
 
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include
 
DESTDIR =
 
pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
 
top_builddir = .
 
ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@
 
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@
 
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias = @host_alias@
host_triplet = @host@
CC = @CC@
ICONOBJ = @ICONOBJ@
INETLIB = @INETLIB@
MAKEINFO = @MAKEINFO@
MATHLIB = @MATHLIB@
PACKAGE = @PACKAGE@
SDL_CFLAGS = @SDL_CFLAGS@
SDL_CONFIG = @SDL_CONFIG@
SDL_LIBS = @SDL_LIBS@
VERSION = @VERSION@
 
bin_PROGRAMS = sdlquake
 
sdlquake_LDADD = @MATHLIB@ @INETLIB@
 
sdlquake_SOURCES = adivtab.h anorm_dots.h anorms.h asm_draw.h asm_i386.h block16.h block8.h bspfile.h cd_sdl.c cdaudio.h chase.c cl_demo.c cl_input.c cl_main.c cl_parse.c cl_tent.c clean.bat client.h cmd.c cmd.h common.c common.h conproc.h console.c console.h crc.c crc.h cvar.c cvar.h d_copy.S d_edge.c d_fill.c d_iface.h d_ifacea.h d_init.c d_local.h d_modech.c d_part.c d_polyse.c d_scan.c d_sky.c d_sprite.c d_surf.c d_zpoint.c dosasm.S dosisms.h draw.c draw.h host.c host_cmd.c input.h keys.c keys.h mathlib.c mathlib.h menu.c menu.h model.c model.h modelgen.h mpdosock.h net.h net_bsd.c net_bw.h net_dgrm.c net_dgrm.h net_loop.c net_loop.h net_main.c net_udp.c net_udp.h net_vcr.c net_vcr.h net_wso.c pr_cmds.c pr_comp.h pr_edict.c pr_exec.c progdefs.h progs.h protocol.h quakeasm.h quakedef.h r_aclip.c r_alias.c r_bsp.c r_draw.c r_edge.c r_efrag.c r_light.c r_local.h r_main.c r_misc.c r_part.c r_shared.h r_sky.c r_sprite.c r_surf.c r_vars.c r_varsa.S render.h resource.h sbar.c sbar.h scitech screen.c screen.h server.h snd_dma.c snd_mem.c snd_mix.c snd_sdl.c sound.h spritegn.h sv_main.c sv_move.c sv_phys.c sv_user.c sys.h sys_sdl.c vgamodes.h vid.h vid_sdl.c view.c view.h wad.c wad.h winquake.h world.c world.h zone.c zone.h $(X86_SRCS) $(NONX86_SRCS)
 
 
X86_SRCS = snd_mixa.S sys_dosa.S d_draw.S d_draw16.S d_parta.S d_polysa.S d_scana.S d_spr8.S d_varsa.S math.S r_aclipa.S r_aliasa.S r_drawa.S r_edgea.S surf16.S surf8.S worlda.S
 
 
NONX86_SRCS = d_vars.c nonintel.c
 
 
NULL_SRCS = cd_null.c in_null.c net_none.c snd_null.c sys_null.c vid_null.c
 
 
DOS_SRCS = cd_audio.c dos_v2.c in_dos.c mplib.c mplpc.c net_bw.c net_comx.c net_dos.c net_ipx.c net_ipx.h net_ser.c net_ser.h snd_dos.c snd_gus.c sys_dos.c vid_dos.c vid_dos.h vid_ext.c vid_vga.c vregset.c vregset.h
 
 
WIN_SRCS = cd_win.c conproc.c in_win.c net_mp.c net_mp.h net_win.c net_wins.c net_wins.h net_wipx.c net_wipx.h snd_win.c sys_win.c sys_wina.S sys_wind.c vid_win.c
 
 
LNX_SRCS = cd_linux.c snd_linux.c sys_linux.c vid_svgalib.c vid_x.c
 
 
SUN_SRCS = snd_sun.c in_sun.c sys_sun.c vid_sunx.c vid_sunxil.c
 
 
NEXT_SRCS = snd_next.c
 
 
GL_SRCS = gl_draw.c gl_mesh.c gl_model.c gl_model.h gl_refrag.c gl_rlight.c gl_rmain.c gl_rmisc.c gl_rsurf.c gl_screen.c gl_test.c gl_vidlinux.c gl_vidlinuxglx.c gl_vidnt.c gl_warp.c gl_warp_sin.h glquake.h glquake2.h
 
 
EXTRA_DIST = README.SDL 3dfx.txt Makefile.Solaris Makefile.linuxi386 README.Solaris WinQuake.dsp WinQuake.dsw WinQuake.mdp WinQuake.ncb WinQuake.opt WinQuake.plg cwsdpmi.exe glqnotes.txt makezip.bat progdefs.q1 progdefs.q2 q.bat qa.bat qb.bat qe3.ico qt.bat quake-data.spec.sh quake-hipnotic.spec.sh quake-rogue.spec.sh quake-shareware.spec.sh quake.gif quake.ico quake.spec.sh winquake.aps winquake.rc wq.bat wqreadme.txt $(NULL_SRCS) $(DOS_SRCS) $(WIN_SRCS) $(LNX_SRCS) $(SUN_SRCS) $(NEXT_SRCS) $(GL_SRCS)
 
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
PROGRAMS = $(bin_PROGRAMS)
 
 
DEFS = @DEFS@ -I. -I$(srcdir)
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
sdlquake_OBJECTS = cd_sdl.o chase.o cl_demo.o cl_input.o cl_main.o \
cl_parse.o cl_tent.o cmd.o common.o console.o crc.o cvar.o d_copy.o \
d_edge.o d_fill.o d_init.o d_modech.o d_part.o d_polyse.o d_scan.o \
d_sky.o d_sprite.o d_surf.o d_zpoint.o dosasm.o draw.o host.o \
host_cmd.o keys.o mathlib.o menu.o model.o net_bsd.o net_dgrm.o \
net_loop.o net_main.o net_udp.o net_vcr.o net_wso.o pr_cmds.o \
pr_edict.o pr_exec.o r_aclip.o r_alias.o r_bsp.o r_draw.o r_edge.o \
r_efrag.o r_light.o r_main.o r_misc.o r_part.o r_sky.o r_sprite.o \
r_surf.o r_vars.o r_varsa.o sbar.o screen.o snd_dma.o snd_mem.o \
snd_mix.o snd_sdl.o sv_main.o sv_move.o sv_phys.o sv_user.o sys_sdl.o \
vid_sdl.o view.o wad.o world.o zone.o snd_mixa.o sys_dosa.o d_draw.o \
d_draw16.o d_parta.o d_polysa.o d_scana.o d_spr8.o d_varsa.o math.o \
r_aclipa.o r_aliasa.o r_drawa.o r_edgea.o surf16.o surf8.o worlda.o \
d_vars.o nonintel.o
sdlquake_DEPENDENCIES =
sdlquake_LDFLAGS =
CFLAGS = @CFLAGS@
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
CCLD = $(CC)
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
DIST_COMMON = COPYING Makefile.am Makefile.in acinclude.m4 aclocal.m4 \
config.guess config.sub configure configure.in install-sh missing \
mkinstalldirs
 
 
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 
TAR = gtar
GZIP_ENV = --best
SOURCES = $(sdlquake_SOURCES)
OBJECTS = $(sdlquake_OBJECTS)
 
all: all-redirect
.SUFFIXES:
.SUFFIXES: .S .c .o .s
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps Makefile
 
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
cd $(top_builddir) \
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
 
$(ACLOCAL_M4): configure.in acinclude.m4
cd $(srcdir) && $(ACLOCAL)
 
config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
$(SHELL) ./config.status --recheck
$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
cd $(srcdir) && $(AUTOCONF)
 
mostlyclean-binPROGRAMS:
 
clean-binPROGRAMS:
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
 
distclean-binPROGRAMS:
 
maintainer-clean-binPROGRAMS:
 
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(bindir)
@list='$(bin_PROGRAMS)'; for p in $$list; do \
if test -f $$p; then \
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
else :; fi; \
done
 
uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
list='$(bin_PROGRAMS)'; for p in $$list; do \
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
done
 
.c.o:
$(COMPILE) -c $<
 
.s.o:
$(COMPILE) -c $<
 
.S.o:
$(COMPILE) -c $<
 
mostlyclean-compile:
-rm -f *.o core *.core
 
clean-compile:
 
distclean-compile:
-rm -f *.tab.c
 
maintainer-clean-compile:
 
sdlquake: $(sdlquake_OBJECTS) $(sdlquake_DEPENDENCIES)
@rm -f sdlquake
$(LINK) $(sdlquake_LDFLAGS) $(sdlquake_OBJECTS) $(sdlquake_LDADD) $(LIBS)
 
tags: TAGS
 
ID: $(HEADERS) $(SOURCES) $(LISP)
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
here=`pwd` && cd $(srcdir) \
&& mkid -f$$here/ID $$unique $(LISP)
 
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
 
mostlyclean-tags:
 
clean-tags:
 
distclean-tags:
-rm -f TAGS ID
 
maintainer-clean-tags:
 
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
 
# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
distcheck: dist
-rm -rf $(distdir)
GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
mkdir $(distdir)/=build
mkdir $(distdir)/=inst
dc_install_base=`cd $(distdir)/=inst && pwd`; \
cd $(distdir)/=build \
&& ../configure --srcdir=.. --prefix=$$dc_install_base \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
&& $(MAKE) $(AM_MAKEFLAGS) check \
&& $(MAKE) $(AM_MAKEFLAGS) install \
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
&& $(MAKE) $(AM_MAKEFLAGS) dist
-rm -rf $(distdir)
@banner="$(distdir).tar.gz is ready for distribution"; \
dashes=`echo "$$banner" | sed s/./=/g`; \
echo "$$dashes"; \
echo "$$banner"; \
echo "$$dashes"
dist: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
dist-all: distdir
-chmod -R a+r $(distdir)
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
-rm -rf $(distdir)
distdir: $(DISTFILES)
-rm -rf $(distdir)
mkdir $(distdir)
-chmod 777 $(distdir)
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
$(MAKE) $(AM_MAKEFLAGS) top_distdir="$(top_distdir)" distdir="$(distdir)" dist-hook
cd_sdl.o: cd_sdl.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
chase.o: chase.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
cl_demo.o: cl_demo.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
cl_input.o: cl_input.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
cl_main.o: cl_main.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
cl_parse.o: cl_parse.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
cl_tent.o: cl_tent.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
cmd.o: cmd.c quakedef.h common.h bspfile.h vid.h sys.h zone.h mathlib.h \
wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h sbar.h \
sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
common.o: common.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
console.o: console.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
crc.o: crc.c quakedef.h common.h bspfile.h vid.h sys.h zone.h mathlib.h \
wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h sbar.h \
sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
cvar.o: cvar.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
d_edge.o: d_edge.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
d_local.h r_shared.h
d_fill.o: d_fill.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
d_init.o: d_init.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
d_local.h r_shared.h
d_modech.o: d_modech.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
d_local.h r_shared.h
d_part.o: d_part.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
d_local.h r_shared.h
d_polyse.o: d_polyse.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h d_local.h adivtab.h
draw.o: draw.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
d_scan.o: d_scan.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h d_local.h
d_sky.o: d_sky.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h d_local.h
d_sprite.o: d_sprite.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
d_local.h r_shared.h
d_surf.o: d_surf.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
d_local.h r_shared.h r_local.h
d_vars.o: d_vars.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
d_zpoint.o: d_zpoint.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
d_local.h r_shared.h
host_cmd.o: host_cmd.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
host.o: host.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h
keys.o: keys.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
mathlib.o: mathlib.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
menu.o: menu.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
model.o: model.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h
net_bsd.o: net_bsd.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
net_loop.h net_dgrm.h net_udp.h
net_dgrm.o: net_dgrm.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
net_dgrm.h
net_loop.o: net_loop.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
net_loop.h
net_main.o: net_main.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
net_vcr.h
net_udp.o: net_udp.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
net_udp.h
net_vcr.o: net_vcr.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
net_vcr.h
net_wso.o: net_wso.c
nonintel.o: nonintel.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h d_local.h
pr_cmds.o: pr_cmds.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
pr_edict.o: pr_edict.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
pr_exec.o: pr_exec.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
r_aclip.o: r_aclip.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h d_local.h
r_alias.o: r_alias.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h d_local.h anorms.h
r_bsp.o: r_bsp.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h
r_draw.o: r_draw.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h d_local.h
r_edge.o: r_edge.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h
r_efrag.o: r_efrag.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h
r_light.o: r_light.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h
r_main.o: r_main.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h
r_misc.o: r_misc.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h
r_part.o: r_part.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h
r_sky.o: r_sky.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h d_local.h
r_sprite.o: r_sprite.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h
r_surf.o: r_surf.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h
r_vars.o: r_vars.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
sbar.o: sbar.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
screen.o: screen.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h
snd_dma.o: snd_dma.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
snd_mem.o: snd_mem.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
snd_mix.o: snd_mix.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
snd_sdl.o: snd_sdl.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
sv_main.o: sv_main.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
sv_move.o: sv_move.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
sv_phys.o: sv_phys.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
sv_user.o: sv_user.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
sys_sdl.o: sys_sdl.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
vid_sdl.o: vid_sdl.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
d_local.h r_shared.h
view.o: view.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h \
r_local.h r_shared.h
wad.o: wad.c quakedef.h common.h bspfile.h vid.h sys.h zone.h mathlib.h \
wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h sbar.h \
sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
world.o: world.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
zone.o: zone.c quakedef.h common.h bspfile.h vid.h sys.h zone.h \
mathlib.h wad.h draw.h cvar.h screen.h net.h protocol.h cmd.h \
sbar.h sound.h render.h client.h progs.h pr_comp.h progdefs.h \
progdefs.q1 server.h model.h modelgen.h spritegn.h d_iface.h \
input.h world.h keys.h console.h view.h menu.h crc.h cdaudio.h
 
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
check: check-am
installcheck-am:
installcheck: installcheck-am
install-exec-am: install-binPROGRAMS
install-exec: install-exec-am
 
install-data-am:
install-data: install-data-am
 
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am: uninstall-binPROGRAMS
uninstall: uninstall-am
all-am: Makefile $(PROGRAMS)
all-redirect: all-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs:
$(mkinstalldirs) $(DESTDIR)$(bindir)
 
 
mostlyclean-generic:
 
clean-generic:
 
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
 
maintainer-clean-generic:
mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \
mostlyclean-tags mostlyclean-generic
 
mostlyclean: mostlyclean-am
 
clean-am: clean-binPROGRAMS clean-compile clean-tags clean-generic \
mostlyclean-am
 
clean: clean-am
 
distclean-am: distclean-binPROGRAMS distclean-compile distclean-tags \
distclean-generic clean-am
 
distclean: distclean-am
-rm -f config.status
 
maintainer-clean-am: maintainer-clean-binPROGRAMS \
maintainer-clean-compile maintainer-clean-tags \
maintainer-clean-generic distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
 
maintainer-clean: maintainer-clean-am
-rm -f config.status
 
.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
mostlyclean-compile distclean-compile clean-compile \
maintainer-clean-compile tags mostlyclean-tags distclean-tags \
clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
check-am installcheck-am installcheck install-exec-am install-exec \
install-data-am install-data install-am install uninstall-am uninstall \
all-redirect all-am all installdirs mostlyclean-generic \
distclean-generic clean-generic maintainer-clean-generic clean \
mostlyclean distclean maintainer-clean
 
 
dist-hook:
cp -rp data docs dxsdk gas2masm kit scitech $(distdir)/
 
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
/contrib/other/sdlquake-1.0.9/Makefile.linuxi386
0,0 → 1,1242
#
# Quake Makefile for Linux 2.0
#
# Aug '98 by Zoid <zoid@idsoftware.com>
#
# ELF only
#
 
BASEVERSION=1.09
VERSION=$(BASEVERSION)$(GLIBC)
 
# RPM release number
RPM_RELEASE=5
 
ifneq (,$(findstring libc6,$(shell if [ -e /lib/libc.so.6 ];then echo libc6;fi)))
GLIBC=-glibc
else
GLIBC=
endif
 
ifneq (,$(findstring alpha,$(shell uname -m)))
ARCH=axp
else
ARCH=i386
endif
NOARCH=noarch
 
#MOUNT_DIR=/grog/Projects/WinQuake
MOUNT_DIR := $(shell pwd)
MASTER_DIR=/grog/Projects/QuakeMaster
MESA_DIR=/usr/local/src/Mesa-2.6
TDFXGL_DIR = /home/zoid/3dfxgl
 
BUILD_DEBUG_DIR=debug$(ARCH)$(GLIBC)
BUILD_RELEASE_DIR=release$(ARCH)$(GLIBC)
 
#EGCS=/usr/local/egcs-1.1.2/bin/gcc
#CC=$(EGCS)
 
BASE_CFLAGS=-Dstricmp=strcasecmp
RELEASE_CFLAGS=$(BASE_CFLAGS) -g -mpentiumpro -O6 -ffast-math -funroll-loops \
-fomit-frame-pointer -fexpensive-optimizations
DEBUG_CFLAGS=$(BASE_CFLAGS) -g
LDFLAGS=-lm
SVGALDFLAGS=-lvga
XLDFLAGS=-L/usr/X11R6/lib -lX11 -lXext -lXxf86dga
XCFLAGS=-DX11
 
MESAGLLDFLAGS=-L/usr/X11/lib -L/usr/local/lib -L$(MESA_DIR)/lib -lMesaGL -lglide2x -lX11 -lXext -ldl
TDFXGLLDFLAGS=-L$(TDFXGL_DIR)/release$(ARCH)$(GLIBC) -l3dfxgl -lglide2x -ldl
GLLDFLAGS=-L/usr/X11/lib -L/usr/local/lib -lGL -lX11 -lXext -ldl -lXxf86dga -lXxf86vm -lm
GLCFLAGS=-DGLQUAKE -I$(MESA_DIR)/include -I/usr/include/glide
 
DO_CC=$(CC) $(CFLAGS) -o $@ -c $<
DO_DEBUG_CC=$(CC) $(DEBUG_CFLAGS) -o $@ -c $<
DO_GL_CC=$(CC) $(CFLAGS) $(GLCFLAGS) -o $@ -c $<
DO_GL_DEBUG_CC=$(CC) $(DEBUG_CFLAGS) $(GLCFLAGS) -o $@ -c $<
DO_X11_CC=$(CC) $(CFLAGS) $(XCFLAGS) -o $@ -c $<
DO_X11_DEBUG_CC=$(CC) $(DEBUG_CFLAGS) $(XCFLAGS) -o $@ -c $<
DO_O_CC=$(CC) -O $(CFLAGS) -o $@ -c $<
#DO_AS=$(CC) $(CFLAGS) -DELF -x assembler-with-cpp -o $@ -c $<
DO_AS=$(CC) $(CFLAGS) -DELF -o $@ -c $<
DO_GL_AS=$(CC) $(CFLAGS) $(GLCFLAGS) -DELF -x assembler-with-cpp -o $@ -c $<
 
#############################################################################
# SETUP AND BUILD
#############################################################################
 
TARGETS=$(BUILDDIR)/bin/quake.x11\
$(BUILDDIR)/bin/squake \
$(BUILDDIR)/bin/glquake \
$(BUILDDIR)/bin/glquake.glx \
$(BUILDDIR)/bin/glquake.3dfxgl \
# $(BUILDDIR)/bin/unixded
 
build_debug:
@-mkdir $(BUILD_DEBUG_DIR) \
$(BUILD_DEBUG_DIR)/bin \
$(BUILD_DEBUG_DIR)/glquake \
$(BUILD_DEBUG_DIR)/squake \
$(BUILD_DEBUG_DIR)/unixded \
$(BUILD_DEBUG_DIR)/x11
$(MAKE) targets BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)"
 
build_release:
@-mkdir $(BUILD_RELEASE_DIR) \
$(BUILD_RELEASE_DIR)/bin \
$(BUILD_RELEASE_DIR)/glquake \
$(BUILD_RELEASE_DIR)/squake \
$(BUILD_RELEASE_DIR)/unixded \
$(BUILD_RELEASE_DIR)/x11
$(MAKE) targets BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(RELEASE_CFLAGS)"
 
all: build_debug build_release
 
targets: $(TARGETS)
 
#############################################################################
# SVGALIB Quake
#############################################################################
 
SQUAKE_OBJS = \
$(BUILDDIR)/squake/cl_demo.o \
$(BUILDDIR)/squake/cl_input.o \
$(BUILDDIR)/squake/cl_main.o \
$(BUILDDIR)/squake/cl_parse.o \
$(BUILDDIR)/squake/cl_tent.o \
$(BUILDDIR)/squake/chase.o \
$(BUILDDIR)/squake/cmd.o \
$(BUILDDIR)/squake/common.o \
$(BUILDDIR)/squake/console.o \
$(BUILDDIR)/squake/crc.o \
$(BUILDDIR)/squake/cvar.o \
$(BUILDDIR)/squake/draw.o \
$(BUILDDIR)/squake/d_edge.o \
$(BUILDDIR)/squake/d_fill.o \
$(BUILDDIR)/squake/d_init.o \
$(BUILDDIR)/squake/d_modech.o \
$(BUILDDIR)/squake/d_part.o \
$(BUILDDIR)/squake/d_polyse.o \
$(BUILDDIR)/squake/d_scan.o \
$(BUILDDIR)/squake/d_sky.o \
$(BUILDDIR)/squake/d_sprite.o \
$(BUILDDIR)/squake/d_surf.o \
$(BUILDDIR)/squake/d_vars.o \
$(BUILDDIR)/squake/d_zpoint.o \
$(BUILDDIR)/squake/host.o \
$(BUILDDIR)/squake/host_cmd.o \
$(BUILDDIR)/squake/keys.o \
$(BUILDDIR)/squake/menu.o \
$(BUILDDIR)/squake/mathlib.o \
$(BUILDDIR)/squake/model.o \
$(BUILDDIR)/squake/net_dgrm.o \
$(BUILDDIR)/squake/net_loop.o \
$(BUILDDIR)/squake/net_main.o \
$(BUILDDIR)/squake/net_vcr.o \
$(BUILDDIR)/squake/net_udp.o \
$(BUILDDIR)/squake/net_bsd.o \
$(BUILDDIR)/squake/nonintel.o \
$(BUILDDIR)/squake/pr_cmds.o \
$(BUILDDIR)/squake/pr_edict.o \
$(BUILDDIR)/squake/pr_exec.o \
$(BUILDDIR)/squake/r_aclip.o \
$(BUILDDIR)/squake/r_alias.o \
$(BUILDDIR)/squake/r_bsp.o \
$(BUILDDIR)/squake/r_light.o \
$(BUILDDIR)/squake/r_draw.o \
$(BUILDDIR)/squake/r_efrag.o \
$(BUILDDIR)/squake/r_edge.o \
$(BUILDDIR)/squake/r_misc.o \
$(BUILDDIR)/squake/r_main.o \
$(BUILDDIR)/squake/r_sky.o \
$(BUILDDIR)/squake/r_sprite.o \
$(BUILDDIR)/squake/r_surf.o \
$(BUILDDIR)/squake/r_part.o \
$(BUILDDIR)/squake/r_vars.o \
$(BUILDDIR)/squake/screen.o \
$(BUILDDIR)/squake/sbar.o \
$(BUILDDIR)/squake/sv_main.o \
$(BUILDDIR)/squake/sv_phys.o \
$(BUILDDIR)/squake/sv_move.o \
$(BUILDDIR)/squake/sv_user.o \
$(BUILDDIR)/squake/zone.o \
$(BUILDDIR)/squake/view.o \
$(BUILDDIR)/squake/wad.o \
$(BUILDDIR)/squake/world.o \
$(BUILDDIR)/squake/cd_linux.o \
$(BUILDDIR)/squake/sys_linux.o \
$(BUILDDIR)/squake/vid_svgalib.o \
$(BUILDDIR)/squake/snd_dma.o \
$(BUILDDIR)/squake/snd_mem.o \
$(BUILDDIR)/squake/snd_mix.o \
$(BUILDDIR)/squake/snd_linux.o \
\
$(BUILDDIR)/squake/d_copy.o \
$(BUILDDIR)/squake/d_draw.o \
$(BUILDDIR)/squake/d_draw16.o \
$(BUILDDIR)/squake/d_parta.o \
$(BUILDDIR)/squake/d_polysa.o \
$(BUILDDIR)/squake/d_scana.o \
$(BUILDDIR)/squake/d_spr8.o \
$(BUILDDIR)/squake/d_varsa.o \
$(BUILDDIR)/squake/math.o \
$(BUILDDIR)/squake/r_aliasa.o \
$(BUILDDIR)/squake/r_drawa.o \
$(BUILDDIR)/squake/r_edgea.o \
$(BUILDDIR)/squake/r_varsa.o \
$(BUILDDIR)/squake/surf16.o \
$(BUILDDIR)/squake/surf8.o \
$(BUILDDIR)/squake/worlda.o \
$(BUILDDIR)/squake/r_aclipa.o \
$(BUILDDIR)/squake/snd_mixa.o \
$(BUILDDIR)/squake/sys_dosa.o
 
$(BUILDDIR)/bin/squake : $(SQUAKE_OBJS)
$(CC) $(CFLAGS) -o $@ $(SQUAKE_OBJS) $(SVGALDFLAGS) $(LDFLAGS)
 
####
 
$(BUILDDIR)/squake/cl_demo.o : $(MOUNT_DIR)/cl_demo.c
$(DO_CC)
 
$(BUILDDIR)/squake/cl_input.o : $(MOUNT_DIR)/cl_input.c
$(DO_CC)
 
$(BUILDDIR)/squake/cl_main.o : $(MOUNT_DIR)/cl_main.c
$(DO_CC)
 
$(BUILDDIR)/squake/cl_parse.o : $(MOUNT_DIR)/cl_parse.c
$(DO_CC)
 
$(BUILDDIR)/squake/cl_tent.o : $(MOUNT_DIR)/cl_tent.c
$(DO_CC)
 
$(BUILDDIR)/squake/chase.o : $(MOUNT_DIR)/chase.c
$(DO_CC)
 
$(BUILDDIR)/squake/cmd.o : $(MOUNT_DIR)/cmd.c
$(DO_CC)
 
$(BUILDDIR)/squake/common.o : $(MOUNT_DIR)/common.c
$(DO_DEBUG_CC)
 
$(BUILDDIR)/squake/console.o : $(MOUNT_DIR)/console.c
$(DO_CC)
 
$(BUILDDIR)/squake/crc.o : $(MOUNT_DIR)/crc.c
$(DO_CC)
 
$(BUILDDIR)/squake/cvar.o : $(MOUNT_DIR)/cvar.c
$(DO_CC)
 
$(BUILDDIR)/squake/draw.o : $(MOUNT_DIR)/draw.c
$(DO_CC)
 
$(BUILDDIR)/squake/d_edge.o : $(MOUNT_DIR)/d_edge.c
$(DO_CC)
 
$(BUILDDIR)/squake/d_fill.o : $(MOUNT_DIR)/d_fill.c
$(DO_CC)
 
$(BUILDDIR)/squake/d_init.o : $(MOUNT_DIR)/d_init.c
$(DO_CC)
 
$(BUILDDIR)/squake/d_modech.o : $(MOUNT_DIR)/d_modech.c
$(DO_CC)
 
$(BUILDDIR)/squake/d_part.o : $(MOUNT_DIR)/d_part.c
$(DO_CC)
 
$(BUILDDIR)/squake/d_polyse.o : $(MOUNT_DIR)/d_polyse.c
$(DO_CC)
 
$(BUILDDIR)/squake/d_scan.o : $(MOUNT_DIR)/d_scan.c
$(DO_CC)
 
$(BUILDDIR)/squake/d_sky.o : $(MOUNT_DIR)/d_sky.c
$(DO_CC)
 
$(BUILDDIR)/squake/d_sprite.o : $(MOUNT_DIR)/d_sprite.c
$(DO_CC)
 
$(BUILDDIR)/squake/d_surf.o : $(MOUNT_DIR)/d_surf.c
$(DO_CC)
 
$(BUILDDIR)/squake/d_vars.o : $(MOUNT_DIR)/d_vars.c
$(DO_CC)
 
$(BUILDDIR)/squake/d_zpoint.o : $(MOUNT_DIR)/d_zpoint.c
$(DO_CC)
 
$(BUILDDIR)/squake/host.o : $(MOUNT_DIR)/host.c
$(DO_CC)
 
$(BUILDDIR)/squake/host_cmd.o : $(MOUNT_DIR)/host_cmd.c
$(DO_CC)
 
$(BUILDDIR)/squake/keys.o : $(MOUNT_DIR)/keys.c
$(DO_CC)
 
$(BUILDDIR)/squake/menu.o : $(MOUNT_DIR)/menu.c
$(DO_CC)
 
$(BUILDDIR)/squake/mathlib.o : $(MOUNT_DIR)/mathlib.c
$(DO_CC)
 
$(BUILDDIR)/squake/model.o : $(MOUNT_DIR)/model.c
$(DO_CC)
 
$(BUILDDIR)/squake/net_dgrm.o : $(MOUNT_DIR)/net_dgrm.c
$(DO_CC)
 
$(BUILDDIR)/squake/net_loop.o : $(MOUNT_DIR)/net_loop.c
$(DO_CC)
 
$(BUILDDIR)/squake/net_main.o : $(MOUNT_DIR)/net_main.c
$(DO_CC)
 
$(BUILDDIR)/squake/net_vcr.o : $(MOUNT_DIR)/net_vcr.c
$(DO_CC)
 
$(BUILDDIR)/squake/net_udp.o : $(MOUNT_DIR)/net_udp.c
$(DO_CC)
 
$(BUILDDIR)/squake/net_bsd.o : $(MOUNT_DIR)/net_bsd.c
$(DO_CC)
 
$(BUILDDIR)/squake/nonintel.o : $(MOUNT_DIR)/nonintel.c
$(DO_CC)
 
$(BUILDDIR)/squake/pr_cmds.o : $(MOUNT_DIR)/pr_cmds.c
$(DO_CC)
 
$(BUILDDIR)/squake/pr_edict.o : $(MOUNT_DIR)/pr_edict.c
$(DO_CC)
 
$(BUILDDIR)/squake/pr_exec.o : $(MOUNT_DIR)/pr_exec.c
$(DO_CC)
 
$(BUILDDIR)/squake/r_aclip.o : $(MOUNT_DIR)/r_aclip.c
$(DO_CC)
 
$(BUILDDIR)/squake/r_alias.o : $(MOUNT_DIR)/r_alias.c
$(DO_CC)
 
$(BUILDDIR)/squake/r_bsp.o : $(MOUNT_DIR)/r_bsp.c
$(DO_CC)
 
$(BUILDDIR)/squake/r_light.o : $(MOUNT_DIR)/r_light.c
$(DO_CC)
 
$(BUILDDIR)/squake/r_draw.o : $(MOUNT_DIR)/r_draw.c
$(DO_CC)
 
$(BUILDDIR)/squake/r_efrag.o : $(MOUNT_DIR)/r_efrag.c
$(DO_CC)
 
$(BUILDDIR)/squake/r_edge.o : $(MOUNT_DIR)/r_edge.c
$(DO_CC)
 
$(BUILDDIR)/squake/r_misc.o : $(MOUNT_DIR)/r_misc.c
$(DO_CC)
 
$(BUILDDIR)/squake/r_main.o : $(MOUNT_DIR)/r_main.c
$(DO_CC)
 
$(BUILDDIR)/squake/r_sky.o : $(MOUNT_DIR)/r_sky.c
$(DO_CC)
 
$(BUILDDIR)/squake/r_sprite.o : $(MOUNT_DIR)/r_sprite.c
$(DO_CC)
 
$(BUILDDIR)/squake/r_surf.o : $(MOUNT_DIR)/r_surf.c
$(DO_CC)
 
$(BUILDDIR)/squake/r_part.o : $(MOUNT_DIR)/r_part.c
$(DO_CC)
 
$(BUILDDIR)/squake/r_vars.o : $(MOUNT_DIR)/r_vars.c
$(DO_CC)
 
$(BUILDDIR)/squake/screen.o : $(MOUNT_DIR)/screen.c
$(DO_CC)
 
$(BUILDDIR)/squake/sbar.o : $(MOUNT_DIR)/sbar.c
$(DO_CC)
 
$(BUILDDIR)/squake/sv_main.o : $(MOUNT_DIR)/sv_main.c
$(DO_CC)
 
$(BUILDDIR)/squake/sv_phys.o : $(MOUNT_DIR)/sv_phys.c
$(DO_CC)
 
$(BUILDDIR)/squake/sv_move.o : $(MOUNT_DIR)/sv_move.c
$(DO_CC)
 
$(BUILDDIR)/squake/sv_user.o : $(MOUNT_DIR)/sv_user.c
$(DO_CC)
 
$(BUILDDIR)/squake/zone.o : $(MOUNT_DIR)/zone.c
$(DO_CC)
 
$(BUILDDIR)/squake/view.o : $(MOUNT_DIR)/view.c
$(DO_CC)
 
$(BUILDDIR)/squake/wad.o : $(MOUNT_DIR)/wad.c
$(DO_CC)
 
$(BUILDDIR)/squake/world.o : $(MOUNT_DIR)/world.c
$(DO_CC)
 
$(BUILDDIR)/squake/cd_linux.o : $(MOUNT_DIR)/cd_linux.c
$(DO_CC)
 
$(BUILDDIR)/squake/sys_linux.o :$(MOUNT_DIR)/sys_linux.c
$(DO_CC)
 
$(BUILDDIR)/squake/vid_svgalib.o:$(MOUNT_DIR)/vid_svgalib.c
$(DO_O_CC)
 
$(BUILDDIR)/squake/snd_dma.o : $(MOUNT_DIR)/snd_dma.c
$(DO_CC)
 
$(BUILDDIR)/squake/snd_mem.o : $(MOUNT_DIR)/snd_mem.c
$(DO_CC)
 
$(BUILDDIR)/squake/snd_mix.o : $(MOUNT_DIR)/snd_mix.c
$(DO_CC)
 
$(BUILDDIR)/squake/snd_linux.o :$(MOUNT_DIR)/snd_linux.c
$(DO_CC)
 
#####
 
$(BUILDDIR)/squake/d_copy.o : $(MOUNT_DIR)/d_copy.S
$(DO_AS)
 
$(BUILDDIR)/squake/d_draw.o : $(MOUNT_DIR)/d_draw.S
$(DO_AS)
 
$(BUILDDIR)/squake/d_draw16.o : $(MOUNT_DIR)/d_draw16.S
$(DO_AS)
 
$(BUILDDIR)/squake/d_parta.o : $(MOUNT_DIR)/d_parta.S
$(DO_AS)
 
$(BUILDDIR)/squake/d_polysa.o : $(MOUNT_DIR)/d_polysa.S
$(DO_AS)
 
$(BUILDDIR)/squake/d_scana.o : $(MOUNT_DIR)/d_scana.S
$(DO_AS)
 
$(BUILDDIR)/squake/d_spr8.o : $(MOUNT_DIR)/d_spr8.S
$(DO_AS)
 
$(BUILDDIR)/squake/d_varsa.o : $(MOUNT_DIR)/d_varsa.S
$(DO_AS)
 
$(BUILDDIR)/squake/math.o : $(MOUNT_DIR)/math.S
$(DO_AS)
 
$(BUILDDIR)/squake/r_aliasa.o : $(MOUNT_DIR)/r_aliasa.S
$(DO_AS)
 
$(BUILDDIR)/squake/r_drawa.o : $(MOUNT_DIR)/r_drawa.S
$(DO_AS)
 
$(BUILDDIR)/squake/r_edgea.o : $(MOUNT_DIR)/r_edgea.S
$(DO_AS)
 
$(BUILDDIR)/squake/r_varsa.o : $(MOUNT_DIR)/r_varsa.S
$(DO_AS)
 
$(BUILDDIR)/squake/surf16.o : $(MOUNT_DIR)/surf16.S
$(DO_AS)
 
$(BUILDDIR)/squake/surf8.o : $(MOUNT_DIR)/surf8.S
$(DO_AS)
 
$(BUILDDIR)/squake/worlda.o : $(MOUNT_DIR)/worlda.S
$(DO_AS)
 
$(BUILDDIR)/squake/r_aclipa.o : $(MOUNT_DIR)/r_aclipa.S
$(DO_AS)
 
$(BUILDDIR)/squake/snd_mixa.o : $(MOUNT_DIR)/snd_mixa.S
$(DO_AS)
 
$(BUILDDIR)/squake/sys_dosa.o : $(MOUNT_DIR)/sys_dosa.S
$(DO_AS)
 
#############################################################################
# X11 Quake
#############################################################################
 
X11_OBJS = \
$(BUILDDIR)/x11/cl_demo.o \
$(BUILDDIR)/x11/cl_input.o \
$(BUILDDIR)/x11/cl_main.o \
$(BUILDDIR)/x11/cl_parse.o \
$(BUILDDIR)/x11/cl_tent.o \
$(BUILDDIR)/x11/chase.o \
$(BUILDDIR)/x11/cmd.o \
$(BUILDDIR)/x11/common.o \
$(BUILDDIR)/x11/console.o \
$(BUILDDIR)/x11/crc.o \
$(BUILDDIR)/x11/cvar.o \
$(BUILDDIR)/x11/draw.o \
$(BUILDDIR)/x11/d_edge.o \
$(BUILDDIR)/x11/d_fill.o \
$(BUILDDIR)/x11/d_init.o \
$(BUILDDIR)/x11/d_modech.o \
$(BUILDDIR)/x11/d_part.o \
$(BUILDDIR)/x11/d_polyse.o \
$(BUILDDIR)/x11/d_scan.o \
$(BUILDDIR)/x11/d_sky.o \
$(BUILDDIR)/x11/d_sprite.o \
$(BUILDDIR)/x11/d_surf.o \
$(BUILDDIR)/x11/d_vars.o \
$(BUILDDIR)/x11/d_zpoint.o \
$(BUILDDIR)/x11/host.o \
$(BUILDDIR)/x11/host_cmd.o \
$(BUILDDIR)/x11/keys.o \
$(BUILDDIR)/x11/menu.o \
$(BUILDDIR)/x11/mathlib.o \
$(BUILDDIR)/x11/model.o \
$(BUILDDIR)/x11/net_dgrm.o \
$(BUILDDIR)/x11/net_loop.o \
$(BUILDDIR)/x11/net_main.o \
$(BUILDDIR)/x11/net_vcr.o \
$(BUILDDIR)/x11/net_udp.o \
$(BUILDDIR)/x11/net_bsd.o \
$(BUILDDIR)/x11/nonintel.o \
$(BUILDDIR)/x11/pr_cmds.o \
$(BUILDDIR)/x11/pr_edict.o \
$(BUILDDIR)/x11/pr_exec.o \
$(BUILDDIR)/x11/r_aclip.o \
$(BUILDDIR)/x11/r_alias.o \
$(BUILDDIR)/x11/r_bsp.o \
$(BUILDDIR)/x11/r_light.o \
$(BUILDDIR)/x11/r_draw.o \
$(BUILDDIR)/x11/r_efrag.o \
$(BUILDDIR)/x11/r_edge.o \
$(BUILDDIR)/x11/r_misc.o \
$(BUILDDIR)/x11/r_main.o \
$(BUILDDIR)/x11/r_sky.o \
$(BUILDDIR)/x11/r_sprite.o \
$(BUILDDIR)/x11/r_surf.o \
$(BUILDDIR)/x11/r_part.o \
$(BUILDDIR)/x11/r_vars.o \
$(BUILDDIR)/x11/screen.o \
$(BUILDDIR)/x11/sbar.o \
$(BUILDDIR)/x11/sv_main.o \
$(BUILDDIR)/x11/sv_phys.o \
$(BUILDDIR)/x11/sv_move.o \
$(BUILDDIR)/x11/sv_user.o \
$(BUILDDIR)/x11/zone.o \
$(BUILDDIR)/x11/view.o \
$(BUILDDIR)/x11/wad.o \
$(BUILDDIR)/x11/world.o \
$(BUILDDIR)/x11/cd_linux.o \
$(BUILDDIR)/x11/sys_linux.o \
$(BUILDDIR)/x11/vid_x.o \
$(BUILDDIR)/x11/snd_dma.o \
$(BUILDDIR)/x11/snd_mem.o \
$(BUILDDIR)/x11/snd_mix.o \
$(BUILDDIR)/x11/snd_linux.o \
\
$(BUILDDIR)/x11/d_draw.o \
$(BUILDDIR)/x11/d_draw16.o \
$(BUILDDIR)/x11/d_parta.o \
$(BUILDDIR)/x11/d_polysa.o \
$(BUILDDIR)/x11/d_scana.o \
$(BUILDDIR)/x11/d_spr8.o \
$(BUILDDIR)/x11/d_varsa.o \
$(BUILDDIR)/x11/math.o \
$(BUILDDIR)/x11/r_aliasa.o \
$(BUILDDIR)/x11/r_drawa.o \
$(BUILDDIR)/x11/r_edgea.o \
$(BUILDDIR)/x11/r_varsa.o \
$(BUILDDIR)/x11/surf16.o \
$(BUILDDIR)/x11/surf8.o \
$(BUILDDIR)/x11/worlda.o \
$(BUILDDIR)/x11/r_aclipa.o \
$(BUILDDIR)/x11/snd_mixa.o \
$(BUILDDIR)/x11/sys_dosa.o
 
$(BUILDDIR)/bin/quake.x11 : $(X11_OBJS)
$(CC) $(CFLAGS) -o $@ $(X11_OBJS) $(XLDFLAGS) $(LDFLAGS)
 
####
 
$(BUILDDIR)/x11/cl_demo.o : $(MOUNT_DIR)/cl_demo.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/cl_input.o : $(MOUNT_DIR)/cl_input.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/cl_main.o : $(MOUNT_DIR)/cl_main.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/cl_parse.o : $(MOUNT_DIR)/cl_parse.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/cl_tent.o : $(MOUNT_DIR)/cl_tent.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/chase.o : $(MOUNT_DIR)/chase.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/cmd.o : $(MOUNT_DIR)/cmd.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/common.o : $(MOUNT_DIR)/common.c
$(DO_X11_DEBUG_CC)
 
$(BUILDDIR)/x11/console.o : $(MOUNT_DIR)/console.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/crc.o : $(MOUNT_DIR)/crc.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/cvar.o : $(MOUNT_DIR)/cvar.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/draw.o : $(MOUNT_DIR)/draw.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/d_edge.o : $(MOUNT_DIR)/d_edge.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/d_fill.o : $(MOUNT_DIR)/d_fill.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/d_init.o : $(MOUNT_DIR)/d_init.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/d_modech.o : $(MOUNT_DIR)/d_modech.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/d_part.o : $(MOUNT_DIR)/d_part.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/d_polyse.o : $(MOUNT_DIR)/d_polyse.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/d_scan.o : $(MOUNT_DIR)/d_scan.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/d_sky.o : $(MOUNT_DIR)/d_sky.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/d_sprite.o : $(MOUNT_DIR)/d_sprite.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/d_surf.o : $(MOUNT_DIR)/d_surf.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/d_vars.o : $(MOUNT_DIR)/d_vars.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/d_zpoint.o : $(MOUNT_DIR)/d_zpoint.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/host.o : $(MOUNT_DIR)/host.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/host_cmd.o : $(MOUNT_DIR)/host_cmd.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/keys.o : $(MOUNT_DIR)/keys.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/menu.o : $(MOUNT_DIR)/menu.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/mathlib.o : $(MOUNT_DIR)/mathlib.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/model.o : $(MOUNT_DIR)/model.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/net_dgrm.o : $(MOUNT_DIR)/net_dgrm.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/net_loop.o : $(MOUNT_DIR)/net_loop.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/net_main.o : $(MOUNT_DIR)/net_main.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/net_vcr.o : $(MOUNT_DIR)/net_vcr.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/net_udp.o : $(MOUNT_DIR)/net_udp.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/net_bsd.o : $(MOUNT_DIR)/net_bsd.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/nonintel.o : $(MOUNT_DIR)/nonintel.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/pr_cmds.o : $(MOUNT_DIR)/pr_cmds.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/pr_edict.o : $(MOUNT_DIR)/pr_edict.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/pr_exec.o : $(MOUNT_DIR)/pr_exec.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/r_aclip.o : $(MOUNT_DIR)/r_aclip.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/r_alias.o : $(MOUNT_DIR)/r_alias.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/r_bsp.o : $(MOUNT_DIR)/r_bsp.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/r_light.o : $(MOUNT_DIR)/r_light.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/r_draw.o : $(MOUNT_DIR)/r_draw.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/r_efrag.o : $(MOUNT_DIR)/r_efrag.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/r_edge.o : $(MOUNT_DIR)/r_edge.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/r_misc.o : $(MOUNT_DIR)/r_misc.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/r_main.o : $(MOUNT_DIR)/r_main.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/r_sky.o : $(MOUNT_DIR)/r_sky.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/r_sprite.o : $(MOUNT_DIR)/r_sprite.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/r_surf.o : $(MOUNT_DIR)/r_surf.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/r_part.o : $(MOUNT_DIR)/r_part.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/r_vars.o : $(MOUNT_DIR)/r_vars.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/screen.o : $(MOUNT_DIR)/screen.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/sbar.o : $(MOUNT_DIR)/sbar.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/sv_main.o : $(MOUNT_DIR)/sv_main.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/sv_phys.o : $(MOUNT_DIR)/sv_phys.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/sv_move.o : $(MOUNT_DIR)/sv_move.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/sv_user.o : $(MOUNT_DIR)/sv_user.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/zone.o : $(MOUNT_DIR)/zone.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/view.o : $(MOUNT_DIR)/view.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/wad.o : $(MOUNT_DIR)/wad.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/world.o : $(MOUNT_DIR)/world.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/cd_linux.o : $(MOUNT_DIR)/cd_linux.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/sys_linux.o :$(MOUNT_DIR)/sys_linux.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/vid_x.o: $(MOUNT_DIR)/vid_x.c
$(DO_O_CC)
 
$(BUILDDIR)/x11/snd_dma.o : $(MOUNT_DIR)/snd_dma.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/snd_mem.o : $(MOUNT_DIR)/snd_mem.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/snd_mix.o : $(MOUNT_DIR)/snd_mix.c
$(DO_X11_CC)
 
$(BUILDDIR)/x11/snd_linux.o :$(MOUNT_DIR)/snd_linux.c
$(DO_X11_CC)
 
#####
 
$(BUILDDIR)/x11/d_copy.o : $(MOUNT_DIR)/d_copy.S
$(DO_AS)
 
$(BUILDDIR)/x11/d_draw.o : $(MOUNT_DIR)/d_draw.S
$(DO_AS)
 
$(BUILDDIR)/x11/d_draw16.o : $(MOUNT_DIR)/d_draw16.S
$(DO_AS)
 
$(BUILDDIR)/x11/d_parta.o : $(MOUNT_DIR)/d_parta.S
$(DO_AS)
 
$(BUILDDIR)/x11/d_polysa.o : $(MOUNT_DIR)/d_polysa.S
$(DO_AS)
 
$(BUILDDIR)/x11/d_scana.o : $(MOUNT_DIR)/d_scana.S
$(DO_AS)
 
$(BUILDDIR)/x11/d_spr8.o : $(MOUNT_DIR)/d_spr8.S
$(DO_AS)
 
$(BUILDDIR)/x11/d_varsa.o : $(MOUNT_DIR)/d_varsa.S
$(DO_AS)
 
$(BUILDDIR)/x11/math.o : $(MOUNT_DIR)/math.S
$(DO_AS)
 
$(BUILDDIR)/x11/r_aliasa.o : $(MOUNT_DIR)/r_aliasa.S
$(DO_AS)
 
$(BUILDDIR)/x11/r_drawa.o : $(MOUNT_DIR)/r_drawa.S
$(DO_AS)
 
$(BUILDDIR)/x11/r_edgea.o : $(MOUNT_DIR)/r_edgea.S
$(DO_AS)
 
$(BUILDDIR)/x11/r_varsa.o : $(MOUNT_DIR)/r_varsa.S
$(DO_AS)
 
$(BUILDDIR)/x11/surf16.o : $(MOUNT_DIR)/surf16.S
$(DO_AS)
 
$(BUILDDIR)/x11/surf8.o : $(MOUNT_DIR)/surf8.S
$(DO_AS)
 
$(BUILDDIR)/x11/worlda.o : $(MOUNT_DIR)/worlda.S
$(DO_AS)
 
$(BUILDDIR)/x11/r_aclipa.o : $(MOUNT_DIR)/r_aclipa.S
$(DO_AS)
 
$(BUILDDIR)/x11/snd_mixa.o : $(MOUNT_DIR)/snd_mixa.S
$(DO_AS)
 
$(BUILDDIR)/x11/sys_dosa.o : $(MOUNT_DIR)/sys_dosa.S
$(DO_AS)
 
#############################################################################
# GLQuake
#############################################################################
 
GLQUAKE_OBJS= \
$(BUILDDIR)/glquake/cl_demo.o \
$(BUILDDIR)/glquake/cl_input.o \
$(BUILDDIR)/glquake/cl_main.o \
$(BUILDDIR)/glquake/cl_parse.o \
$(BUILDDIR)/glquake/cl_tent.o \
$(BUILDDIR)/glquake/chase.o \
$(BUILDDIR)/glquake/cmd.o \
$(BUILDDIR)/glquake/common.o \
$(BUILDDIR)/glquake/console.o \
$(BUILDDIR)/glquake/crc.o \
$(BUILDDIR)/glquake/cvar.o \
\
$(BUILDDIR)/glquake/gl_draw.o \
$(BUILDDIR)/glquake/gl_mesh.o \
$(BUILDDIR)/glquake/gl_model.o \
$(BUILDDIR)/glquake/gl_refrag.o \
$(BUILDDIR)/glquake/gl_rlight.o \
$(BUILDDIR)/glquake/gl_rmain.o \
$(BUILDDIR)/glquake/gl_rmisc.o \
$(BUILDDIR)/glquake/gl_rsurf.o \
$(BUILDDIR)/glquake/gl_screen.o \
$(BUILDDIR)/glquake/gl_test.o \
$(BUILDDIR)/glquake/gl_warp.o \
\
$(BUILDDIR)/glquake/host.o \
$(BUILDDIR)/glquake/host_cmd.o \
$(BUILDDIR)/glquake/keys.o \
$(BUILDDIR)/glquake/menu.o \
$(BUILDDIR)/glquake/mathlib.o \
$(BUILDDIR)/glquake/net_dgrm.o \
$(BUILDDIR)/glquake/net_loop.o \
$(BUILDDIR)/glquake/net_main.o \
$(BUILDDIR)/glquake/net_vcr.o \
$(BUILDDIR)/glquake/net_udp.o \
$(BUILDDIR)/glquake/net_bsd.o \
$(BUILDDIR)/glquake/pr_cmds.o \
$(BUILDDIR)/glquake/pr_edict.o \
$(BUILDDIR)/glquake/pr_exec.o \
$(BUILDDIR)/glquake/r_part.o \
$(BUILDDIR)/glquake/sbar.o \
$(BUILDDIR)/glquake/sv_main.o \
$(BUILDDIR)/glquake/sv_phys.o \
$(BUILDDIR)/glquake/sv_move.o \
$(BUILDDIR)/glquake/sv_user.o \
$(BUILDDIR)/glquake/zone.o \
$(BUILDDIR)/glquake/view.o \
$(BUILDDIR)/glquake/wad.o \
$(BUILDDIR)/glquake/world.o \
$(BUILDDIR)/glquake/cd_linux.o \
$(BUILDDIR)/glquake/sys_linux.o \
$(BUILDDIR)/glquake/snd_dma.o \
$(BUILDDIR)/glquake/snd_mem.o \
$(BUILDDIR)/glquake/snd_mix.o \
$(BUILDDIR)/glquake/snd_linux.o \
\
$(BUILDDIR)/glquake/math.o \
$(BUILDDIR)/glquake/worlda.o \
$(BUILDDIR)/glquake/snd_mixa.o \
$(BUILDDIR)/glquake/sys_dosa.o
 
GLSVGA_OBJS=$(BUILDDIR)/glquake/gl_vidlinux.o
 
GLX_OBJS=$(BUILDDIR)/glquake/gl_vidlinuxglx.o
 
$(BUILDDIR)/bin/glquake : $(GLQUAKE_OBJS) $(GLSVGA_OBJS)
$(CC) $(CFLAGS) -o $@ $(GLQUAKE_OBJS) $(GLSVGA_OBJS) $(MESAGLLDFLAGS) $(SVGALDFLAGS) $(LDFLAGS)
 
$(BUILDDIR)/bin/glquake.glx : $(GLQUAKE_OBJS) $(GLX_OBJS)
$(CC) $(CFLAGS) -o $@ $(GLQUAKE_OBJS) $(GLX_OBJS) $(GLLDFLAGS) $(LDFLAGS)
 
$(BUILDDIR)/bin/glquake.3dfxgl : $(GLQUAKE_OBJS) $(GLSVGA_OBJS)
$(CC) $(CFLAGS) -o $@ $(GLQUAKE_OBJS) $(GLSVGA_OBJS) $(TDFXGLLDFLAGS) $(SVGALDFLAGS) $(LDFLAGS)
 
$(BUILDDIR)/glquake/cl_demo.o : $(MOUNT_DIR)/cl_demo.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/cl_input.o : $(MOUNT_DIR)/cl_input.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/cl_main.o : $(MOUNT_DIR)/cl_main.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/cl_parse.o : $(MOUNT_DIR)/cl_parse.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/cl_tent.o : $(MOUNT_DIR)/cl_tent.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/chase.o : $(MOUNT_DIR)/chase.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/cmd.o : $(MOUNT_DIR)/cmd.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/common.o : $(MOUNT_DIR)/common.c
$(DO_GL_DEBUG_CC)
 
$(BUILDDIR)/glquake/console.o : $(MOUNT_DIR)/console.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/crc.o : $(MOUNT_DIR)/crc.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/cvar.o : $(MOUNT_DIR)/cvar.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/gl_draw.o : $(MOUNT_DIR)/gl_draw.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/gl_mesh.o : $(MOUNT_DIR)/gl_mesh.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/gl_model.o : $(MOUNT_DIR)/gl_model.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/gl_refrag.o : $(MOUNT_DIR)/gl_refrag.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/gl_rlight.o : $(MOUNT_DIR)/gl_rlight.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/gl_rmain.o : $(MOUNT_DIR)/gl_rmain.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/gl_rmisc.o : $(MOUNT_DIR)/gl_rmisc.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/gl_rsurf.o : $(MOUNT_DIR)/gl_rsurf.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/gl_screen.o : $(MOUNT_DIR)/gl_screen.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/gl_test.o : $(MOUNT_DIR)/gl_test.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/gl_vidlinux.o : $(MOUNT_DIR)/gl_vidlinux.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/gl_vidlinuxglx.o : $(MOUNT_DIR)/gl_vidlinuxglx.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/gl_warp.o : $(MOUNT_DIR)/gl_warp.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/host.o : $(MOUNT_DIR)/host.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/host_cmd.o : $(MOUNT_DIR)/host_cmd.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/keys.o : $(MOUNT_DIR)/keys.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/menu.o : $(MOUNT_DIR)/menu.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/mathlib.o : $(MOUNT_DIR)/mathlib.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/net_dgrm.o : $(MOUNT_DIR)/net_dgrm.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/net_loop.o : $(MOUNT_DIR)/net_loop.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/net_main.o : $(MOUNT_DIR)/net_main.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/net_vcr.o : $(MOUNT_DIR)/net_vcr.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/net_udp.o : $(MOUNT_DIR)/net_udp.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/net_bsd.o : $(MOUNT_DIR)/net_bsd.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/pr_cmds.o : $(MOUNT_DIR)/pr_cmds.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/pr_edict.o : $(MOUNT_DIR)/pr_edict.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/pr_exec.o : $(MOUNT_DIR)/pr_exec.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/r_part.o : $(MOUNT_DIR)/r_part.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/sbar.o : $(MOUNT_DIR)/sbar.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/sv_main.o : $(MOUNT_DIR)/sv_main.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/sv_phys.o : $(MOUNT_DIR)/sv_phys.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/sv_move.o : $(MOUNT_DIR)/sv_move.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/sv_user.o : $(MOUNT_DIR)/sv_user.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/zone.o : $(MOUNT_DIR)/zone.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/view.o : $(MOUNT_DIR)/view.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/wad.o : $(MOUNT_DIR)/wad.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/world.o : $(MOUNT_DIR)/world.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/cd_linux.o : $(MOUNT_DIR)/cd_linux.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/sys_linux.o : $(MOUNT_DIR)/sys_linux.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/snd_dma.o : $(MOUNT_DIR)/snd_dma.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/snd_mem.o : $(MOUNT_DIR)/snd_mem.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/snd_mix.o : $(MOUNT_DIR)/snd_mix.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/snd_linux.o : $(MOUNT_DIR)/snd_linux.c
$(DO_GL_CC)
 
$(BUILDDIR)/glquake/math.o : $(MOUNT_DIR)/math.S
$(DO_GL_AS)
 
$(BUILDDIR)/glquake/worlda.o : $(MOUNT_DIR)/worlda.S
$(DO_GL_AS)
 
$(BUILDDIR)/glquake/snd_mixa.o : $(MOUNT_DIR)/snd_mixa.S
$(DO_GL_AS)
 
$(BUILDDIR)/glquake/sys_dosa.o : $(MOUNT_DIR)/sys_dosa.S
$(DO_GL_AS)
 
#############################################################################
# RPM
#############################################################################
 
# Make RPMs. You need to be root to make this work
RPMROOT=/usr/src/redhat
RPM = rpm
RPMFLAGS = -bb
INSTALLDIR = /usr/local/games/quake
TMPDIR = /var/tmp
RPMDIR = $(TMPDIR)/quake-$(VERSION)
BASERPMDIR = $(TMPDIR)/quake-$(BASEVERSION)
 
rpm: rpm-quake rpm-quake-data rpm-hipnotic rpm-rogue
 
rpm-quake: quake.spec \
$(BUILD_RELEASE_DIR)/bin/squake \
$(BUILD_RELEASE_DIR)/bin/quake.x11 \
$(BUILD_RELEASE_DIR)/bin/glquake \
$(BUILD_RELEASE_DIR)/bin/glquake.glx \
$(BUILD_RELEASE_DIR)/bin/glquake.3dfxgl
touch $(RPMROOT)/SOURCES/quake-$(VERSION).tar.gz
if [ ! -d RPMS ];then mkdir RPMS;fi
cp $(MOUNT_DIR)/quake.gif $(RPMROOT)/SOURCES/quake.gif
 
# basic binaries rpm
-mkdirhier $(RPMDIR)/$(INSTALLDIR)
cp $(MOUNT_DIR)/docs/README $(RPMDIR)/$(INSTALLDIR)/.
cp $(BUILD_RELEASE_DIR)/bin/squake $(RPMDIR)/$(INSTALLDIR)/squake
strip $(RPMDIR)/$(INSTALLDIR)/squake
cp $(BUILD_RELEASE_DIR)/bin/quake.x11 $(RPMDIR)/$(INSTALLDIR)/quake.x11
strip $(RPMDIR)/$(INSTALLDIR)/quake.x11
cp $(BUILD_RELEASE_DIR)/bin/glquake $(RPMDIR)/$(INSTALLDIR)/glquake
strip $(RPMDIR)/$(INSTALLDIR)/glquake
cp $(BUILD_RELEASE_DIR)/bin/glquake.glx $(RPMDIR)/$(INSTALLDIR)/glquake.glx
strip $(RPMDIR)/$(INSTALLDIR)/glquake.glx
cp $(BUILD_RELEASE_DIR)/bin/glquake.3dfxgl $(RPMDIR)/$(INSTALLDIR)/glquake.3dfxgl
strip $(RPMDIR)/$(INSTALLDIR)/glquake.3dfxgl
-mkdirhier $(RPMDIR)/usr/lib
cp $(TDFXGL_DIR)/release$(ARCH)$(GLIBC)/lib3dfxgl.so $(RPMDIR)/usr/lib/lib3dfxgl.so
cp $(MESA_DIR)/lib/libMesaGL.so.2.6 $(RPMDIR)/usr/lib/libMesaGL.so.2.6
 
cp quake.spec $(RPMROOT)/SPECS/.
cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) quake.spec
rm -rf $(RPMDIR)
rm -f $(RPMROOT)/SOURCES/quake-$(VERSION).tar.gz
 
mv $(RPMROOT)/RPMS/$(ARCH)/quake-$(VERSION)-$(RPM_RELEASE).$(ARCH).rpm RPMS/.
 
QUAKEDATADIR=$(TMPDIR)/quake-data-$(BASEVERSION)
rpm-quake-data: quake-data.spec
# data rpm
touch $(RPMROOT)/SOURCES/quake-$(BASEVERSION)-data.tar.gz
 
-mkdirhier $(QUAKEDATADIR)/$(INSTALLDIR)/id1
cp $(MASTER_DIR)/id1/pak0.pak $(QUAKEDATADIR)/$(INSTALLDIR)/id1/.
cp $(MASTER_DIR)/id1/pak1.pak $(QUAKEDATADIR)/$(INSTALLDIR)/id1/.
cp $(MOUNT_DIR)/docs/README $(QUAKEDATADIR)/$(INSTALLDIR)/.
cp $(MOUNT_DIR)/data/comexp.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
cp $(MOUNT_DIR)/data/help.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
cp $(MOUNT_DIR)/data/licinfo.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
cp $(MOUNT_DIR)/data/manual.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
cp $(MOUNT_DIR)/data/readme.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
cp $(MOUNT_DIR)/data/rlicnse.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
cp $(MOUNT_DIR)/data/slicnse.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
cp $(MOUNT_DIR)/data/techinfo.txt $(QUAKEDATADIR)/$(INSTALLDIR)/.
cp quake-data.spec $(RPMROOT)/SPECS/.
cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) quake-data.spec
rm -rf $(QUAKEDATADIR)
rm -f $(RPMROOT)/SOURCES/quake-$(BASEVERSION)-data.tar.gz
 
mv $(RPMROOT)/RPMS/$(NOARCH)/quake-data-$(BASEVERSION)-$(RPM_RELEASE).$(NOARCH).rpm RPMS/.
 
RPMHIPNOTICDIR=$(TMPDIR)/quake-hipnotic-$(BASEVERSION)
rpm-hipnotic: quake-hipnotic.spec
touch $(RPMROOT)/SOURCES/quake-hipnotic-$(BASEVERSION).tar.gz
if [ ! -d RPMS ];then mkdir RPMS;fi
cp $(MOUNT_DIR)/quake.gif $(RPMROOT)/SOURCES/quake.gif
-mkdirhier $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/docs
cp $(MASTER_DIR)/hipnotic/pak0.pak $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/.
cp $(MASTER_DIR)/hipnotic/config.cfg $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/.
cp $(MASTER_DIR)/hipnotic/docs/manual.doc $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/docs/.
cp $(MASTER_DIR)/hipnotic/docs/manual.htm $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/docs/.
cp $(MASTER_DIR)/hipnotic/docs/manual.txt $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/docs/.
cp $(MASTER_DIR)/hipnotic/docs/readme.doc $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/docs/.
cp $(MASTER_DIR)/hipnotic/docs/readme.htm $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/docs/.
cp $(MASTER_DIR)/hipnotic/docs/readme.txt $(RPMHIPNOTICDIR)/$(INSTALLDIR)/hipnotic/docs/.
cp quake-hipnotic.spec $(RPMROOT)/SPECS/.
cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) quake-hipnotic.spec
rm -rf $(RPMHIPNOTICDIR)
rm -f $(RPMROOT)/SOURCES/quake-hipnotic-$(BASEVERSION).tar.gz
 
mv $(RPMROOT)/RPMS/$(NOARCH)/quake-hipnotic-$(BASEVERSION)-$(RPM_RELEASE).$(NOARCH).rpm RPMS/.
 
RPMROGUEDIR=$(TMPDIR)/quake-rogue-$(BASEVERSION)
rpm-rogue: quake-rogue.spec
touch $(RPMROOT)/SOURCES/quake-rogue-$(BASEVERSION).tar.gz
if [ ! -d RPMS ];then mkdir RPMS;fi
cp $(MOUNT_DIR)/quake.gif $(RPMROOT)/SOURCES/quake.gif
-mkdirhier $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs
cp $(MASTER_DIR)/rogue/pak0.pak $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/.
cp $(MASTER_DIR)/rogue/docs/manual.doc $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
cp $(MASTER_DIR)/rogue/docs/manual.htm $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
cp $(MASTER_DIR)/rogue/docs/manual.txt $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
cp $(MASTER_DIR)/rogue/docs/readme.doc $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
cp $(MASTER_DIR)/rogue/docs/readme.htm $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
cp $(MASTER_DIR)/rogue/docs/readme.txt $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
cp $(MASTER_DIR)/rogue/docs/ctf.doc $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
cp $(MASTER_DIR)/rogue/docs/ctf.htm $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
cp $(MASTER_DIR)/rogue/docs/ctf.txt $(RPMROGUEDIR)/$(INSTALLDIR)/rogue/docs/.
cp quake-rogue.spec $(RPMROOT)/SPECS/.
cd $(RPMROOT)/SPECS; $(RPM) $(RPMFLAGS) quake-rogue.spec
rm -rf $(RPMROGUEDIR)
rm -f $(RPMROOT)/SOURCES/quake-rogue-$(BASEVERSION).tar.gz
 
mv $(RPMROOT)/RPMS/$(NOARCH)/quake-rogue-$(BASEVERSION)-$(RPM_RELEASE).$(NOARCH).rpm RPMS/.
 
quake.spec : $(MOUNT_DIR)/quake.spec.sh
sh $< $(VERSION) $(RPM_RELEASE) $(INSTALLDIR) > $@
 
quake-data.spec : $(MOUNT_DIR)/quake-data.spec.sh
sh $< $(BASEVERSION) $(RPM_RELEASE) $(INSTALLDIR) > $@
 
quake-hipnotic.spec : $(MOUNT_DIR)/quake-hipnotic.spec.sh
sh $< $(BASEVERSION) $(RPM_RELEASE) $(INSTALLDIR) > $@
 
quake-rogue.spec : $(MOUNT_DIR)/quake-rogue.spec.sh
sh $< $(BASEVERSION) $(RPM_RELEASE) $(INSTALLDIR) > $@
 
#############################################################################
# MISC
#############################################################################
 
clean: clean-debug clean-release
rm -f squake.spec glquake.spec quake.x11.spec
 
clean-debug:
$(MAKE) clean2 BUILDDIR=$(BUILD_DEBUG_DIR) CFLAGS="$(DEBUG_CFLAGS)"
 
clean-release:
$(MAKE) clean2 BUILDDIR=$(BUILD_RELEASE_DIR) CFLAGS="$(DEBUG_CFLAGS)"
 
clean2:
-rm -f $(SQUAKE_OBJS) $(X11_OBJS) $(GLQUAKE_OBJS) $(GLSVGA_OBJS) \
$(GLX_OBJS)
 
/contrib/other/sdlquake-1.0.9/README.SDL
0,0 → 1,34
 
This is a quick hack of Quake ported to the Simple DirectMedia Layer library.
http://www.devolution.com/~slouken/SDL/
 
To build under Linux, simply run ./configure; make
 
This game requires the original Quake datafiles. You can get the shareware
data files from http://www.idsoftware.com/.
 
Of interest in the original X sources is the following:
// Duff's Device
count = width;
n = (count + 7) / 8;
dest = ((PIXEL16 *)src) + x+width - 1;
src += x+width - 1;
 
switch (count % 8) {
case 0: do { *dest-- = st2d_8to16table[*src--];
case 7: *dest-- = st2d_8to16table[*src--];
case 6: *dest-- = st2d_8to16table[*src--];
case 5: *dest-- = st2d_8to16table[*src--];
case 4: *dest-- = st2d_8to16table[*src--];
case 3: *dest-- = st2d_8to16table[*src--];
case 2: *dest-- = st2d_8to16table[*src--];
case 1: *dest-- = st2d_8to16table[*src--];
} while (--n > 0);
}
This idea may make it into the SDL blitters if it turns out to be faster
than my current code. :)
 
Thanks to Zoid, Dave Taylor, John Carmack, and everyone else involved in the
open source release of id games. :)
 
- Sam Lantinga (slouken@devolution.com) 12/25/1999
/contrib/other/sdlquake-1.0.9/README.Solaris
0,0 → 1,98
Solaris 2 Quake / QuakeWorld
----------------------------
 
This is an UNSUPPORTED version of Quake and QuakeWorld. Don't
bother id software about it. Bug reports will be ignored.
PORT DETAILS
------------
 
There are a few major difference between this port and the
vanilla Quake/QuakeWorld available on the internet. For
optimum performance, you should copy everything to a directory
on your local system before starting play so that you are
not mounting files from a remote filesystem.
 
In order to use this program, you need the files pak0.pak
and pak1.pak in the id1 directory found on a registered copy of
Quake. You can ftp them to your Solaris host from a Windows95
machine for example. The files must be in an id1 subdirectory from
the directory you install Quake/QuakeWorld, and all file names must
be lowercase. Add on packages such as ThreeWave CTF work fine as
well, just place such addon packages in their own directory as you
would on a Windows95 installation. But again, make sure all files
are lowercase.
COMMAND LINE FLAGS:
+pixel_multiply
You can magnify the screen by using this flag:
Ex: % quake +pixel_multiply 2
You can also use this command (without the dash)
from the Quake console. pixel_multiply is a Quake
cvar and is saved from session to session in the
config.cfg file.
 
-winsize <width> <height>
 
Set the size of the window when you start
 
-count_frames
 
See how many frames per second you're getting
 
GAME SETTINGS
 
mouse binding
 
You can bind and unbind the mouse to the Quake window
by using the Use Mouse selection in the Options menu,
or with the "_windowed_mouse" command in the console,
ex "_windowed_mouse 1" Now, moving the mouse will move
your player. Use "_windowed_mouse 0" to unbind. You
can bind or alias this to a key.
 
Example command:
 
% quake.xil +pixel_multiply 2 -winsize 400 300
 
WHAT IS "QUAKEWORLD" AND HOW DO I USE IT?
-----------------------------------------
 
In a nutshell, QuakeWorld is an extension of Quake that is
much more user friendly. It allows the user to dynamically
download changes from the server, such as new maps and new
weapons while inside the Quake client. It is not directly
compatible with Quake (ie, you can't connect to a Quake server
from a QuakeWorld client) but in general it is superior to
Quake. QuakeWorld also offers much smoother play over the
Internet by using client prediction. For more information,
check out http://www.quakeworld.net/.
 
In order to use it, you must make a copy of the "qw"
directory. Any new stuff that is downloaded from a QuakeWorld
server will be stored in this directory. All regular Quake
flags apply so you can use the same command line as before.
 
Example command:
 
% qwcl.xil +pixel_multiply 2 -winsize 400 300
 
WHERE CAN I FIND OUT ABOUT...
-----------------------------
 
If you've got questions about Quake, rest assured that there
are answers out there. Try checking out these web sites:
 
http://www.planetquake.com/
http://www.stomped.com/
http://www.quakeworld.net/
If all else fails use a search engine.
 
Happy fragging,
the Quake/Solaris team
/contrib/other/sdlquake-1.0.9/Tupfile.lua
0,0 → 1,41
if tup.getconfig("NO_GCC") ~= "" then return end
if tup.getconfig("HELPERDIR") == ""
then
if tup.getconfig("NO_NASM") ~= "" then return end -- required for SDL compilation
HELPERDIR = "../../../programs"
end
tup.include(HELPERDIR .. "/use_gcc.lua")
tup.include(HELPERDIR .. "/use_menuetlibc.lua")
use_dynamic_stack() -- default 64K are not sufficient
tup.include(HELPERDIR .. "/use_sdl.lua")
CFLAGS = CFLAGS .. " -DSDL -UWIN32 -U_WIN32 -U__WIN32__ -D_KOLIBRI"
CFLAGS = CFLAGS .. " -DUSE_ASM"
-- CFLAGS = CFLAGS:gsub("-Os", "-O2")
compile_gcc{
"chase.c", "cl_demo.c", "cl_input.c", "cl_main.c", "cl_parse.c", "cl_tent.c",
"cmd.c", "common.c", "console.c", "crc.c", "cvar.c", "d_edge.c", "d_init.c",
"d_modech.c", "d_part.c", "d_polyse.c", "d_scan.c", "d_sky.c", "d_sprite.c",
"d_surf.c", "draw.c", "host.c", "host_cmd.c", "keys.c", "mathlib.c",
"menu.c", "model.c", "net_loop.c", "net_main.c", "net_vcr.c", "pr_cmds.c",
"pr_edict.c", "pr_exec.c", "r_aclip.c", "r_alias.c", "r_bsp.c", "r_draw.c",
"r_edge.c", "r_efrag.c", "r_light.c", "r_main.c", "r_misc.c", "r_part.c",
"r_sky.c", "r_sprite.c", "r_surf.c", "sbar.c", "screen.c", "snd_dma.c",
"snd_mem.c", "snd_mix.c", "sv_main.c", "sv_move.c", "sv_phys.c", "sv_user.c",
"view.c", "wad.c", "world.c", "zone.c"
}
-- asm vs c
--[[compile_gcc{
"d_vars.c", "r_vars.c", "nonintel.c"
}]]
compile_gcc{
"d_draw.S", "d_draw16.S", "d_parta.S", "d_polysa.S", "d_scana.S", "d_spr8.S",
"d_varsa.S", "math.S", "r_aclipa.S", "r_aliasa.S", "r_drawa.S", "r_edgea.S",
"r_varsa.S", "snd_mixa.S", "surf8.S", "surf16.S", "sys_wina.S", "worlda.S"
}
-- select variants
compile_gcc{"sys_sdl.c"} -- SDL frontend
compile_gcc{"vid_sdl.c"} -- video and mouse from SDL
compile_gcc{"cd_null.c"} -- no CD audio
compile_gcc{"snd_sdl.c"} -- sound from SDL
compile_gcc{"net_none.c"} -- no network
link_gcc("sdlquake")
/contrib/other/sdlquake-1.0.9/WinQuake.dsp
0,0 → 1,2240
# Microsoft Developer Studio Project File - Name="winquake" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
 
# TARGTYPE "Win32 (x86) Application" 0x0101
 
CFG=winquake - Win32 Release
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "WinQuake.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "WinQuake.mak" CFG="winquake - Win32 Release"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "winquake - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "winquake - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE "winquake - Win32 GL Debug" (based on "Win32 (x86) Application")
!MESSAGE "winquake - Win32 GL Release" (based on "Win32 (x86) Application")
!MESSAGE
 
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir ".\Release"
# PROP BASE Intermediate_Dir ".\Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir ".\Release"
# PROP Intermediate_Dir ".\Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
# ADD CPP /nologo /G5 /GX /Ox /Ot /Ow /I ".\scitech\include" /I ".\dxsdk\sdk\inc" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /FR /YX /FD /c
# SUBTRACT CPP /Oa /Og
# ADD BASE MTL /nologo /D "NDEBUG" /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 .\dxsdk\sdk\lib\dxguid.lib .\scitech\lib\win32\vc\mgllt.lib winmm.lib wsock32.lib opengl32.lib glu32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /profile /machine:I386
# SUBTRACT LINK32 /map /debug
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir ".\Debug"
# PROP BASE Intermediate_Dir ".\Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir ".\Debug"
# PROP Intermediate_Dir ".\Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c
# ADD CPP /nologo /G5 /ML /GX /ZI /Od /I ".\scitech\include" /I ".\dxsdk\sdk\inc" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /FR /YX /FD /c
# ADD BASE MTL /nologo /D "_DEBUG" /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386
# ADD LINK32 .\dxsdk\sdk\lib\dxguid.lib .\scitech\lib\win32\vc\mgllt.lib winmm.lib wsock32.lib opengl32.lib glu32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386
# SUBTRACT LINK32 /nodefaultlib
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir ".\winquake"
# PROP BASE Intermediate_Dir ".\winquake"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir ".\debug_gl"
# PROP Intermediate_Dir ".\debug_gl"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /G5 /ML /GX /Zi /Od /I ".\scitech\include" /I ".\dxsdk\sdk\inc" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /c
# ADD CPP /nologo /G5 /ML /GX /ZI /Od /I ".\dxsdk\sdk\inc" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "GLQUAKE" /FR /YX /FD /c
# ADD BASE MTL /nologo /D "_DEBUG" /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
# ADD RSC /l 0x409 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 winmm.lib wsock32.lib opengl32.lib glu32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib .\scitech\lib\win32\vc\mgllt.lib /nologo /subsystem:windows /debug /machine:I386
# SUBTRACT BASE LINK32 /nodefaultlib
# ADD LINK32 .\dxsdk\sdk\lib\dxguid.lib comctl32.lib winmm.lib wsock32.lib opengl32.lib glu32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /out:".\debug_gl\glquake.exe"
# SUBTRACT LINK32 /nodefaultlib
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir ".\winquak0"
# PROP BASE Intermediate_Dir ".\winquak0"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir ".\release_gl"
# PROP Intermediate_Dir ".\release_gl"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /G5 /GX /Ox /Ot /Ow /I ".\scitech\include" /I ".\dxsdk\sdk\inc" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /c
# SUBTRACT BASE CPP /Oa /Og
# ADD CPP /nologo /G5 /GX /Ot /Ow /I ".\dxsdk\sdk\inc" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "GLQUAKE" /FR /YX /FD /c
# ADD BASE MTL /nologo /D "NDEBUG" /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "NDEBUG"
# ADD RSC /l 0x409 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 winmm.lib wsock32.lib opengl32.lib glu32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib .\scitech\lib\win32\vc\mgllt.lib /nologo /subsystem:windows /profile /machine:I386
# SUBTRACT BASE LINK32 /map /debug
# ADD LINK32 .\dxsdk\sdk\lib\dxguid.lib comctl32.lib winmm.lib wsock32.lib opengl32.lib glu32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /profile /machine:I386 /out:".\release_gl\glquake.exe"
# SUBTRACT LINK32 /map /debug
 
!ENDIF
 
# Begin Target
 
# Name "winquake - Win32 Release"
# Name "winquake - Win32 Debug"
# Name "winquake - Win32 GL Debug"
# Name "winquake - Win32 GL Release"
# Begin Group "Source Files"
 
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90"
# Begin Source File
 
SOURCE=.\cd_win.c
# End Source File
# Begin Source File
 
SOURCE=.\chase.c
# End Source File
# Begin Source File
 
SOURCE=.\cl_demo.c
# End Source File
# Begin Source File
 
SOURCE=.\cl_input.c
# End Source File
# Begin Source File
 
SOURCE=.\cl_main.c
# End Source File
# Begin Source File
 
SOURCE=.\cl_parse.c
# End Source File
# Begin Source File
 
SOURCE=.\cl_tent.c
# End Source File
# Begin Source File
 
SOURCE=.\cmd.c
# End Source File
# Begin Source File
 
SOURCE=.\common.c
# End Source File
# Begin Source File
 
SOURCE=.\conproc.c
# End Source File
# Begin Source File
 
SOURCE=.\console.c
# End Source File
# Begin Source File
 
SOURCE=.\crc.c
# End Source File
# Begin Source File
 
SOURCE=.\cvar.c
# End Source File
# Begin Source File
 
SOURCE=.\d_draw.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\d_draw.s
InputName=d_draw
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\d_draw.s
InputName=d_draw
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_draw16.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\d_draw16.s
InputName=d_draw16
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\d_draw16.s
InputName=d_draw16
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_edge.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_fill.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_init.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_modech.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_part.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_parta.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\d_parta.s
InputName=d_parta
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\d_parta.s
InputName=d_parta
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_polysa.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\d_polysa.s
InputName=d_polysa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\d_polysa.s
InputName=d_polysa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_polyse.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_scan.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_scana.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\d_scana.s
InputName=d_scana
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\d_scana.s
InputName=d_scana
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_sky.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_spr8.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\d_spr8.s
InputName=d_spr8
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\d_spr8.s
InputName=d_spr8
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_sprite.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_surf.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_vars.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_varsa.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\d_varsa.s
InputName=d_varsa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\d_varsa.s
InputName=d_varsa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\d_zpoint.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\draw.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\gl_draw.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\gl_mesh.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\gl_model.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\gl_refrag.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\gl_rlight.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\gl_rmain.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\gl_rmisc.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\gl_rsurf.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\gl_screen.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\gl_test.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\gl_vidnt.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\gl_warp.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\host.c
# End Source File
# Begin Source File
 
SOURCE=.\host_cmd.c
# End Source File
# Begin Source File
 
SOURCE=.\in_win.c
# End Source File
# Begin Source File
 
SOURCE=.\keys.c
# End Source File
# Begin Source File
 
SOURCE=.\math.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\math.s
InputName=math
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\math.s
InputName=math
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\debug_gl
InputPath=.\math.s
InputName=math
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP /DGLQUAKE > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\release_gl
InputPath=.\math.s
InputName=math
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\mathlib.c
# End Source File
# Begin Source File
 
SOURCE=.\menu.c
# End Source File
# Begin Source File
 
SOURCE=.\model.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\net_dgrm.c
# End Source File
# Begin Source File
 
SOURCE=.\net_loop.c
# End Source File
# Begin Source File
 
SOURCE=.\net_main.c
# End Source File
# Begin Source File
 
SOURCE=.\net_vcr.c
# End Source File
# Begin Source File
 
SOURCE=.\net_win.c
# End Source File
# Begin Source File
 
SOURCE=.\net_wins.c
# End Source File
# Begin Source File
 
SOURCE=.\net_wipx.c
# End Source File
# Begin Source File
 
SOURCE=.\pr_cmds.c
# End Source File
# Begin Source File
 
SOURCE=.\pr_edict.c
# End Source File
# Begin Source File
 
SOURCE=.\pr_exec.c
# End Source File
# Begin Source File
 
SOURCE=.\r_aclip.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_aclipa.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\r_aclipa.s
InputName=r_aclipa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\r_aclipa.s
InputName=r_aclipa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_alias.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_aliasa.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\r_aliasa.s
InputName=r_aliasa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\r_aliasa.s
InputName=r_aliasa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_bsp.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_draw.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_drawa.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\r_drawa.s
InputName=r_drawa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\r_drawa.s
InputName=r_drawa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_edge.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_edgea.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\r_edgea.s
InputName=r_edgea
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\r_edgea.s
InputName=r_edgea
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_efrag.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_light.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_main.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_misc.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_part.c
# End Source File
# Begin Source File
 
SOURCE=.\r_sky.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_sprite.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_surf.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_vars.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\r_varsa.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\r_varsa.s
InputName=r_varsa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\r_varsa.s
InputName=r_varsa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\sbar.c
# End Source File
# Begin Source File
 
SOURCE=.\screen.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\snd_dma.c
# End Source File
# Begin Source File
 
SOURCE=.\snd_mem.c
# End Source File
# Begin Source File
 
SOURCE=.\snd_mix.c
# End Source File
# Begin Source File
 
SOURCE=.\snd_mixa.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\snd_mixa.s
InputName=snd_mixa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\snd_mixa.s
InputName=snd_mixa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\debug_gl
InputPath=.\snd_mixa.s
InputName=snd_mixa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP /DGLQUAKE > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\release_gl
InputPath=.\snd_mixa.s
InputName=snd_mixa
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP /DGLQUAKE > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\snd_win.c
# End Source File
# Begin Source File
 
SOURCE=.\surf16.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\surf16.s
InputName=surf16
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\surf16.s
InputName=surf16
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\surf8.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\surf8.s
InputName=surf8
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\surf8.s
InputName=surf8
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\sv_main.c
# End Source File
# Begin Source File
 
SOURCE=.\sv_move.c
# End Source File
# Begin Source File
 
SOURCE=.\sv_phys.c
# End Source File
# Begin Source File
 
SOURCE=.\sv_user.c
# End Source File
# Begin Source File
 
SOURCE=.\sys_win.c
# End Source File
# Begin Source File
 
SOURCE=.\sys_wina.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\sys_wina.s
InputName=sys_wina
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\sys_wina.s
InputName=sys_wina
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\debug_gl
InputPath=.\sys_wina.s
InputName=sys_wina
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP /DGLQUAKE > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\release_gl
InputPath=.\sys_wina.s
InputName=sys_wina
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP /DGLQUAKE > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\vid_win.c
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# PROP Exclude_From_Build 1
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# PROP Exclude_From_Build 1
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\view.c
# End Source File
# Begin Source File
 
SOURCE=.\wad.c
# End Source File
# Begin Source File
 
SOURCE=.\winquake.rc
# End Source File
# Begin Source File
 
SOURCE=.\world.c
# End Source File
# Begin Source File
 
SOURCE=.\worlda.s
 
!IF "$(CFG)" == "winquake - Win32 Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Release
InputPath=.\worlda.s
InputName=worlda
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\Debug
InputPath=.\worlda.s
InputName=worlda
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Debug"
 
# Begin Custom Build - mycoolbuild
OutDir=.\debug_gl
InputPath=.\worlda.s
InputName=worlda
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP /DGLQUAKE > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ELSEIF "$(CFG)" == "winquake - Win32 GL Release"
 
# Begin Custom Build - mycoolbuild
OutDir=.\release_gl
InputPath=.\worlda.s
InputName=worlda
 
"$(OUTDIR)\$(InputName).obj" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
cl /EP /DGLQUAKE > $(OUTDIR)\$(InputName).spp $(InputPath)
gas2masm\debug\gas2masm < $(OUTDIR)\$(InputName).spp > $(OUTDIR)\$(InputName).asm
ml /c /Cp /coff /Fo$(OUTDIR)\$(InputName).obj /Zm /Zi $(OUTDIR)\$(InputName).asm
del $(OUTDIR)\$(InputName).spp
# End Custom Build
 
!ENDIF
 
# End Source File
# Begin Source File
 
SOURCE=.\zone.c
# End Source File
# End Group
# Begin Group "Header Files"
 
# PROP Default_Filter "h;hpp;hxx;hm;inl;fi;fd"
# Begin Source File
 
SOURCE=.\anorm_dots.h
# End Source File
# Begin Source File
 
SOURCE=.\anorms.h
# End Source File
# Begin Source File
 
SOURCE=.\bspfile.h
# End Source File
# Begin Source File
 
SOURCE=.\cdaudio.h
# End Source File
# Begin Source File
 
SOURCE=.\client.h
# End Source File
# Begin Source File
 
SOURCE=.\cmd.h
# End Source File
# Begin Source File
 
SOURCE=.\common.h
# End Source File
# Begin Source File
 
SOURCE=.\conproc.h
# End Source File
# Begin Source File
 
SOURCE=.\console.h
# End Source File
# Begin Source File
 
SOURCE=.\crc.h
# End Source File
# Begin Source File
 
SOURCE=.\cvar.h
# End Source File
# Begin Source File
 
SOURCE=.\d_iface.h
# End Source File
# Begin Source File
 
SOURCE=.\dosisms.h
# End Source File
# Begin Source File
 
SOURCE=.\draw.h
# End Source File
# Begin Source File
 
SOURCE=.\gl_model.h
# End Source File
# Begin Source File
 
SOURCE=.\gl_warp_sin.h
# End Source File
# Begin Source File
 
SOURCE=.\glquake.h
# End Source File
# Begin Source File
 
SOURCE=.\input.h
# End Source File
# Begin Source File
 
SOURCE=.\keys.h
# End Source File
# Begin Source File
 
SOURCE=.\mathlib.h
# End Source File
# Begin Source File
 
SOURCE=.\menu.h
# End Source File
# Begin Source File
 
SOURCE=.\model.h
# End Source File
# Begin Source File
 
SOURCE=.\modelgen.h
# End Source File
# Begin Source File
 
SOURCE=.\net.h
# End Source File
# Begin Source File
 
SOURCE=.\net_dgrm.h
# End Source File
# Begin Source File
 
SOURCE=.\net_loop.h
# End Source File
# Begin Source File
 
SOURCE=.\net_ser.h
# End Source File
# Begin Source File
 
SOURCE=.\net_vcr.h
# End Source File
# Begin Source File
 
SOURCE=.\net_wins.h
# End Source File
# Begin Source File
 
SOURCE=.\net_wipx.h
# End Source File
# Begin Source File
 
SOURCE=.\pr_comp.h
# End Source File
# Begin Source File
 
SOURCE=.\progdefs.h
# End Source File
# Begin Source File
 
SOURCE=.\progs.h
# End Source File
# Begin Source File
 
SOURCE=.\protocol.h
# End Source File
# Begin Source File
 
SOURCE=.\quakedef.h
# End Source File
# Begin Source File
 
SOURCE=.\r_local.h
# End Source File
# Begin Source File
 
SOURCE=.\r_shared.h
# End Source File
# Begin Source File
 
SOURCE=.\render.h
# End Source File
# Begin Source File
 
SOURCE=.\sbar.h
# End Source File
# Begin Source File
 
SOURCE=.\screen.h
# End Source File
# Begin Source File
 
SOURCE=.\server.h
# End Source File
# Begin Source File
 
SOURCE=.\sound.h
# End Source File
# Begin Source File
 
SOURCE=.\spritegn.h
# End Source File
# Begin Source File
 
SOURCE=.\sys.h
# End Source File
# Begin Source File
 
SOURCE=.\vid.h
# End Source File
# Begin Source File
 
SOURCE=.\view.h
# End Source File
# Begin Source File
 
SOURCE=.\wad.h
# End Source File
# Begin Source File
 
SOURCE=.\winquake.h
# End Source File
# Begin Source File
 
SOURCE=.\world.h
# End Source File
# Begin Source File
 
SOURCE=.\zone.h
# End Source File
# End Group
# Begin Group "Resource Files"
 
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe"
# Begin Source File
 
SOURCE=.\qe3.ico
# End Source File
# Begin Source File
 
SOURCE=.\quake.ico
# End Source File
# End Group
# Begin Source File
 
SOURCE=.\progdefs.q1
# End Source File
# Begin Source File
 
SOURCE=.\progdefs.q2
# End Source File
# End Target
# End Project
/contrib/other/sdlquake-1.0.9/WinQuake.dsw
0,0 → 1,44
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
 
###############################################################################
 
Project: "gas2masm"=.\gas2masm\gas2masm.dsp - Package Owner=<4>
 
Package=<5>
{{{
}}}
 
Package=<4>
{{{
}}}
 
###############################################################################
 
Project: "winquake"=.\WinQuake.dsp - Package Owner=<4>
 
Package=<5>
{{{
}}}
 
Package=<4>
{{{
Begin Project Dependency
Project_Dep_Name gas2masm
End Project Dependency
}}}
 
###############################################################################
 
Global:
 
Package=<5>
{{{
}}}
 
Package=<3>
{{{
}}}
 
###############################################################################
 
/contrib/other/sdlquake-1.0.9/acinclude.m4
0,0 → 1,165
# Configure paths for SDL
# Sam Lantinga 9/21/99
# stolen from Manish Singh
# stolen back from Frank Belew
# stolen from Manish Singh
# Shamelessly stolen from Owen Taylor
 
dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
dnl
AC_DEFUN(AM_PATH_SDL,
[dnl
dnl Get the cflags and libraries from the sdl-config script
dnl
AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)],
sdl_prefix="$withval", sdl_prefix="")
AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)],
sdl_exec_prefix="$withval", sdl_exec_prefix="")
AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program],
, enable_sdltest=yes)
 
if test x$sdl_exec_prefix != x ; then
sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
if test x${SDL_CONFIG+set} != xset ; then
SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
fi
fi
if test x$sdl_prefix != x ; then
sdl_args="$sdl_args --prefix=$sdl_prefix"
if test x${SDL_CONFIG+set} != xset ; then
SDL_CONFIG=$sdl_prefix/bin/sdl-config
fi
fi
 
AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
min_sdl_version=ifelse([$1], ,0.11.0,$1)
AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
no_sdl=""
if test "$SDL_CONFIG" = "no" ; then
no_sdl=yes
else
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
 
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
if test "x$enable_sdltest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
dnl
dnl Now check if the installed SDL is sufficiently new. (Also sanity
dnl checks the results of sdl-config to some extent
dnl
rm -f conf.sdltest
AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "SDL.h"
 
char*
my_strdup (char *str)
{
char *new_str;
if (str)
{
new_str = malloc ((strlen (str) + 1) * sizeof(char));
strcpy (new_str, str);
}
else
new_str = NULL;
return new_str;
}
 
int main ()
{
int major, minor, micro;
char *tmp_version;
 
system ("touch conf.sdltest");
 
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = my_strdup("$min_sdl_version");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "$min_sdl_version");
exit(1);
}
 
if (($sdl_major_version > major) ||
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
(($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
printf("*** best to upgrade to the required version.\n");
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
printf("*** config.cache before re-running configure\n");
return 1;
}
}
 
],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
if test "x$no_sdl" = x ; then
AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
else
AC_MSG_RESULT(no)
if test "$SDL_CONFIG" = "no" ; then
echo "*** The sdl-config script installed by SDL could not be found"
echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
echo "*** your path, or set the SDL_CONFIG environment variable to the"
echo "*** full path to sdl-config."
else
if test -f conf.sdltest ; then
:
else
echo "*** Could not run SDL test program, checking why..."
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
AC_TRY_LINK([
#include <stdio.h>
#include "SDL.h"
], [ return 0; ],
[ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding SDL or finding the wrong"
echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
echo "*** to the installed location Also, make sure you have run ldconfig if that"
echo "*** is required on your system"
echo "***"
echo "*** If you have an old version installed, it is best to remove it, although"
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
[ echo "*** The test program failed to compile or link. See the file config.log for the"
echo "*** exact error that occured. This usually means SDL was incorrectly installed"
echo "*** or that you have moved SDL since it was installed. In the latter case, you"
echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
SDL_CFLAGS=""
SDL_LIBS=""
ifelse([$3], , :, [$3])
fi
AC_SUBST(SDL_CFLAGS)
AC_SUBST(SDL_LIBS)
rm -f conf.sdltest
])
/contrib/other/sdlquake-1.0.9/aclocal.m4
0,0 → 1,270
dnl aclocal.m4 generated automatically by aclocal 1.4
 
dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
 
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
dnl PARTICULAR PURPOSE.
 
# Configure paths for SDL
# Sam Lantinga 9/21/99
# stolen from Manish Singh
# stolen back from Frank Belew
# stolen from Manish Singh
# Shamelessly stolen from Owen Taylor
 
dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
dnl
AC_DEFUN(AM_PATH_SDL,
[dnl
dnl Get the cflags and libraries from the sdl-config script
dnl
AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)],
sdl_prefix="$withval", sdl_prefix="")
AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)],
sdl_exec_prefix="$withval", sdl_exec_prefix="")
AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program],
, enable_sdltest=yes)
 
if test x$sdl_exec_prefix != x ; then
sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
if test x${SDL_CONFIG+set} != xset ; then
SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
fi
fi
if test x$sdl_prefix != x ; then
sdl_args="$sdl_args --prefix=$sdl_prefix"
if test x${SDL_CONFIG+set} != xset ; then
SDL_CONFIG=$sdl_prefix/bin/sdl-config
fi
fi
 
AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
min_sdl_version=ifelse([$1], ,0.11.0,$1)
AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
no_sdl=""
if test "$SDL_CONFIG" = "no" ; then
no_sdl=yes
else
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
 
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
if test "x$enable_sdltest" = "xyes" ; then
ac_save_CFLAGS="$CFLAGS"
ac_save_LIBS="$LIBS"
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
dnl
dnl Now check if the installed SDL is sufficiently new. (Also sanity
dnl checks the results of sdl-config to some extent
dnl
rm -f conf.sdltest
AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "SDL.h"
 
char*
my_strdup (char *str)
{
char *new_str;
if (str)
{
new_str = malloc ((strlen (str) + 1) * sizeof(char));
strcpy (new_str, str);
}
else
new_str = NULL;
return new_str;
}
 
int main ()
{
int major, minor, micro;
char *tmp_version;
 
system ("touch conf.sdltest");
 
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = my_strdup("$min_sdl_version");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
printf("%s, bad version string\n", "$min_sdl_version");
exit(1);
}
 
if (($sdl_major_version > major) ||
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
(($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
{
return 0;
}
else
{
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
printf("*** best to upgrade to the required version.\n");
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
printf("*** config.cache before re-running configure\n");
return 1;
}
}
 
],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
if test "x$no_sdl" = x ; then
AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
else
AC_MSG_RESULT(no)
if test "$SDL_CONFIG" = "no" ; then
echo "*** The sdl-config script installed by SDL could not be found"
echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
echo "*** your path, or set the SDL_CONFIG environment variable to the"
echo "*** full path to sdl-config."
else
if test -f conf.sdltest ; then
:
else
echo "*** Could not run SDL test program, checking why..."
CFLAGS="$CFLAGS $SDL_CFLAGS"
LIBS="$LIBS $SDL_LIBS"
AC_TRY_LINK([
#include <stdio.h>
#include "SDL.h"
], [ return 0; ],
[ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding SDL or finding the wrong"
echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
echo "*** to the installed location Also, make sure you have run ldconfig if that"
echo "*** is required on your system"
echo "***"
echo "*** If you have an old version installed, it is best to remove it, although"
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
[ echo "*** The test program failed to compile or link. See the file config.log for the"
echo "*** exact error that occured. This usually means SDL was incorrectly installed"
echo "*** or that you have moved SDL since it was installed. In the latter case, you"
echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
SDL_CFLAGS=""
SDL_LIBS=""
ifelse([$3], , :, [$3])
fi
AC_SUBST(SDL_CFLAGS)
AC_SUBST(SDL_LIBS)
rm -f conf.sdltest
])
 
# Do all the work for Automake. This macro actually does too much --
# some checks are only needed if your package does certain things.
# But this isn't really a big deal.
 
# serial 1
 
dnl Usage:
dnl AM_INIT_AUTOMAKE(package,version, [no-define])
 
AC_DEFUN(AM_INIT_AUTOMAKE,
[AC_REQUIRE([AC_PROG_INSTALL])
PACKAGE=[$1]
AC_SUBST(PACKAGE)
VERSION=[$2]
AC_SUBST(VERSION)
dnl test to see if srcdir already configured
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
fi
ifelse([$3],,
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
AC_REQUIRE([AM_SANITY_CHECK])
AC_REQUIRE([AC_ARG_PROGRAM])
dnl FIXME This is truly gross.
missing_dir=`cd $ac_aux_dir && pwd`
AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
AC_REQUIRE([AC_PROG_MAKE_SET])])
 
#
# Check to make sure that the build environment is sane.
#
 
AC_DEFUN(AM_SANITY_CHECK,
[AC_MSG_CHECKING([whether build environment is sane])
# Just in case
sleep 1
echo timestamp > conftestfile
# Do `set' in a subshell so we don't clobber the current shell's
# arguments. Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
if test "[$]*" = "X"; then
# -L didn't work.
set X `ls -t $srcdir/configure conftestfile`
fi
if test "[$]*" != "X $srcdir/configure conftestfile" \
&& test "[$]*" != "X conftestfile $srcdir/configure"; then
 
# If neither matched, then we have a broken ls. This can happen
# if, for instance, CONFIG_SHELL is bash and it inherits a
# broken ls alias from the environment. This has actually
# happened. Such a system could not be considered "sane".
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
alias in your environment])
fi
 
test "[$]2" = conftestfile
)
then
# Ok.
:
else
AC_MSG_ERROR([newly created file is older than distributed files!
Check your system clock])
fi
rm -f conftest*
AC_MSG_RESULT(yes)])
 
dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
dnl The program must properly implement --version.
AC_DEFUN(AM_MISSING_PROG,
[AC_MSG_CHECKING(for working $2)
# Run test in a subshell; some versions of sh will print an error if
# an executable is not found, even if stderr is redirected.
# Redirect stdin to placate older versions of autoconf. Sigh.
if ($2 --version) < /dev/null > /dev/null 2>&1; then
$1=$2
AC_MSG_RESULT(found)
else
$1="$3/missing $2"
AC_MSG_RESULT(missing)
fi
AC_SUBST($1)])
 
/contrib/other/sdlquake-1.0.9/adivtab.h
0,0 → 1,1077
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
// table of quotients and remainders for [-15...16] / [-15...16]
 
// numerator = -15
{1, 0},
{1, -1},
{1, -2},
{1, -3},
{1, -4},
{1, -5},
{1, -6},
{1, -7},
{2, -1},
{2, -3},
{3, 0},
{3, -3},
{5, 0},
{7, -1},
{15, 0},
{0, 0},
{-15, 0},
{-8, 1},
{-5, 0},
{-4, 1},
{-3, 0},
{-3, 3},
{-3, 6},
{-2, 1},
{-2, 3},
{-2, 5},
{-2, 7},
{-2, 9},
{-2, 11},
{-2, 13},
{-1, 0},
{-1, 1},
// numerator = -14
{0, -14},
{1, 0},
{1, -1},
{1, -2},
{1, -3},
{1, -4},
{1, -5},
{1, -6},
{2, 0},
{2, -2},
{2, -4},
{3, -2},
{4, -2},
{7, 0},
{14, 0},
{0, 0},
{-14, 0},
{-7, 0},
{-5, 1},
{-4, 2},
{-3, 1},
{-3, 4},
{-2, 0},
{-2, 2},
{-2, 4},
{-2, 6},
{-2, 8},
{-2, 10},
{-2, 12},
{-1, 0},
{-1, 1},
{-1, 2},
// numerator = -13
{0, -13},
{0, -13},
{1, 0},
{1, -1},
{1, -2},
{1, -3},
{1, -4},
{1, -5},
{1, -6},
{2, -1},
{2, -3},
{3, -1},
{4, -1},
{6, -1},
{13, 0},
{0, 0},
{-13, 0},
{-7, 1},
{-5, 2},
{-4, 3},
{-3, 2},
{-3, 5},
{-2, 1},
{-2, 3},
{-2, 5},
{-2, 7},
{-2, 9},
{-2, 11},
{-1, 0},
{-1, 1},
{-1, 2},
{-1, 3},
// numerator = -12
{0, -12},
{0, -12},
{0, -12},
{1, 0},
{1, -1},
{1, -2},
{1, -3},
{1, -4},
{1, -5},
{2, 0},
{2, -2},
{3, 0},
{4, 0},
{6, 0},
{12, 0},
{0, 0},
{-12, 0},
{-6, 0},
{-4, 0},
{-3, 0},
{-3, 3},
{-2, 0},
{-2, 2},
{-2, 4},
{-2, 6},
{-2, 8},
{-2, 10},
{-1, 0},
{-1, 1},
{-1, 2},
{-1, 3},
{-1, 4},
// numerator = -11
{0, -11},
{0, -11},
{0, -11},
{0, -11},
{1, 0},
{1, -1},
{1, -2},
{1, -3},
{1, -4},
{1, -5},
{2, -1},
{2, -3},
{3, -2},
{5, -1},
{11, 0},
{0, 0},
{-11, 0},
{-6, 1},
{-4, 1},
{-3, 1},
{-3, 4},
{-2, 1},
{-2, 3},
{-2, 5},
{-2, 7},
{-2, 9},
{-1, 0},
{-1, 1},
{-1, 2},
{-1, 3},
{-1, 4},
{-1, 5},
// numerator = -10
{0, -10},
{0, -10},
{0, -10},
{0, -10},
{0, -10},
{1, 0},
{1, -1},
{1, -2},
{1, -3},
{1, -4},
{2, 0},
{2, -2},
{3, -1},
{5, 0},
{10, 0},
{0, 0},
{-10, 0},
{-5, 0},
{-4, 2},
{-3, 2},
{-2, 0},
{-2, 2},
{-2, 4},
{-2, 6},
{-2, 8},
{-1, 0},
{-1, 1},
{-1, 2},
{-1, 3},
{-1, 4},
{-1, 5},
{-1, 6},
// numerator = -9
{0, -9},
{0, -9},
{0, -9},
{0, -9},
{0, -9},
{0, -9},
{1, 0},
{1, -1},
{1, -2},
{1, -3},
{1, -4},
{2, -1},
{3, 0},
{4, -1},
{9, 0},
{0, 0},
{-9, 0},
{-5, 1},
{-3, 0},
{-3, 3},
{-2, 1},
{-2, 3},
{-2, 5},
{-2, 7},
{-1, 0},
{-1, 1},
{-1, 2},
{-1, 3},
{-1, 4},
{-1, 5},
{-1, 6},
{-1, 7},
// numerator = -8
{0, -8},
{0, -8},
{0, -8},
{0, -8},
{0, -8},
{0, -8},
{0, -8},
{1, 0},
{1, -1},
{1, -2},
{1, -3},
{2, 0},
{2, -2},
{4, 0},
{8, 0},
{0, 0},
{-8, 0},
{-4, 0},
{-3, 1},
{-2, 0},
{-2, 2},
{-2, 4},
{-2, 6},
{-1, 0},
{-1, 1},
{-1, 2},
{-1, 3},
{-1, 4},
{-1, 5},
{-1, 6},
{-1, 7},
{-1, 8},
// numerator = -7
{0, -7},
{0, -7},
{0, -7},
{0, -7},
{0, -7},
{0, -7},
{0, -7},
{0, -7},
{1, 0},
{1, -1},
{1, -2},
{1, -3},
{2, -1},
{3, -1},
{7, 0},
{0, 0},
{-7, 0},
{-4, 1},
{-3, 2},
{-2, 1},
{-2, 3},
{-2, 5},
{-1, 0},
{-1, 1},
{-1, 2},
{-1, 3},
{-1, 4},
{-1, 5},
{-1, 6},
{-1, 7},
{-1, 8},
{-1, 9},
// numerator = -6
{0, -6},
{0, -6},
{0, -6},
{0, -6},
{0, -6},
{0, -6},
{0, -6},
{0, -6},
{0, -6},
{1, 0},
{1, -1},
{1, -2},
{2, 0},
{3, 0},
{6, 0},
{0, 0},
{-6, 0},
{-3, 0},
{-2, 0},
{-2, 2},
{-2, 4},
{-1, 0},
{-1, 1},
{-1, 2},
{-1, 3},
{-1, 4},
{-1, 5},
{-1, 6},
{-1, 7},
{-1, 8},
{-1, 9},
{-1, 10},
// numerator = -5
{0, -5},
{0, -5},
{0, -5},
{0, -5},
{0, -5},
{0, -5},
{0, -5},
{0, -5},
{0, -5},
{0, -5},
{1, 0},
{1, -1},
{1, -2},
{2, -1},
{5, 0},
{0, 0},
{-5, 0},
{-3, 1},
{-2, 1},
{-2, 3},
{-1, 0},
{-1, 1},
{-1, 2},
{-1, 3},
{-1, 4},
{-1, 5},
{-1, 6},
{-1, 7},
{-1, 8},
{-1, 9},
{-1, 10},
{-1, 11},
// numerator = -4
{0, -4},
{0, -4},
{0, -4},
{0, -4},
{0, -4},
{0, -4},
{0, -4},
{0, -4},
{0, -4},
{0, -4},
{0, -4},
{1, 0},
{1, -1},
{2, 0},
{4, 0},
{0, 0},
{-4, 0},
{-2, 0},
{-2, 2},
{-1, 0},
{-1, 1},
{-1, 2},
{-1, 3},
{-1, 4},
{-1, 5},
{-1, 6},
{-1, 7},
{-1, 8},
{-1, 9},
{-1, 10},
{-1, 11},
{-1, 12},
// numerator = -3
{0, -3},
{0, -3},
{0, -3},
{0, -3},
{0, -3},
{0, -3},
{0, -3},
{0, -3},
{0, -3},
{0, -3},
{0, -3},
{0, -3},
{1, 0},
{1, -1},
{3, 0},
{0, 0},
{-3, 0},
{-2, 1},
{-1, 0},
{-1, 1},
{-1, 2},
{-1, 3},
{-1, 4},
{-1, 5},
{-1, 6},
{-1, 7},
{-1, 8},
{-1, 9},
{-1, 10},
{-1, 11},
{-1, 12},
{-1, 13},
// numerator = -2
{0, -2},
{0, -2},
{0, -2},
{0, -2},
{0, -2},
{0, -2},
{0, -2},
{0, -2},
{0, -2},
{0, -2},
{0, -2},
{0, -2},
{0, -2},
{1, 0},
{2, 0},
{0, 0},
{-2, 0},
{-1, 0},
{-1, 1},
{-1, 2},
{-1, 3},
{-1, 4},
{-1, 5},
{-1, 6},
{-1, 7},
{-1, 8},
{-1, 9},
{-1, 10},
{-1, 11},
{-1, 12},
{-1, 13},
{-1, 14},
// numerator = -1
{0, -1},
{0, -1},
{0, -1},
{0, -1},
{0, -1},
{0, -1},
{0, -1},
{0, -1},
{0, -1},
{0, -1},
{0, -1},
{0, -1},
{0, -1},
{0, -1},
{1, 0},
{0, 0},
{-1, 0},
{-1, 1},
{-1, 2},
{-1, 3},
{-1, 4},
{-1, 5},
{-1, 6},
{-1, 7},
{-1, 8},
{-1, 9},
{-1, 10},
{-1, 11},
{-1, 12},
{-1, 13},
{-1, 14},
{-1, 15},
// numerator = 0
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0},
// numerator = 1
{-1, -14},
{-1, -13},
{-1, -12},
{-1, -11},
{-1, -10},
{-1, -9},
{-1, -8},
{-1, -7},
{-1, -6},
{-1, -5},
{-1, -4},
{-1, -3},
{-1, -2},
{-1, -1},
{-1, 0},
{0, 0},
{1, 0},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
{0, 1},
// numerator = 2
{-1, -13},
{-1, -12},
{-1, -11},
{-1, -10},
{-1, -9},
{-1, -8},
{-1, -7},
{-1, -6},
{-1, -5},
{-1, -4},
{-1, -3},
{-1, -2},
{-1, -1},
{-1, 0},
{-2, 0},
{0, 0},
{2, 0},
{1, 0},
{0, 2},
{0, 2},
{0, 2},
{0, 2},
{0, 2},
{0, 2},
{0, 2},
{0, 2},
{0, 2},
{0, 2},
{0, 2},
{0, 2},
{0, 2},
{0, 2},
// numerator = 3
{-1, -12},
{-1, -11},
{-1, -10},
{-1, -9},
{-1, -8},
{-1, -7},
{-1, -6},
{-1, -5},
{-1, -4},
{-1, -3},
{-1, -2},
{-1, -1},
{-1, 0},
{-2, -1},
{-3, 0},
{0, 0},
{3, 0},
{1, 1},
{1, 0},
{0, 3},
{0, 3},
{0, 3},
{0, 3},
{0, 3},
{0, 3},
{0, 3},
{0, 3},
{0, 3},
{0, 3},
{0, 3},
{0, 3},
{0, 3},
// numerator = 4
{-1, -11},
{-1, -10},
{-1, -9},
{-1, -8},
{-1, -7},
{-1, -6},
{-1, -5},
{-1, -4},
{-1, -3},
{-1, -2},
{-1, -1},
{-1, 0},
{-2, -2},
{-2, 0},
{-4, 0},
{0, 0},
{4, 0},
{2, 0},
{1, 1},
{1, 0},
{0, 4},
{0, 4},
{0, 4},
{0, 4},
{0, 4},
{0, 4},
{0, 4},
{0, 4},
{0, 4},
{0, 4},
{0, 4},
{0, 4},
// numerator = 5
{-1, -10},
{-1, -9},
{-1, -8},
{-1, -7},
{-1, -6},
{-1, -5},
{-1, -4},
{-1, -3},
{-1, -2},
{-1, -1},
{-1, 0},
{-2, -3},
{-2, -1},
{-3, -1},
{-5, 0},
{0, 0},
{5, 0},
{2, 1},
{1, 2},
{1, 1},
{1, 0},
{0, 5},
{0, 5},
{0, 5},
{0, 5},
{0, 5},
{0, 5},
{0, 5},
{0, 5},
{0, 5},
{0, 5},
{0, 5},
// numerator = 6
{-1, -9},
{-1, -8},
{-1, -7},
{-1, -6},
{-1, -5},
{-1, -4},
{-1, -3},
{-1, -2},
{-1, -1},
{-1, 0},
{-2, -4},
{-2, -2},
{-2, 0},
{-3, 0},
{-6, 0},
{0, 0},
{6, 0},
{3, 0},
{2, 0},
{1, 2},
{1, 1},
{1, 0},
{0, 6},
{0, 6},
{0, 6},
{0, 6},
{0, 6},
{0, 6},
{0, 6},
{0, 6},
{0, 6},
{0, 6},
// numerator = 7
{-1, -8},
{-1, -7},
{-1, -6},
{-1, -5},
{-1, -4},
{-1, -3},
{-1, -2},
{-1, -1},
{-1, 0},
{-2, -5},
{-2, -3},
{-2, -1},
{-3, -2},
{-4, -1},
{-7, 0},
{0, 0},
{7, 0},
{3, 1},
{2, 1},
{1, 3},
{1, 2},
{1, 1},
{1, 0},
{0, 7},
{0, 7},
{0, 7},
{0, 7},
{0, 7},
{0, 7},
{0, 7},
{0, 7},
{0, 7},
// numerator = 8
{-1, -7},
{-1, -6},
{-1, -5},
{-1, -4},
{-1, -3},
{-1, -2},
{-1, -1},
{-1, 0},
{-2, -6},
{-2, -4},
{-2, -2},
{-2, 0},
{-3, -1},
{-4, 0},
{-8, 0},
{0, 0},
{8, 0},
{4, 0},
{2, 2},
{2, 0},
{1, 3},
{1, 2},
{1, 1},
{1, 0},
{0, 8},
{0, 8},
{0, 8},
{0, 8},
{0, 8},
{0, 8},
{0, 8},
{0, 8},
// numerator = 9
{-1, -6},
{-1, -5},
{-1, -4},
{-1, -3},
{-1, -2},
{-1, -1},
{-1, 0},
{-2, -7},
{-2, -5},
{-2, -3},
{-2, -1},
{-3, -3},
{-3, 0},
{-5, -1},
{-9, 0},
{0, 0},
{9, 0},
{4, 1},
{3, 0},
{2, 1},
{1, 4},
{1, 3},
{1, 2},
{1, 1},
{1, 0},
{0, 9},
{0, 9},
{0, 9},
{0, 9},
{0, 9},
{0, 9},
{0, 9},
// numerator = 10
{-1, -5},
{-1, -4},
{-1, -3},
{-1, -2},
{-1, -1},
{-1, 0},
{-2, -8},
{-2, -6},
{-2, -4},
{-2, -2},
{-2, 0},
{-3, -2},
{-4, -2},
{-5, 0},
{-10, 0},
{0, 0},
{10, 0},
{5, 0},
{3, 1},
{2, 2},
{2, 0},
{1, 4},
{1, 3},
{1, 2},
{1, 1},
{1, 0},
{0, 10},
{0, 10},
{0, 10},
{0, 10},
{0, 10},
{0, 10},
// numerator = 11
{-1, -4},
{-1, -3},
{-1, -2},
{-1, -1},
{-1, 0},
{-2, -9},
{-2, -7},
{-2, -5},
{-2, -3},
{-2, -1},
{-3, -4},
{-3, -1},
{-4, -1},
{-6, -1},
{-11, 0},
{0, 0},
{11, 0},
{5, 1},
{3, 2},
{2, 3},
{2, 1},
{1, 5},
{1, 4},
{1, 3},
{1, 2},
{1, 1},
{1, 0},
{0, 11},
{0, 11},
{0, 11},
{0, 11},
{0, 11},
// numerator = 12
{-1, -3},
{-1, -2},
{-1, -1},
{-1, 0},
{-2, -10},
{-2, -8},
{-2, -6},
{-2, -4},
{-2, -2},
{-2, 0},
{-3, -3},
{-3, 0},
{-4, 0},
{-6, 0},
{-12, 0},
{0, 0},
{12, 0},
{6, 0},
{4, 0},
{3, 0},
{2, 2},
{2, 0},
{1, 5},
{1, 4},
{1, 3},
{1, 2},
{1, 1},
{1, 0},
{0, 12},
{0, 12},
{0, 12},
{0, 12},
// numerator = 13
{-1, -2},
{-1, -1},
{-1, 0},
{-2, -11},
{-2, -9},
{-2, -7},
{-2, -5},
{-2, -3},
{-2, -1},
{-3, -5},
{-3, -2},
{-4, -3},
{-5, -2},
{-7, -1},
{-13, 0},
{0, 0},
{13, 0},
{6, 1},
{4, 1},
{3, 1},
{2, 3},
{2, 1},
{1, 6},
{1, 5},
{1, 4},
{1, 3},
{1, 2},
{1, 1},
{1, 0},
{0, 13},
{0, 13},
{0, 13},
// numerator = 14
{-1, -1},
{-1, 0},
{-2, -12},
{-2, -10},
{-2, -8},
{-2, -6},
{-2, -4},
{-2, -2},
{-2, 0},
{-3, -4},
{-3, -1},
{-4, -2},
{-5, -1},
{-7, 0},
{-14, 0},
{0, 0},
{14, 0},
{7, 0},
{4, 2},
{3, 2},
{2, 4},
{2, 2},
{2, 0},
{1, 6},
{1, 5},
{1, 4},
{1, 3},
{1, 2},
{1, 1},
{1, 0},
{0, 14},
{0, 14},
// numerator = 15
{-1, 0},
{-2, -13},
{-2, -11},
{-2, -9},
{-2, -7},
{-2, -5},
{-2, -3},
{-2, -1},
{-3, -6},
{-3, -3},
{-3, 0},
{-4, -1},
{-5, 0},
{-8, -1},
{-15, 0},
{0, 0},
{15, 0},
{7, 1},
{5, 0},
{3, 3},
{3, 0},
{2, 3},
{2, 1},
{1, 7},
{1, 6},
{1, 5},
{1, 4},
{1, 3},
{1, 2},
{1, 1},
{1, 0},
{0, 15},
// numerator = 16
{-2, -14},
{-2, -12},
{-2, -10},
{-2, -8},
{-2, -6},
{-2, -4},
{-2, -2},
{-2, 0},
{-3, -5},
{-3, -2},
{-4, -4},
{-4, 0},
{-6, -2},
{-8, 0},
{-16, 0},
{0, 0},
{16, 0},
{8, 0},
{5, 1},
{4, 0},
{3, 1},
{2, 4},
{2, 2},
{2, 0},
{1, 7},
{1, 6},
{1, 5},
{1, 4},
{1, 3},
{1, 2},
{1, 1},
{1, 0},
/contrib/other/sdlquake-1.0.9/anorm_dots.h
0,0 → 1,37
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
{
{1.23,1.30,1.47,1.35,1.56,1.71,1.37,1.38,1.59,1.60,1.79,1.97,1.88,1.92,1.79,1.02,0.93,1.07,0.82,0.87,0.88,0.94,0.96,1.14,1.11,0.82,0.83,0.89,0.89,0.86,0.94,0.91,1.00,1.21,0.98,1.48,1.30,1.57,0.96,1.07,1.14,1.60,1.61,1.40,1.37,1.72,1.78,1.79,1.93,1.99,1.90,1.68,1.71,1.86,1.60,1.68,1.78,1.86,1.93,1.99,1.97,1.44,1.22,1.49,0.93,0.99,0.99,1.23,1.22,1.44,1.49,0.89,0.89,0.97,0.91,0.98,1.19,0.82,0.76,0.82,0.71,0.72,0.73,0.76,0.79,0.86,0.83,0.72,0.76,0.76,0.89,0.82,0.89,0.82,0.89,0.91,0.83,0.96,1.14,0.97,1.40,1.19,0.98,0.94,1.00,1.07,1.37,1.21,1.48,1.30,1.57,1.61,1.37,0.86,0.83,0.91,0.82,0.82,0.88,0.89,0.96,1.14,0.98,0.87,0.93,0.94,1.02,1.30,1.07,1.35,1.38,1.11,1.56,1.92,1.79,1.79,1.59,1.60,1.72,1.90,1.79,0.80,0.85,0.79,0.93,0.80,0.85,0.77,0.74,0.72,0.77,0.74,0.72,0.70,0.70,0.71,0.76,0.73,0.79,0.79,0.73,0.76,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.26,1.26,1.48,1.23,1.50,1.71,1.14,1.19,1.38,1.46,1.64,1.94,1.87,1.84,1.71,1.02,0.92,1.00,0.79,0.85,0.84,0.91,0.90,0.98,0.99,0.77,0.77,0.83,0.82,0.79,0.86,0.84,0.92,0.99,0.91,1.24,1.03,1.33,0.88,0.94,0.97,1.41,1.39,1.18,1.11,1.51,1.61,1.59,1.80,1.91,1.76,1.54,1.65,1.76,1.70,1.70,1.85,1.85,1.97,1.99,1.93,1.28,1.09,1.39,0.92,0.97,0.99,1.18,1.26,1.52,1.48,0.83,0.85,0.90,0.88,0.93,1.00,0.77,0.73,0.78,0.72,0.71,0.74,0.75,0.79,0.86,0.81,0.75,0.81,0.79,0.96,0.88,0.94,0.86,0.93,0.92,0.85,1.08,1.33,1.05,1.55,1.31,1.01,1.05,1.27,1.31,1.60,1.47,1.70,1.54,1.76,1.76,1.57,0.93,0.90,0.99,0.88,0.88,0.95,0.97,1.11,1.39,1.20,0.92,0.97,1.01,1.10,1.39,1.22,1.51,1.58,1.32,1.64,1.97,1.85,1.91,1.77,1.74,1.88,1.99,1.91,0.79,0.86,0.80,0.94,0.84,0.88,0.74,0.74,0.71,0.82,0.77,0.76,0.70,0.73,0.72,0.73,0.70,0.74,0.85,0.77,0.82,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.34,1.27,1.53,1.17,1.46,1.71,0.98,1.05,1.20,1.34,1.48,1.86,1.82,1.71,1.62,1.09,0.94,0.99,0.79,0.85,0.82,0.90,0.87,0.93,0.96,0.76,0.74,0.79,0.76,0.74,0.79,0.78,0.85,0.92,0.85,1.00,0.93,1.06,0.81,0.86,0.89,1.16,1.12,0.97,0.95,1.28,1.38,1.35,1.60,1.77,1.57,1.33,1.50,1.58,1.69,1.63,1.82,1.74,1.91,1.92,1.80,1.04,0.97,1.21,0.90,0.93,0.97,1.05,1.21,1.48,1.37,0.77,0.80,0.84,0.85,0.88,0.92,0.73,0.71,0.74,0.74,0.71,0.75,0.73,0.79,0.84,0.78,0.79,0.86,0.81,1.05,0.94,0.99,0.90,0.95,0.92,0.86,1.24,1.44,1.14,1.59,1.34,1.02,1.27,1.50,1.49,1.80,1.69,1.86,1.72,1.87,1.80,1.69,1.00,0.98,1.23,0.95,0.96,1.09,1.16,1.37,1.63,1.46,0.99,1.10,1.25,1.24,1.51,1.41,1.67,1.77,1.55,1.72,1.95,1.89,1.98,1.91,1.86,1.97,1.99,1.94,0.81,0.89,0.85,0.98,0.90,0.94,0.75,0.78,0.73,0.89,0.83,0.82,0.72,0.77,0.76,0.72,0.70,0.71,0.91,0.83,0.89,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.46,1.34,1.60,1.16,1.46,1.71,0.94,0.99,1.05,1.26,1.33,1.74,1.76,1.57,1.54,1.23,0.98,1.05,0.83,0.89,0.84,0.92,0.87,0.91,0.96,0.78,0.74,0.79,0.72,0.72,0.75,0.76,0.80,0.88,0.83,0.94,0.87,0.95,0.76,0.80,0.82,0.97,0.96,0.89,0.88,1.08,1.11,1.10,1.37,1.59,1.37,1.07,1.27,1.34,1.57,1.45,1.69,1.55,1.77,1.79,1.60,0.93,0.90,0.99,0.86,0.87,0.93,0.96,1.07,1.35,1.18,0.73,0.76,0.77,0.81,0.82,0.85,0.70,0.71,0.72,0.78,0.73,0.77,0.73,0.79,0.82,0.76,0.83,0.90,0.84,1.18,0.98,1.03,0.92,0.95,0.90,0.86,1.32,1.45,1.15,1.53,1.27,0.99,1.42,1.65,1.58,1.93,1.83,1.94,1.81,1.88,1.74,1.70,1.19,1.17,1.44,1.11,1.15,1.36,1.41,1.61,1.81,1.67,1.22,1.34,1.50,1.42,1.65,1.61,1.82,1.91,1.75,1.80,1.89,1.89,1.98,1.99,1.94,1.98,1.92,1.87,0.86,0.95,0.92,1.14,0.98,1.03,0.79,0.84,0.77,0.97,0.90,0.89,0.76,0.82,0.82,0.74,0.72,0.71,0.98,0.89,0.97,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.60,1.44,1.68,1.22,1.49,1.71,0.93,0.99,0.99,1.23,1.22,1.60,1.68,1.44,1.49,1.40,1.14,1.19,0.89,0.96,0.89,0.97,0.89,0.91,0.98,0.82,0.76,0.82,0.71,0.72,0.73,0.76,0.79,0.86,0.83,0.91,0.83,0.89,0.72,0.76,0.76,0.89,0.89,0.82,0.82,0.98,0.96,0.97,1.14,1.40,1.19,0.94,1.00,1.07,1.37,1.21,1.48,1.30,1.57,1.61,1.37,0.86,0.83,0.91,0.82,0.82,0.88,0.89,0.96,1.14,0.98,0.70,0.72,0.73,0.77,0.76,0.79,0.70,0.72,0.71,0.82,0.77,0.80,0.74,0.79,0.80,0.74,0.87,0.93,0.85,1.23,1.02,1.02,0.93,0.93,0.87,0.85,1.30,1.35,1.07,1.38,1.11,0.94,1.47,1.71,1.56,1.97,1.88,1.92,1.79,1.79,1.59,1.60,1.30,1.35,1.56,1.37,1.38,1.59,1.60,1.79,1.92,1.79,1.48,1.57,1.72,1.61,1.78,1.79,1.93,1.99,1.90,1.86,1.78,1.86,1.93,1.99,1.97,1.90,1.79,1.72,0.94,1.07,1.00,1.37,1.21,1.30,0.86,0.91,0.83,1.14,0.98,0.96,0.82,0.88,0.89,0.79,0.76,0.73,1.07,0.94,1.11,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.74,1.57,1.76,1.33,1.54,1.71,0.94,1.05,0.99,1.26,1.16,1.46,1.60,1.34,1.46,1.59,1.37,1.37,0.97,1.11,0.96,1.10,0.95,0.94,1.08,0.89,0.82,0.88,0.72,0.76,0.75,0.80,0.80,0.88,0.87,0.91,0.83,0.87,0.72,0.76,0.74,0.83,0.84,0.78,0.79,0.96,0.89,0.92,0.98,1.23,1.05,0.86,0.92,0.95,1.11,0.98,1.22,1.03,1.34,1.42,1.14,0.79,0.77,0.84,0.78,0.76,0.82,0.82,0.89,0.97,0.90,0.70,0.71,0.71,0.73,0.72,0.74,0.73,0.76,0.72,0.86,0.81,0.82,0.76,0.79,0.77,0.73,0.90,0.95,0.86,1.18,1.03,0.98,0.92,0.90,0.83,0.84,1.19,1.17,0.98,1.15,0.97,0.89,1.42,1.65,1.44,1.93,1.83,1.81,1.67,1.61,1.36,1.41,1.32,1.45,1.58,1.57,1.53,1.74,1.70,1.88,1.94,1.81,1.69,1.77,1.87,1.79,1.89,1.92,1.98,1.99,1.98,1.89,1.65,1.80,1.82,1.91,1.94,1.75,1.61,1.50,1.07,1.34,1.27,1.60,1.45,1.55,0.93,0.99,0.90,1.35,1.18,1.07,0.87,0.93,0.96,0.85,0.82,0.77,1.15,0.99,1.27,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.86,1.71,1.82,1.48,1.62,1.71,0.98,1.20,1.05,1.34,1.17,1.34,1.53,1.27,1.46,1.77,1.60,1.57,1.16,1.38,1.12,1.35,1.06,1.00,1.28,0.97,0.89,0.95,0.76,0.81,0.79,0.86,0.85,0.92,0.93,0.93,0.85,0.87,0.74,0.78,0.74,0.79,0.82,0.76,0.79,0.96,0.85,0.90,0.94,1.09,0.99,0.81,0.85,0.89,0.95,0.90,0.99,0.94,1.10,1.24,0.98,0.75,0.73,0.78,0.74,0.72,0.77,0.76,0.82,0.89,0.83,0.73,0.71,0.71,0.71,0.70,0.72,0.77,0.80,0.74,0.90,0.85,0.84,0.78,0.79,0.75,0.73,0.92,0.95,0.86,1.05,0.99,0.94,0.90,0.86,0.79,0.81,1.00,0.98,0.91,0.96,0.89,0.83,1.27,1.50,1.23,1.80,1.69,1.63,1.46,1.37,1.09,1.16,1.24,1.44,1.49,1.69,1.59,1.80,1.69,1.87,1.86,1.72,1.82,1.91,1.94,1.92,1.95,1.99,1.98,1.91,1.97,1.89,1.51,1.72,1.67,1.77,1.86,1.55,1.41,1.25,1.33,1.58,1.50,1.80,1.63,1.74,1.04,1.21,0.97,1.48,1.37,1.21,0.93,0.97,1.05,0.92,0.88,0.84,1.14,1.02,1.34,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.94,1.84,1.87,1.64,1.71,1.71,1.14,1.38,1.19,1.46,1.23,1.26,1.48,1.26,1.50,1.91,1.80,1.76,1.41,1.61,1.39,1.59,1.33,1.24,1.51,1.18,0.97,1.11,0.82,0.88,0.86,0.94,0.92,0.99,1.03,0.98,0.91,0.90,0.79,0.84,0.77,0.79,0.84,0.77,0.83,0.99,0.85,0.91,0.92,1.02,1.00,0.79,0.80,0.86,0.88,0.84,0.92,0.88,0.97,1.10,0.94,0.74,0.71,0.74,0.72,0.70,0.73,0.72,0.76,0.82,0.77,0.77,0.73,0.74,0.71,0.70,0.73,0.83,0.85,0.78,0.92,0.88,0.86,0.81,0.79,0.74,0.75,0.92,0.93,0.85,0.96,0.94,0.88,0.86,0.81,0.75,0.79,0.93,0.90,0.85,0.88,0.82,0.77,1.05,1.27,0.99,1.60,1.47,1.39,1.20,1.11,0.95,0.97,1.08,1.33,1.31,1.70,1.55,1.76,1.57,1.76,1.70,1.54,1.85,1.97,1.91,1.99,1.97,1.99,1.91,1.77,1.88,1.85,1.39,1.64,1.51,1.58,1.74,1.32,1.22,1.01,1.54,1.76,1.65,1.93,1.70,1.85,1.28,1.39,1.09,1.52,1.48,1.26,0.97,0.99,1.18,1.00,0.93,0.90,1.05,1.01,1.31,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.97,1.92,1.88,1.79,1.79,1.71,1.37,1.59,1.38,1.60,1.35,1.23,1.47,1.30,1.56,1.99,1.93,1.90,1.60,1.78,1.61,1.79,1.57,1.48,1.72,1.40,1.14,1.37,0.89,0.96,0.94,1.07,1.00,1.21,1.30,1.14,0.98,0.96,0.86,0.91,0.83,0.82,0.88,0.82,0.89,1.11,0.87,0.94,0.93,1.02,1.07,0.80,0.79,0.85,0.82,0.80,0.87,0.85,0.93,1.02,0.93,0.77,0.72,0.74,0.71,0.70,0.70,0.71,0.72,0.77,0.74,0.82,0.76,0.79,0.72,0.73,0.76,0.89,0.89,0.82,0.93,0.91,0.86,0.83,0.79,0.73,0.76,0.91,0.89,0.83,0.89,0.89,0.82,0.82,0.76,0.72,0.76,0.86,0.83,0.79,0.82,0.76,0.73,0.94,1.00,0.91,1.37,1.21,1.14,0.98,0.96,0.88,0.89,0.96,1.14,1.07,1.60,1.40,1.61,1.37,1.57,1.48,1.30,1.78,1.93,1.79,1.99,1.92,1.90,1.79,1.59,1.72,1.79,1.30,1.56,1.35,1.38,1.60,1.11,1.07,0.94,1.68,1.86,1.71,1.97,1.68,1.86,1.44,1.49,1.22,1.44,1.49,1.22,0.99,0.99,1.23,1.19,0.98,0.97,0.97,0.98,1.19,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.94,1.97,1.87,1.91,1.85,1.71,1.60,1.77,1.58,1.74,1.51,1.26,1.48,1.39,1.64,1.99,1.97,1.99,1.70,1.85,1.76,1.91,1.76,1.70,1.88,1.55,1.33,1.57,0.96,1.08,1.05,1.31,1.27,1.47,1.54,1.39,1.20,1.11,0.93,0.99,0.90,0.88,0.95,0.88,0.97,1.32,0.92,1.01,0.97,1.10,1.22,0.84,0.80,0.88,0.79,0.79,0.85,0.86,0.92,1.02,0.94,0.82,0.76,0.77,0.72,0.73,0.70,0.72,0.71,0.74,0.74,0.88,0.81,0.85,0.75,0.77,0.82,0.94,0.93,0.86,0.92,0.92,0.86,0.85,0.79,0.74,0.79,0.88,0.85,0.81,0.82,0.83,0.77,0.78,0.73,0.71,0.75,0.79,0.77,0.74,0.77,0.73,0.70,0.86,0.92,0.84,1.14,0.99,0.98,0.91,0.90,0.84,0.83,0.88,0.97,0.94,1.41,1.18,1.39,1.11,1.33,1.24,1.03,1.61,1.80,1.59,1.91,1.84,1.76,1.64,1.38,1.51,1.71,1.26,1.50,1.23,1.19,1.46,0.99,1.00,0.91,1.70,1.85,1.65,1.93,1.54,1.76,1.52,1.48,1.26,1.28,1.39,1.09,0.99,0.97,1.18,1.31,1.01,1.05,0.90,0.93,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.86,1.95,1.82,1.98,1.89,1.71,1.80,1.91,1.77,1.86,1.67,1.34,1.53,1.51,1.72,1.92,1.91,1.99,1.69,1.82,1.80,1.94,1.87,1.86,1.97,1.59,1.44,1.69,1.05,1.24,1.27,1.49,1.50,1.69,1.72,1.63,1.46,1.37,1.00,1.23,0.98,0.95,1.09,0.96,1.16,1.55,0.99,1.25,1.10,1.24,1.41,0.90,0.85,0.94,0.79,0.81,0.85,0.89,0.94,1.09,0.98,0.89,0.82,0.83,0.74,0.77,0.72,0.76,0.73,0.75,0.78,0.94,0.86,0.91,0.79,0.83,0.89,0.99,0.95,0.90,0.90,0.92,0.84,0.86,0.79,0.75,0.81,0.85,0.80,0.78,0.76,0.77,0.73,0.74,0.71,0.71,0.73,0.74,0.74,0.71,0.76,0.72,0.70,0.79,0.85,0.78,0.98,0.92,0.93,0.85,0.87,0.82,0.79,0.81,0.89,0.86,1.16,0.97,1.12,0.95,1.06,1.00,0.93,1.38,1.60,1.35,1.77,1.71,1.57,1.48,1.20,1.28,1.62,1.27,1.46,1.17,1.05,1.34,0.96,0.99,0.90,1.63,1.74,1.50,1.80,1.33,1.58,1.48,1.37,1.21,1.04,1.21,0.97,0.97,0.93,1.05,1.34,1.02,1.14,0.84,0.88,0.92,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.74,1.89,1.76,1.98,1.89,1.71,1.93,1.99,1.91,1.94,1.82,1.46,1.60,1.65,1.80,1.79,1.77,1.92,1.57,1.69,1.74,1.87,1.88,1.94,1.98,1.53,1.45,1.70,1.18,1.32,1.42,1.58,1.65,1.83,1.81,1.81,1.67,1.61,1.19,1.44,1.17,1.11,1.36,1.15,1.41,1.75,1.22,1.50,1.34,1.42,1.61,0.98,0.92,1.03,0.83,0.86,0.89,0.95,0.98,1.23,1.14,0.97,0.89,0.90,0.78,0.82,0.76,0.82,0.77,0.79,0.84,0.98,0.90,0.98,0.83,0.89,0.97,1.03,0.95,0.92,0.86,0.90,0.82,0.86,0.79,0.77,0.84,0.81,0.76,0.76,0.72,0.73,0.70,0.72,0.71,0.73,0.73,0.72,0.74,0.71,0.78,0.74,0.72,0.75,0.80,0.76,0.94,0.88,0.91,0.83,0.87,0.84,0.79,0.76,0.82,0.80,0.97,0.89,0.96,0.88,0.95,0.94,0.87,1.11,1.37,1.10,1.59,1.57,1.37,1.33,1.05,1.08,1.54,1.34,1.46,1.16,0.99,1.26,0.96,1.05,0.92,1.45,1.55,1.27,1.60,1.07,1.34,1.35,1.18,1.07,0.93,0.99,0.90,0.93,0.87,0.96,1.27,0.99,1.15,0.77,0.82,0.85,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.60,1.78,1.68,1.93,1.86,1.71,1.97,1.99,1.99,1.97,1.93,1.60,1.68,1.78,1.86,1.61,1.57,1.79,1.37,1.48,1.59,1.72,1.79,1.92,1.90,1.38,1.35,1.60,1.23,1.30,1.47,1.56,1.71,1.88,1.79,1.92,1.79,1.79,1.30,1.56,1.35,1.37,1.59,1.38,1.60,1.90,1.48,1.72,1.57,1.61,1.79,1.21,1.00,1.30,0.89,0.94,0.96,1.07,1.14,1.40,1.37,1.14,0.96,0.98,0.82,0.88,0.82,0.89,0.83,0.86,0.91,1.02,0.93,1.07,0.87,0.94,1.11,1.02,0.93,0.93,0.82,0.87,0.80,0.85,0.79,0.80,0.85,0.77,0.72,0.74,0.71,0.70,0.70,0.71,0.72,0.77,0.74,0.72,0.76,0.73,0.82,0.79,0.76,0.73,0.79,0.76,0.93,0.86,0.91,0.83,0.89,0.89,0.82,0.72,0.76,0.76,0.89,0.82,0.89,0.82,0.89,0.91,0.83,0.96,1.14,0.97,1.40,1.44,1.19,1.22,0.99,0.98,1.49,1.44,1.49,1.22,0.99,1.23,0.98,1.19,0.97,1.21,1.30,1.00,1.37,0.94,1.07,1.14,0.98,0.96,0.86,0.91,0.83,0.88,0.82,0.89,1.11,0.94,1.07,0.73,0.76,0.79,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.46,1.65,1.60,1.82,1.80,1.71,1.93,1.91,1.99,1.94,1.98,1.74,1.76,1.89,1.89,1.42,1.34,1.61,1.11,1.22,1.36,1.50,1.61,1.81,1.75,1.15,1.17,1.41,1.18,1.19,1.42,1.44,1.65,1.83,1.67,1.94,1.81,1.88,1.32,1.58,1.45,1.57,1.74,1.53,1.70,1.98,1.69,1.87,1.77,1.79,1.92,1.45,1.27,1.55,0.97,1.07,1.11,1.34,1.37,1.59,1.60,1.35,1.07,1.18,0.86,0.93,0.87,0.96,0.90,0.93,0.99,1.03,0.95,1.15,0.90,0.99,1.27,0.98,0.90,0.92,0.78,0.83,0.77,0.84,0.79,0.82,0.86,0.73,0.71,0.73,0.72,0.70,0.73,0.72,0.76,0.81,0.76,0.76,0.82,0.77,0.89,0.85,0.82,0.75,0.80,0.80,0.94,0.88,0.94,0.87,0.95,0.96,0.88,0.72,0.74,0.76,0.83,0.78,0.84,0.79,0.87,0.91,0.83,0.89,0.98,0.92,1.23,1.34,1.05,1.16,0.99,0.96,1.46,1.57,1.54,1.33,1.05,1.26,1.08,1.37,1.10,0.98,1.03,0.92,1.14,0.86,0.95,0.97,0.90,0.89,0.79,0.84,0.77,0.82,0.76,0.82,0.97,0.89,0.98,0.71,0.72,0.74,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.34,1.51,1.53,1.67,1.72,1.71,1.80,1.77,1.91,1.86,1.98,1.86,1.82,1.95,1.89,1.24,1.10,1.41,0.95,0.99,1.09,1.25,1.37,1.63,1.55,0.96,0.98,1.16,1.05,1.00,1.27,1.23,1.50,1.69,1.46,1.86,1.72,1.87,1.24,1.49,1.44,1.69,1.80,1.59,1.69,1.97,1.82,1.94,1.91,1.92,1.99,1.63,1.50,1.74,1.16,1.33,1.38,1.58,1.60,1.77,1.80,1.48,1.21,1.37,0.90,0.97,0.93,1.05,0.97,1.04,1.21,0.99,0.95,1.14,0.92,1.02,1.34,0.94,0.86,0.90,0.74,0.79,0.75,0.81,0.79,0.84,0.86,0.71,0.71,0.73,0.76,0.73,0.77,0.74,0.80,0.85,0.78,0.81,0.89,0.84,0.97,0.92,0.88,0.79,0.85,0.86,0.98,0.92,1.00,0.93,1.06,1.12,0.95,0.74,0.74,0.78,0.79,0.76,0.82,0.79,0.87,0.93,0.85,0.85,0.94,0.90,1.09,1.27,0.99,1.17,1.05,0.96,1.46,1.71,1.62,1.48,1.20,1.34,1.28,1.57,1.35,0.90,0.94,0.85,0.98,0.81,0.89,0.89,0.83,0.82,0.75,0.78,0.73,0.77,0.72,0.76,0.89,0.83,0.91,0.71,0.70,0.72,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00},
{1.26,1.39,1.48,1.51,1.64,1.71,1.60,1.58,1.77,1.74,1.91,1.94,1.87,1.97,1.85,1.10,0.97,1.22,0.88,0.92,0.95,1.01,1.11,1.39,1.32,0.88,0.90,0.97,0.96,0.93,1.05,0.99,1.27,1.47,1.20,1.70,1.54,1.76,1.08,1.31,1.33,1.70,1.76,1.55,1.57,1.88,1.85,1.91,1.97,1.99,1.99,1.70,1.65,1.85,1.41,1.54,1.61,1.76,1.80,1.91,1.93,1.52,1.26,1.48,0.92,0.99,0.97,1.18,1.09,1.28,1.39,0.94,0.93,1.05,0.92,1.01,1.31,0.88,0.81,0.86,0.72,0.75,0.74,0.79,0.79,0.86,0.85,0.71,0.73,0.75,0.82,0.77,0.83,0.78,0.85,0.88,0.81,0.88,0.97,0.90,1.18,1.00,0.93,0.86,0.92,0.94,1.14,0.99,1.24,1.03,1.33,1.39,1.11,0.79,0.77,0.84,0.79,0.77,0.84,0.83,0.90,0.98,0.91,0.85,0.92,0.91,1.02,1.26,1.00,1.23,1.19,0.99,1.50,1.84,1.71,1.64,1.38,1.46,1.51,1.76,1.59,0.84,0.88,0.80,0.94,0.79,0.86,0.82,0.77,0.76,0.74,0.74,0.71,0.73,0.70,0.72,0.82,0.77,0.85,0.74,0.70,0.73,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00}
}
/contrib/other/sdlquake-1.0.9/anorms.h
0,0 → 1,181
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
{-0.525731, 0.000000, 0.850651},
{-0.442863, 0.238856, 0.864188},
{-0.295242, 0.000000, 0.955423},
{-0.309017, 0.500000, 0.809017},
{-0.162460, 0.262866, 0.951056},
{0.000000, 0.000000, 1.000000},
{0.000000, 0.850651, 0.525731},
{-0.147621, 0.716567, 0.681718},
{0.147621, 0.716567, 0.681718},
{0.000000, 0.525731, 0.850651},
{0.309017, 0.500000, 0.809017},
{0.525731, 0.000000, 0.850651},
{0.295242, 0.000000, 0.955423},
{0.442863, 0.238856, 0.864188},
{0.162460, 0.262866, 0.951056},
{-0.681718, 0.147621, 0.716567},
{-0.809017, 0.309017, 0.500000},
{-0.587785, 0.425325, 0.688191},
{-0.850651, 0.525731, 0.000000},
{-0.864188, 0.442863, 0.238856},
{-0.716567, 0.681718, 0.147621},
{-0.688191, 0.587785, 0.425325},
{-0.500000, 0.809017, 0.309017},
{-0.238856, 0.864188, 0.442863},
{-0.425325, 0.688191, 0.587785},
{-0.716567, 0.681718, -0.147621},
{-0.500000, 0.809017, -0.309017},
{-0.525731, 0.850651, 0.000000},
{0.000000, 0.850651, -0.525731},
{-0.238856, 0.864188, -0.442863},
{0.000000, 0.955423, -0.295242},
{-0.262866, 0.951056, -0.162460},
{0.000000, 1.000000, 0.000000},
{0.000000, 0.955423, 0.295242},
{-0.262866, 0.951056, 0.162460},
{0.238856, 0.864188, 0.442863},
{0.262866, 0.951056, 0.162460},
{0.500000, 0.809017, 0.309017},
{0.238856, 0.864188, -0.442863},
{0.262866, 0.951056, -0.162460},
{0.500000, 0.809017, -0.309017},
{0.850651, 0.525731, 0.000000},
{0.716567, 0.681718, 0.147621},
{0.716567, 0.681718, -0.147621},
{0.525731, 0.850651, 0.000000},
{0.425325, 0.688191, 0.587785},
{0.864188, 0.442863, 0.238856},
{0.688191, 0.587785, 0.425325},
{0.809017, 0.309017, 0.500000},
{0.681718, 0.147621, 0.716567},
{0.587785, 0.425325, 0.688191},
{0.955423, 0.295242, 0.000000},
{1.000000, 0.000000, 0.000000},
{0.951056, 0.162460, 0.262866},
{0.850651, -0.525731, 0.000000},
{0.955423, -0.295242, 0.000000},
{0.864188, -0.442863, 0.238856},
{0.951056, -0.162460, 0.262866},
{0.809017, -0.309017, 0.500000},
{0.681718, -0.147621, 0.716567},
{0.850651, 0.000000, 0.525731},
{0.864188, 0.442863, -0.238856},
{0.809017, 0.309017, -0.500000},
{0.951056, 0.162460, -0.262866},
{0.525731, 0.000000, -0.850651},
{0.681718, 0.147621, -0.716567},
{0.681718, -0.147621, -0.716567},
{0.850651, 0.000000, -0.525731},
{0.809017, -0.309017, -0.500000},
{0.864188, -0.442863, -0.238856},
{0.951056, -0.162460, -0.262866},
{0.147621, 0.716567, -0.681718},
{0.309017, 0.500000, -0.809017},
{0.425325, 0.688191, -0.587785},
{0.442863, 0.238856, -0.864188},
{0.587785, 0.425325, -0.688191},
{0.688191, 0.587785, -0.425325},
{-0.147621, 0.716567, -0.681718},
{-0.309017, 0.500000, -0.809017},
{0.000000, 0.525731, -0.850651},
{-0.525731, 0.000000, -0.850651},
{-0.442863, 0.238856, -0.864188},
{-0.295242, 0.000000, -0.955423},
{-0.162460, 0.262866, -0.951056},
{0.000000, 0.000000, -1.000000},
{0.295242, 0.000000, -0.955423},
{0.162460, 0.262866, -0.951056},
{-0.442863, -0.238856, -0.864188},
{-0.309017, -0.500000, -0.809017},
{-0.162460, -0.262866, -0.951056},
{0.000000, -0.850651, -0.525731},
{-0.147621, -0.716567, -0.681718},
{0.147621, -0.716567, -0.681718},
{0.000000, -0.525731, -0.850651},
{0.309017, -0.500000, -0.809017},
{0.442863, -0.238856, -0.864188},
{0.162460, -0.262866, -0.951056},
{0.238856, -0.864188, -0.442863},
{0.500000, -0.809017, -0.309017},
{0.425325, -0.688191, -0.587785},
{0.716567, -0.681718, -0.147621},
{0.688191, -0.587785, -0.425325},
{0.587785, -0.425325, -0.688191},
{0.000000, -0.955423, -0.295242},
{0.000000, -1.000000, 0.000000},
{0.262866, -0.951056, -0.162460},
{0.000000, -0.850651, 0.525731},
{0.000000, -0.955423, 0.295242},
{0.238856, -0.864188, 0.442863},
{0.262866, -0.951056, 0.162460},
{0.500000, -0.809017, 0.309017},
{0.716567, -0.681718, 0.147621},
{0.525731, -0.850651, 0.000000},
{-0.238856, -0.864188, -0.442863},
{-0.500000, -0.809017, -0.309017},
{-0.262866, -0.951056, -0.162460},
{-0.850651, -0.525731, 0.000000},
{-0.716567, -0.681718, -0.147621},
{-0.716567, -0.681718, 0.147621},
{-0.525731, -0.850651, 0.000000},
{-0.500000, -0.809017, 0.309017},
{-0.238856, -0.864188, 0.442863},
{-0.262866, -0.951056, 0.162460},
{-0.864188, -0.442863, 0.238856},
{-0.809017, -0.309017, 0.500000},
{-0.688191, -0.587785, 0.425325},
{-0.681718, -0.147621, 0.716567},
{-0.442863, -0.238856, 0.864188},
{-0.587785, -0.425325, 0.688191},
{-0.309017, -0.500000, 0.809017},
{-0.147621, -0.716567, 0.681718},
{-0.425325, -0.688191, 0.587785},
{-0.162460, -0.262866, 0.951056},
{0.442863, -0.238856, 0.864188},
{0.162460, -0.262866, 0.951056},
{0.309017, -0.500000, 0.809017},
{0.147621, -0.716567, 0.681718},
{0.000000, -0.525731, 0.850651},
{0.425325, -0.688191, 0.587785},
{0.587785, -0.425325, 0.688191},
{0.688191, -0.587785, 0.425325},
{-0.955423, 0.295242, 0.000000},
{-0.951056, 0.162460, 0.262866},
{-1.000000, 0.000000, 0.000000},
{-0.850651, 0.000000, 0.525731},
{-0.955423, -0.295242, 0.000000},
{-0.951056, -0.162460, 0.262866},
{-0.864188, 0.442863, -0.238856},
{-0.951056, 0.162460, -0.262866},
{-0.809017, 0.309017, -0.500000},
{-0.864188, -0.442863, -0.238856},
{-0.951056, -0.162460, -0.262866},
{-0.809017, -0.309017, -0.500000},
{-0.681718, 0.147621, -0.716567},
{-0.681718, -0.147621, -0.716567},
{-0.850651, 0.000000, -0.525731},
{-0.688191, 0.587785, -0.425325},
{-0.587785, 0.425325, -0.688191},
{-0.425325, 0.688191, -0.587785},
{-0.425325, -0.688191, -0.587785},
{-0.587785, -0.425325, -0.688191},
{-0.688191, -0.587785, -0.425325},
/contrib/other/sdlquake-1.0.9/asm_draw.h
0,0 → 1,151
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
//
// asm_draw.h
//
// Include file for asm drawing routines.
//
 
//
// !!! note that this file must match the corresponding C structures at all
// times !!!
//
 
// !!! if this is changed, it must be changed in r_local.h too !!!
#define NEAR_CLIP 0.01
 
// !!! if this is changed, it must be changed in r_local.h too !!!
#define CYCLE 128
 
// espan_t structure
// !!! if this is changed, it must be changed in r_shared.h too !!!
#define espan_t_u 0
#define espan_t_v 4
#define espan_t_count 8
#define espan_t_pnext 12
#define espan_t_size 16
 
// sspan_t structure
// !!! if this is changed, it must be changed in d_local.h too !!!
#define sspan_t_u 0
#define sspan_t_v 4
#define sspan_t_count 8
#define sspan_t_size 12
 
// spanpackage_t structure
// !!! if this is changed, it must be changed in d_polyset.c too !!!
#define spanpackage_t_pdest 0
#define spanpackage_t_pz 4
#define spanpackage_t_count 8
#define spanpackage_t_ptex 12
#define spanpackage_t_sfrac 16
#define spanpackage_t_tfrac 20
#define spanpackage_t_light 24
#define spanpackage_t_zi 28
#define spanpackage_t_size 32
 
// edge_t structure
// !!! if this is changed, it must be changed in r_shared.h too !!!
#define et_u 0
#define et_u_step 4
#define et_prev 8
#define et_next 12
#define et_surfs 16
#define et_nextremove 20
#define et_nearzi 24
#define et_owner 28
#define et_size 32
 
// surf_t structure
// !!! if this is changed, it must be changed in r_shared.h too !!!
#define SURF_T_SHIFT 6
#define st_next 0
#define st_prev 4
#define st_spans 8
#define st_key 12
#define st_last_u 16
#define st_spanstate 20
#define st_flags 24
#define st_data 28
#define st_entity 32
#define st_nearzi 36
#define st_insubmodel 40
#define st_d_ziorigin 44
#define st_d_zistepu 48
#define st_d_zistepv 52
#define st_pad 56
#define st_size 64
 
// clipplane_t structure
// !!! if this is changed, it must be changed in r_local.h too !!!
#define cp_normal 0
#define cp_dist 12
#define cp_next 16
#define cp_leftedge 20
#define cp_rightedge 21
#define cp_reserved 22
#define cp_size 24
 
// medge_t structure
// !!! if this is changed, it must be changed in model.h too !!!
#define me_v 0
#define me_cachededgeoffset 4
#define me_size 8
 
// mvertex_t structure
// !!! if this is changed, it must be changed in model.h too !!!
#define mv_position 0
#define mv_size 12
 
// refdef_t structure
// !!! if this is changed, it must be changed in render.h too !!!
#define rd_vrect 0
#define rd_aliasvrect 20
#define rd_vrectright 40
#define rd_vrectbottom 44
#define rd_aliasvrectright 48
#define rd_aliasvrectbottom 52
#define rd_vrectrightedge 56
#define rd_fvrectx 60
#define rd_fvrecty 64
#define rd_fvrectx_adj 68
#define rd_fvrecty_adj 72
#define rd_vrect_x_adj_shift20 76
#define rd_vrectright_adj_shift20 80
#define rd_fvrectright_adj 84
#define rd_fvrectbottom_adj 88
#define rd_fvrectright 92
#define rd_fvrectbottom 96
#define rd_horizontalFieldOfView 100
#define rd_xOrigin 104
#define rd_yOrigin 108
#define rd_vieworg 112
#define rd_viewangles 124
#define rd_ambientlight 136
#define rd_size 140
 
// mtriangle_t structure
// !!! if this is changed, it must be changed in model.h too !!!
#define mtri_facesfront 0
#define mtri_vertindex 4
#define mtri_size 16 // !!! if this changes, array indexing in !!!
// !!! d_polysa.s must be changed to match !!!
#define mtri_shift 4
 
/contrib/other/sdlquake-1.0.9/asm_i386.h
0,0 → 1,97
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
 
#ifndef __ASM_I386__
#define __ASM_I386__
 
#ifdef ELF
#define C(label) label
#else
#define C(label) _##label
#endif
 
//
// !!! note that this file must match the corresponding C structures at all
// times !!!
//
 
// plane_t structure
// !!! if this is changed, it must be changed in model.h too !!!
// !!! if the size of this is changed, the array lookup in SV_HullPointContents
// must be changed too !!!
#define pl_normal 0
#define pl_dist 12
#define pl_type 16
#define pl_signbits 17
#define pl_pad 18
#define pl_size 20
 
// hull_t structure
// !!! if this is changed, it must be changed in model.h too !!!
#define hu_clipnodes 0
#define hu_planes 4
#define hu_firstclipnode 8
#define hu_lastclipnode 12
#define hu_clip_mins 16
#define hu_clip_maxs 28
#define hu_size 40
 
// dnode_t structure
// !!! if this is changed, it must be changed in bspfile.h too !!!
#define nd_planenum 0
#define nd_children 4
#define nd_mins 8
#define nd_maxs 20
#define nd_firstface 32
#define nd_numfaces 36
#define nd_size 40
 
// sfxcache_t structure
// !!! if this is changed, it much be changed in sound.h too !!!
#define sfxc_length 0
#define sfxc_loopstart 4
#define sfxc_speed 8
#define sfxc_width 12
#define sfxc_stereo 16
#define sfxc_data 20
 
// channel_t structure
// !!! if this is changed, it much be changed in sound.h too !!!
#define ch_sfx 0
#define ch_leftvol 4
#define ch_rightvol 8
#define ch_end 12
#define ch_pos 16
#define ch_looping 20
#define ch_entnum 24
#define ch_entchannel 28
#define ch_origin 32
#define ch_dist_mult 44
#define ch_master_vol 48
#define ch_size 52
 
// portable_samplepair_t structure
// !!! if this is changed, it much be changed in sound.h too !!!
#define psp_left 0
#define psp_right 4
#define psp_size 8
 
#endif
 
/contrib/other/sdlquake-1.0.9/block16.h
0,0 → 1,142
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
LEnter16_16:
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movw 0x12345678(,%eax,2),%ax
LBPatch0:
addl %ebp,%edx
movw %ax,(%edi)
movw 0x12345678(,%ecx,2),%cx
LBPatch1:
movw %cx,2(%edi)
addl $0x4,%edi
 
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movw 0x12345678(,%eax,2),%ax
LBPatch2:
addl %ebp,%edx
movw %ax,(%edi)
movw 0x12345678(,%ecx,2),%cx
LBPatch3:
movw %cx,2(%edi)
addl $0x4,%edi
 
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movw 0x12345678(,%eax,2),%ax
LBPatch4:
addl %ebp,%edx
movw %ax,(%edi)
movw 0x12345678(,%ecx,2),%cx
LBPatch5:
movw %cx,2(%edi)
addl $0x4,%edi
 
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movw 0x12345678(,%eax,2),%ax
LBPatch6:
addl %ebp,%edx
movw %ax,(%edi)
movw 0x12345678(,%ecx,2),%cx
LBPatch7:
movw %cx,2(%edi)
addl $0x4,%edi
 
LEnter8_16:
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movw 0x12345678(,%eax,2),%ax
LBPatch8:
addl %ebp,%edx
movw %ax,(%edi)
movw 0x12345678(,%ecx,2),%cx
LBPatch9:
movw %cx,2(%edi)
addl $0x4,%edi
 
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movw 0x12345678(,%eax,2),%ax
LBPatch10:
addl %ebp,%edx
movw %ax,(%edi)
movw 0x12345678(,%ecx,2),%cx
LBPatch11:
movw %cx,2(%edi)
addl $0x4,%edi
 
LEnter4_16:
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movw 0x12345678(,%eax,2),%ax
LBPatch12:
addl %ebp,%edx
movw %ax,(%edi)
movw 0x12345678(,%ecx,2),%cx
LBPatch13:
movw %cx,2(%edi)
addl $0x4,%edi
 
LEnter2_16:
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movw 0x12345678(,%eax,2),%ax
LBPatch14:
addl %ebp,%edx
movw %ax,(%edi)
movw 0x12345678(,%ecx,2),%cx
LBPatch15:
movw %cx,2(%edi)
addl $0x4,%edi
/contrib/other/sdlquake-1.0.9/block8.h
0,0 → 1,143
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
LEnter16_8:
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movb 0x12345678(%eax),%al
LBPatch0:
addl %ebp,%edx
movb %al,(%edi)
movb 0x12345678(%ecx),%cl
LBPatch1:
movb %cl,1(%edi)
addl $0x2,%edi
 
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movb 0x12345678(%eax),%al
LBPatch2:
addl %ebp,%edx
movb %al,(%edi)
movb 0x12345678(%ecx),%cl
LBPatch3:
movb %cl,1(%edi)
addl $0x2,%edi
 
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movb 0x12345678(%eax),%al
LBPatch4:
addl %ebp,%edx
movb %al,(%edi)
movb 0x12345678(%ecx),%cl
LBPatch5:
movb %cl,1(%edi)
addl $0x2,%edi
 
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movb 0x12345678(%eax),%al
LBPatch6:
addl %ebp,%edx
movb %al,(%edi)
movb 0x12345678(%ecx),%cl
LBPatch7:
movb %cl,1(%edi)
addl $0x2,%edi
 
LEnter8_8:
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movb 0x12345678(%eax),%al
LBPatch8:
addl %ebp,%edx
movb %al,(%edi)
movb 0x12345678(%ecx),%cl
LBPatch9:
movb %cl,1(%edi)
addl $0x2,%edi
 
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movb 0x12345678(%eax),%al
LBPatch10:
addl %ebp,%edx
movb %al,(%edi)
movb 0x12345678(%ecx),%cl
LBPatch11:
movb %cl,1(%edi)
addl $0x2,%edi
 
LEnter4_8:
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movb 0x12345678(%eax),%al
LBPatch12:
addl %ebp,%edx
movb %al,(%edi)
movb 0x12345678(%ecx),%cl
LBPatch13:
movb %cl,1(%edi)
addl $0x2,%edi
 
LEnter2_8:
movb (%esi),%al
movb (%esi,%ebx,),%cl
movb %dh,%ah
addl %ebp,%edx
movb %dh,%ch
leal (%esi,%ebx,2),%esi
movb 0x12345678(%eax),%al
LBPatch14:
addl %ebp,%edx
movb %al,(%edi)
movb 0x12345678(%ecx),%cl
LBPatch15:
movb %cl,1(%edi)
addl $0x2,%edi
 
/contrib/other/sdlquake-1.0.9/bspfile.h
0,0 → 1,324
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
 
 
// upper design bounds
 
#define MAX_MAP_HULLS 4
 
#define MAX_MAP_MODELS 256
#define MAX_MAP_BRUSHES 4096
#define MAX_MAP_ENTITIES 1024
#define MAX_MAP_ENTSTRING 65536
 
#define MAX_MAP_PLANES 32767
#define MAX_MAP_NODES 32767 // because negative shorts are contents
#define MAX_MAP_CLIPNODES 32767 //
#define MAX_MAP_LEAFS 8192
#define MAX_MAP_VERTS 65535
#define MAX_MAP_FACES 65535
#define MAX_MAP_MARKSURFACES 65535
#define MAX_MAP_TEXINFO 4096
#define MAX_MAP_EDGES 256000
#define MAX_MAP_SURFEDGES 512000
#define MAX_MAP_TEXTURES 512
#define MAX_MAP_MIPTEX 0x200000
#define MAX_MAP_LIGHTING 0x100000
#define MAX_MAP_VISIBILITY 0x100000
 
#define MAX_MAP_PORTALS 65536
 
// key / value pair sizes
 
#define MAX_KEY 32
#define MAX_VALUE 1024
 
//=============================================================================
 
 
#define BSPVERSION 29
#define TOOLVERSION 2
 
typedef struct
{
int fileofs, filelen;
} lump_t;
 
#define LUMP_ENTITIES 0
#define LUMP_PLANES 1
#define LUMP_TEXTURES 2
#define LUMP_VERTEXES 3
#define LUMP_VISIBILITY 4
#define LUMP_NODES 5
#define LUMP_TEXINFO 6
#define LUMP_FACES 7
#define LUMP_LIGHTING 8
#define LUMP_CLIPNODES 9
#define LUMP_LEAFS 10
#define LUMP_MARKSURFACES 11
#define LUMP_EDGES 12
#define LUMP_SURFEDGES 13
#define LUMP_MODELS 14
 
#define HEADER_LUMPS 15
 
typedef struct
{
float mins[3], maxs[3];
float origin[3];
int headnode[MAX_MAP_HULLS];
int visleafs; // not including the solid leaf 0
int firstface, numfaces;
} dmodel_t;
 
typedef struct
{
int version;
lump_t lumps[HEADER_LUMPS];
} dheader_t;
 
typedef struct
{
int nummiptex;
int dataofs[4]; // [nummiptex]
} dmiptexlump_t;
 
#define MIPLEVELS 4
typedef struct miptex_s
{
char name[16];
unsigned width, height;
unsigned offsets[MIPLEVELS]; // four mip maps stored
} miptex_t;
 
 
typedef struct
{
float point[3];
} dvertex_t;
 
 
// 0-2 are axial planes
#define PLANE_X 0
#define PLANE_Y 1
#define PLANE_Z 2
 
// 3-5 are non-axial planes snapped to the nearest
#define PLANE_ANYX 3
#define PLANE_ANYY 4
#define PLANE_ANYZ 5
 
typedef struct
{
float normal[3];
float dist;
int type; // PLANE_X - PLANE_ANYZ ?remove? trivial to regenerate
} dplane_t;
 
 
 
#define CONTENTS_EMPTY -1
#define CONTENTS_SOLID -2
#define CONTENTS_WATER -3
#define CONTENTS_SLIME -4
#define CONTENTS_LAVA -5
#define CONTENTS_SKY -6
#define CONTENTS_ORIGIN -7 // removed at csg time
#define CONTENTS_CLIP -8 // changed to contents_solid
 
#define CONTENTS_CURRENT_0 -9
#define CONTENTS_CURRENT_90 -10
#define CONTENTS_CURRENT_180 -11
#define CONTENTS_CURRENT_270 -12
#define CONTENTS_CURRENT_UP -13
#define CONTENTS_CURRENT_DOWN -14
 
 
// !!! if this is changed, it must be changed in asm_i386.h too !!!
typedef struct
{
int planenum;
short children[2]; // negative numbers are -(leafs+1), not nodes
short mins[3]; // for sphere culling
short maxs[3];
unsigned short firstface;
unsigned short numfaces; // counting both sides
} dnode_t;
 
typedef struct
{
int planenum;
short children[2]; // negative numbers are contents
} dclipnode_t;
 
 
typedef struct texinfo_s
{
float vecs[2][4]; // [s/t][xyz offset]
int miptex;
int flags;
} texinfo_t;
#define TEX_SPECIAL 1 // sky or slime, no lightmap or 256 subdivision
 
// note that edge 0 is never used, because negative edge nums are used for
// counterclockwise use of the edge in a face
typedef struct
{
unsigned short v[2]; // vertex numbers
} dedge_t;
 
#define MAXLIGHTMAPS 4
typedef struct
{
short planenum;
short side;
 
int firstedge; // we must support > 64k edges
short numedges;
short texinfo;
 
// lighting info
byte styles[MAXLIGHTMAPS];
int lightofs; // start of [numstyles*surfsize] samples
} dface_t;
 
 
 
#define AMBIENT_WATER 0
#define AMBIENT_SKY 1
#define AMBIENT_SLIME 2
#define AMBIENT_LAVA 3
 
#define NUM_AMBIENTS 4 // automatic ambient sounds
 
// leaf 0 is the generic CONTENTS_SOLID leaf, used for all solid areas
// all other leafs need visibility info
typedef struct
{
int contents;
int visofs; // -1 = no visibility info
 
short mins[3]; // for frustum culling
short maxs[3];
 
unsigned short firstmarksurface;
unsigned short nummarksurfaces;
 
byte ambient_level[NUM_AMBIENTS];
} dleaf_t;
 
 
//============================================================================
 
#ifndef QUAKE_GAME
 
#define ANGLE_UP -1
#define ANGLE_DOWN -2
 
 
// the utilities get to be lazy and just use large static arrays
 
extern int nummodels;
extern dmodel_t dmodels[MAX_MAP_MODELS];
 
extern int visdatasize;
extern byte dvisdata[MAX_MAP_VISIBILITY];
 
extern int lightdatasize;
extern byte dlightdata[MAX_MAP_LIGHTING];
 
extern int texdatasize;
extern byte dtexdata[MAX_MAP_MIPTEX]; // (dmiptexlump_t)
 
extern int entdatasize;
extern char dentdata[MAX_MAP_ENTSTRING];
 
extern int numleafs;
extern dleaf_t dleafs[MAX_MAP_LEAFS];
 
extern int numplanes;
extern dplane_t dplanes[MAX_MAP_PLANES];
 
extern int numvertexes;
extern dvertex_t dvertexes[MAX_MAP_VERTS];
 
extern int numnodes;
extern dnode_t dnodes[MAX_MAP_NODES];
 
extern int numtexinfo;
extern texinfo_t texinfo[MAX_MAP_TEXINFO];
 
extern int numfaces;
extern dface_t dfaces[MAX_MAP_FACES];
 
extern int numclipnodes;
extern dclipnode_t dclipnodes[MAX_MAP_CLIPNODES];
 
extern int numedges;
extern dedge_t dedges[MAX_MAP_EDGES];
 
extern int nummarksurfaces;
extern unsigned short dmarksurfaces[MAX_MAP_MARKSURFACES];
 
extern int numsurfedges;
extern int dsurfedges[MAX_MAP_SURFEDGES];
 
 
void DecompressVis (byte *in, byte *decompressed);
int CompressVis (byte *vis, byte *dest);
 
void LoadBSPFile (char *filename);
void WriteBSPFile (char *filename);
void PrintBSPFileSizes (void);
 
//===============
 
 
typedef struct epair_s
{
struct epair_s *next;
char *key;
char *value;
} epair_t;
 
typedef struct
{
vec3_t origin;
int firstbrush;
int numbrushes;
epair_t *epairs;
} entity_t;
 
extern int num_entities;
extern entity_t entities[MAX_MAP_ENTITIES];
 
void ParseEntities (void);
void UnparseEntities (void);
 
void SetKeyValue (entity_t *ent, char *key, char *value);
char *ValueForKey (entity_t *ent, char *key);
// will return "" if not present
 
vec_t FloatForKey (entity_t *ent, char *key);
void GetVectorForKey (entity_t *ent, char *key, vec3_t vec);
 
epair_t *ParseEpair (void);
 
#endif
/contrib/other/sdlquake-1.0.9/cd_audio.c
0,0 → 1,886
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
// Quake is a trademark of Id Software, Inc., (c) 1996 Id Software, Inc. All
// rights reserved.
 
#include <dpmi.h>
#include "quakedef.h"
#include "dosisms.h"
 
extern cvar_t bgmvolume;
 
#define ADDRESS_MODE_HSG 0
#define ADDRESS_MODE_RED_BOOK 1
 
#define STATUS_ERROR_BIT 0x8000
#define STATUS_BUSY_BIT 0x0200
#define STATUS_DONE_BIT 0x0100
#define STATUS_ERROR_MASK 0x00ff
 
#define ERROR_WRITE_PROTECT 0
#define ERROR_UNKNOWN_UNIT 1
#define ERROR_DRIVE_NOT_READY 2
#define ERROR_UNKNOWN_COMMAND 3
#define ERROR_CRC_ERROR 4
#define ERROR_BAD_REQUEST_LEN 5
#define ERROR_SEEK_ERROR 6
#define ERROR_UNKNOWN_MEDIA 7
#define ERROR_SECTOR_NOT_FOUND 8
#define ERROR_OUT_OF_PAPER 9
#define ERROR_WRITE_FAULT 10
#define ERROR_READ_FAULT 11
#define ERROR_GENERAL_FAILURE 12
#define ERROR_RESERVED_13 13
#define ERROR_RESERVED_14 14
#define ERROR_BAD_DISK_CHANGE 15
 
#define COMMAND_READ 3
#define COMMAND_WRITE 12
#define COMMAND_PLAY_AUDIO 132
#define COMMAND_STOP_AUDIO 133
#define COMMAND_RESUME_AUDIO 136
 
#define READ_REQUEST_AUDIO_CHANNEL_INFO 4
#define READ_REQUEST_DEVICE_STATUS 6
#define READ_REQUEST_MEDIA_CHANGE 9
#define READ_REQUEST_AUDIO_DISK_INFO 10
#define READ_REQUEST_AUDIO_TRACK_INFO 11
#define READ_REQUEST_AUDIO_STATUS 15
 
#define WRITE_REQUEST_EJECT 0
#define WRITE_REQUEST_RESET 2
#define WRITE_REQUEST_AUDIO_CHANNEL_INFO 3
 
#define STATUS_DOOR_OPEN 0x00000001
#define STATUS_DOOR_UNLOCKED 0x00000002
#define STATUS_RAW_SUPPORT 0x00000004
#define STATUS_READ_WRITE 0x00000008
#define STATUS_AUDIO_SUPPORT 0x00000010
#define STATUS_INTERLEAVE_SUPPORT 0x00000020
#define STATUS_BIT_6_RESERVED 0x00000040
#define STATUS_PREFETCH_SUPPORT 0x00000080
#define STATUS_AUDIO_MANIPLUATION_SUPPORT 0x00000100
#define STATUS_RED_BOOK_ADDRESS_SUPPORT 0x00000200
 
#define MEDIA_NOT_CHANGED 1
#define MEDIA_STATUS_UNKNOWN 0
#define MEDIA_CHANGED -1
 
#define AUDIO_CONTROL_MASK 0xd0
#define AUDIO_CONTROL_DATA_TRACK 0x40
#define AUDIO_CONTROL_AUDIO_2_TRACK 0x00
#define AUDIO_CONTROL_AUDIO_2P_TRACK 0x10
#define AUDIO_CONTROL_AUDIO_4_TRACK 0x80
#define AUDIO_CONTROL_AUDIO_4P_TRACK 0x90
 
#define AUDIO_STATUS_PAUSED 0x0001
 
#pragma pack(1)
 
struct playAudioRequest
{
char addressingMode;
int startLocation;
int sectors;
};
 
struct readRequest
{
char mediaDescriptor;
short bufferOffset;
short bufferSegment;
short length;
short startSector;
int volumeID;
};
 
struct writeRequest
{
char mediaDescriptor;
short bufferOffset;
short bufferSegment;
short length;
short startSector;
int volumeID;
};
 
struct cd_request
{
char headerLength;
char unit;
char command;
short status;
char reserved[8];
union
{
struct playAudioRequest playAudio;
struct readRequest read;
struct writeRequest write;
} x;
};
 
 
struct audioChannelInfo_s
{
char code;
char channel0input;
char channel0volume;
char channel1input;
char channel1volume;
char channel2input;
char channel2volume;
char channel3input;
char channel3volume;
};
 
struct deviceStatus_s
{
char code;
int status;
};
 
struct mediaChange_s
{
char code;
char status;
};
 
struct audioDiskInfo_s
{
char code;
char lowTrack;
char highTrack;
int leadOutStart;
};
 
struct audioTrackInfo_s
{
char code;
char track;
int start;
char control;
};
 
struct audioStatus_s
{
char code;
short status;
int PRstartLocation;
int PRendLocation;
};
 
struct reset_s
{
char code;
};
 
union readInfo_u
{
struct audioChannelInfo_s audioChannelInfo;
struct deviceStatus_s deviceStatus;
struct mediaChange_s mediaChange;
struct audioDiskInfo_s audioDiskInfo;
struct audioTrackInfo_s audioTrackInfo;
struct audioStatus_s audioStatus;
struct reset_s reset;
};
 
#pragma pack()
 
#define MAXIMUM_TRACKS 100
 
typedef struct
{
int start;
int length;
qboolean isData;
} track_info;
 
typedef struct
{
qboolean valid;
int leadOutAddress;
track_info track[MAXIMUM_TRACKS];
byte lowTrack;
byte highTrack;
} cd_info;
 
static struct cd_request *cdRequest;
static union readInfo_u *readInfo;
static cd_info cd;
 
static qboolean playing = false;
static qboolean wasPlaying = false;
static qboolean mediaCheck = false;
static qboolean initialized = false;
static qboolean enabled = true;
static qboolean playLooping = false;
static short cdRequestSegment;
static short cdRequestOffset;
static short readInfoSegment;
static short readInfoOffset;
static byte remap[256];
static byte cdrom;
static byte playTrack;
static byte cdvolume;
 
 
static int RedBookToSector(int rb)
{
byte minute;
byte second;
byte frame;
 
minute = (rb >> 16) & 0xff;
second = (rb >> 8) & 0xff;
frame = rb & 0xff;
return minute * 60 * 75 + second * 75 + frame;
}
 
 
static void CDAudio_Reset(void)
{
cdRequest->headerLength = 13;
cdRequest->unit = 0;
cdRequest->command = COMMAND_WRITE;
cdRequest->status = 0;
 
cdRequest->x.write.mediaDescriptor = 0;
cdRequest->x.write.bufferOffset = readInfoOffset;
cdRequest->x.write.bufferSegment = readInfoSegment;
cdRequest->x.write.length = sizeof(struct reset_s);
cdRequest->x.write.startSector = 0;
cdRequest->x.write.volumeID = 0;
 
readInfo->reset.code = WRITE_REQUEST_RESET;
 
regs.x.ax = 0x1510;
regs.x.cx = cdrom;
regs.x.es = cdRequestSegment;
regs.x.bx = cdRequestOffset;
dos_int86 (0x2f);
}
 
 
static void CDAudio_Eject(void)
{
cdRequest->headerLength = 13;
cdRequest->unit = 0;
cdRequest->command = COMMAND_WRITE;
cdRequest->status = 0;
 
cdRequest->x.write.mediaDescriptor = 0;
cdRequest->x.write.bufferOffset = readInfoOffset;
cdRequest->x.write.bufferSegment = readInfoSegment;
cdRequest->x.write.length = sizeof(struct reset_s);
cdRequest->x.write.startSector = 0;
cdRequest->x.write.volumeID = 0;
 
readInfo->reset.code = WRITE_REQUEST_EJECT;
 
regs.x.ax = 0x1510;
regs.x.cx = cdrom;
regs.x.es = cdRequestSegment;
regs.x.bx = cdRequestOffset;
dos_int86 (0x2f);
}
 
 
static int CDAudio_GetAudioTrackInfo(byte track, int *start)
{
byte control;
 
cdRequest->headerLength = 13;
cdRequest->unit = 0;
cdRequest->command = COMMAND_READ;
cdRequest->status = 0;
 
cdRequest->x.read.mediaDescriptor = 0;
cdRequest->x.read.bufferOffset = readInfoOffset;
cdRequest->x.read.bufferSegment = readInfoSegment;
cdRequest->x.read.length = sizeof(struct audioTrackInfo_s);
cdRequest->x.read.startSector = 0;
cdRequest->x.read.volumeID = 0;
 
readInfo->audioTrackInfo.code = READ_REQUEST_AUDIO_TRACK_INFO;
readInfo->audioTrackInfo.track = track;
 
regs.x.ax = 0x1510;
regs.x.cx = cdrom;
regs.x.es = cdRequestSegment;
regs.x.bx = cdRequestOffset;
dos_int86 (0x2f);
 
if (cdRequest->status & STATUS_ERROR_BIT)
{
Con_DPrintf("CDAudio_GetAudioTrackInfo %04x\n", cdRequest->status & 0xffff);
return -1;
}
 
*start = readInfo->audioTrackInfo.start;
control = readInfo->audioTrackInfo.control & AUDIO_CONTROL_MASK;
return (control & AUDIO_CONTROL_DATA_TRACK);
}
 
 
static int CDAudio_GetAudioDiskInfo(void)
{
int n;
 
cdRequest->headerLength = 13;
cdRequest->unit = 0;
cdRequest->command = COMMAND_READ;
cdRequest->status = 0;
 
cdRequest->x.read.mediaDescriptor = 0;
cdRequest->x.read.bufferOffset = readInfoOffset;
cdRequest->x.read.bufferSegment = readInfoSegment;
cdRequest->x.read.length = sizeof(struct audioDiskInfo_s);
cdRequest->x.read.startSector = 0;
cdRequest->x.read.volumeID = 0;
 
readInfo->audioDiskInfo.code = READ_REQUEST_AUDIO_DISK_INFO;
 
regs.x.ax = 0x1510;
regs.x.cx = cdrom;
regs.x.es = cdRequestSegment;
regs.x.bx = cdRequestOffset;
dos_int86 (0x2f);
 
if (cdRequest->status & STATUS_ERROR_BIT)
{
Con_DPrintf("CDAudio_GetAudioDiskInfo %04x\n", cdRequest->status & 0xffff);
return -1;
}
 
cd.valid = true;
cd.lowTrack = readInfo->audioDiskInfo.lowTrack;
cd.highTrack = readInfo->audioDiskInfo.highTrack;
cd.leadOutAddress = readInfo->audioDiskInfo.leadOutStart;
 
for (n = cd.lowTrack; n <= cd.highTrack; n++)
{
cd.track[n].isData = CDAudio_GetAudioTrackInfo (n, &cd.track[n].start);
if (n > cd.lowTrack)
{
cd.track[n-1].length = RedBookToSector(cd.track[n].start) - RedBookToSector(cd.track[n-1].start);
if (n == cd.highTrack)
cd.track[n].length = RedBookToSector(cd.leadOutAddress) - RedBookToSector(cd.track[n].start);
}
}
 
return 0;
}
 
 
static int CDAudio_GetAudioStatus(void)
{
cdRequest->headerLength = 13;
cdRequest->unit = 0;
cdRequest->command = COMMAND_READ;
cdRequest->status = 0;
 
cdRequest->x.read.mediaDescriptor = 0;
cdRequest->x.read.bufferOffset = readInfoOffset;
cdRequest->x.read.bufferSegment = readInfoSegment;
cdRequest->x.read.length = sizeof(struct audioStatus_s);
cdRequest->x.read.startSector = 0;
cdRequest->x.read.volumeID = 0;
 
readInfo->audioDiskInfo.code = READ_REQUEST_AUDIO_STATUS;
 
regs.x.ax = 0x1510;
regs.x.cx = cdrom;
regs.x.es = cdRequestSegment;
regs.x.bx = cdRequestOffset;
dos_int86 (0x2f);
 
if (cdRequest->status & STATUS_ERROR_BIT)
return -1;
return 0;
}
 
 
static int CDAudio_MediaChange(void)
{
cdRequest->headerLength = 13;
cdRequest->unit = 0;
cdRequest->command = COMMAND_READ;
cdRequest->status = 0;
 
cdRequest->x.read.mediaDescriptor = 0;
cdRequest->x.read.bufferOffset = readInfoOffset;
cdRequest->x.read.bufferSegment = readInfoSegment;
cdRequest->x.read.length = sizeof(struct mediaChange_s);
cdRequest->x.read.startSector = 0;
cdRequest->x.read.volumeID = 0;
 
readInfo->mediaChange.code = READ_REQUEST_MEDIA_CHANGE;
 
regs.x.ax = 0x1510;
regs.x.cx = cdrom;
regs.x.es = cdRequestSegment;
regs.x.bx = cdRequestOffset;
dos_int86 (0x2f);
 
return readInfo->mediaChange.status;
}
 
 
// we set the volume to 0 first and then to the desired volume
// some cd-rom drivers seem to need it done this way
void CDAudio_SetVolume (byte volume)
{
if (!initialized || !enabled)
return;
 
cdRequest->headerLength = 13;
cdRequest->unit = 0;
cdRequest->command = COMMAND_WRITE;
cdRequest->status = 0;
 
cdRequest->x.read.mediaDescriptor = 0;
cdRequest->x.read.bufferOffset = readInfoOffset;
cdRequest->x.read.bufferSegment = readInfoSegment;
cdRequest->x.read.length = sizeof(struct audioChannelInfo_s);
cdRequest->x.read.startSector = 0;
cdRequest->x.read.volumeID = 0;
 
readInfo->audioChannelInfo.code = WRITE_REQUEST_AUDIO_CHANNEL_INFO;
readInfo->audioChannelInfo.channel0input = 0;
readInfo->audioChannelInfo.channel0volume = 0;
readInfo->audioChannelInfo.channel1input = 1;
readInfo->audioChannelInfo.channel1volume = 0;
readInfo->audioChannelInfo.channel2input = 2;
readInfo->audioChannelInfo.channel2volume = 0;
readInfo->audioChannelInfo.channel3input = 3;
readInfo->audioChannelInfo.channel3volume = 0;
 
regs.x.ax = 0x1510;
regs.x.cx = cdrom;
regs.x.es = cdRequestSegment;
regs.x.bx = cdRequestOffset;
dos_int86 (0x2f);
 
readInfo->audioChannelInfo.channel0volume = volume;
readInfo->audioChannelInfo.channel1volume = volume;
 
regs.x.ax = 0x1510;
regs.x.cx = cdrom;
regs.x.es = cdRequestSegment;
regs.x.bx = cdRequestOffset;
dos_int86 (0x2f);
 
cdvolume = volume;
}
 
 
void CDAudio_Play(byte track, qboolean looping)
{
int volume;
 
if (!initialized || !enabled)
return;
if (!cd.valid)
return;
 
track = remap[track];
 
if (playing)
{
if (playTrack == track)
return;
CDAudio_Stop();
}
 
playLooping = looping;
 
if (track < cd.lowTrack || track > cd.highTrack)
{
Con_DPrintf("CDAudio_Play: Bad track number %u.\n", track);
return;
}
 
playTrack = track;
 
if (cd.track[track].isData)
{
Con_DPrintf("CDAudio_Play: Can not play data.\n");
return;
}
 
volume = (int)(bgmvolume.value * 255.0);
if (volume < 0)
{
Cvar_SetValue ("bgmvolume", 0.0);
volume = 0;
}
else if (volume > 255)
{
Cvar_SetValue ("bgmvolume", 1.0);
volume = 255;
}
CDAudio_SetVolume (volume);
 
cdRequest->headerLength = 13;
cdRequest->unit = 0;
cdRequest->command = COMMAND_PLAY_AUDIO;
cdRequest->status = 0;
 
cdRequest->x.playAudio.addressingMode = ADDRESS_MODE_RED_BOOK;
cdRequest->x.playAudio.startLocation = cd.track[track].start;
cdRequest->x.playAudio.sectors = cd.track[track].length;
 
regs.x.ax = 0x1510;
regs.x.cx = cdrom;
regs.x.es = cdRequestSegment;
regs.x.bx = cdRequestOffset;
dos_int86 (0x2f);
 
if (cdRequest->status & STATUS_ERROR_BIT)
{
Con_DPrintf("CDAudio_Play: track %u failed\n", track);
cd.valid = false;
playing = false;
return;
}
 
playing = true;
}
 
 
void CDAudio_Stop(void)
{
if (!initialized || !enabled)
return;
cdRequest->headerLength = 13;
cdRequest->unit = 0;
cdRequest->command = COMMAND_STOP_AUDIO;
cdRequest->status = 0;
 
regs.x.ax = 0x1510;
regs.x.cx = cdrom;
regs.x.es = cdRequestSegment;
regs.x.bx = cdRequestOffset;
dos_int86 (0x2f);
 
wasPlaying = playing;
playing = false;
}
 
 
void CDAudio_Pause(void)
{
CDAudio_Stop();
}
 
 
void CDAudio_Resume(void)
{
if (!initialized || !enabled)
return;
if (!cd.valid)
return;
 
if (!wasPlaying)
return;
cdRequest->headerLength = 13;
cdRequest->unit = 0;
cdRequest->command = COMMAND_RESUME_AUDIO;
cdRequest->status = 0;
 
regs.x.ax = 0x1510;
regs.x.cx = cdrom;
regs.x.es = cdRequestSegment;
regs.x.bx = cdRequestOffset;
dos_int86 (0x2f);
 
playing = true;
}
 
 
static void CD_f (void)
{
char *command;
int ret;
int n;
int startAddress;
 
if (Cmd_Argc() < 2)
return;
 
command = Cmd_Argv (1);
 
if (Q_strcasecmp(command, "on") == 0)
{
enabled = true;
return;
}
 
if (Q_strcasecmp(command, "off") == 0)
{
if (playing)
CDAudio_Stop();
enabled = false;
return;
}
 
if (Q_strcasecmp(command, "reset") == 0)
{
enabled = true;
if (playing)
CDAudio_Stop();
for (n = 0; n < 256; n++)
remap[n] = n;
CDAudio_Reset();
CDAudio_GetAudioDiskInfo();
return;
}
 
if (Q_strcasecmp(command, "remap") == 0)
{
ret = Cmd_Argc() - 2;
if (ret <= 0)
{
for (n = 1; n < 256; n++)
if (remap[n] != n)
Con_Printf(" %u -> %u\n", n, remap[n]);
return;
}
for (n = 1; n <= ret; n++)
remap[n] = Q_atoi(Cmd_Argv (n+1));
return;
}
 
if (!cd.valid)
{
Con_Printf("No CD in player.\n");
return;
}
 
if (Q_strcasecmp(command, "play") == 0)
{
CDAudio_Play(Q_atoi(Cmd_Argv (2)), false);
return;
}
 
if (Q_strcasecmp(command, "loop") == 0)
{
CDAudio_Play(Q_atoi(Cmd_Argv (2)), true);
return;
}
 
if (Q_strcasecmp(command, "stop") == 0)
{
CDAudio_Stop();
return;
}
 
if (Q_strcasecmp(command, "pause") == 0)
{
CDAudio_Pause();
return;
}
 
if (Q_strcasecmp(command, "resume") == 0)
{
CDAudio_Resume();
return;
}
 
if (Q_strcasecmp(command, "eject") == 0)
{
if (playing)
CDAudio_Stop();
CDAudio_Eject();
cd.valid = false;
return;
}
 
if (Q_strcasecmp(command, "info") == 0)
{
Con_Printf("%u tracks\n", cd.highTrack - cd.lowTrack + 1);
for (n = cd.lowTrack; n <= cd.highTrack; n++)
{
ret = CDAudio_GetAudioTrackInfo (n, &startAddress);
Con_Printf("Track %2u: %s at %2u:%02u\n", n, ret ? "data " : "music", (startAddress >> 16) & 0xff, (startAddress >> 8) & 0xff);
}
if (playing)
Con_Printf("Currently %s track %u\n", playLooping ? "looping" : "playing", playTrack);
Con_Printf("Volume is %u\n", cdvolume);
CDAudio_MediaChange();
Con_Printf("Status %04x\n", cdRequest->status & 0xffff);
return;
}
}
 
 
void CDAudio_Update(void)
{
int ret;
int newVolume;
static double lastUpdate;
 
if (!initialized || !enabled)
return;
 
if ((realtime - lastUpdate) < 0.25)
return;
lastUpdate = realtime;
 
if (mediaCheck)
{
static double lastCheck;
 
if ((realtime - lastCheck) < 5.0)
return;
lastCheck = realtime;
 
ret = CDAudio_MediaChange();
if (ret == MEDIA_CHANGED)
{
Con_DPrintf("CDAudio: media changed\n");
playing = false;
wasPlaying = false;
cd.valid = false;
CDAudio_GetAudioDiskInfo();
return;
}
}
 
newVolume = (int)(bgmvolume.value * 255.0);
if (newVolume != cdvolume)
{
if (newVolume < 0)
{
Cvar_SetValue ("bgmvolume", 0.0);
newVolume = 0;
}
else if (newVolume > 255)
{
Cvar_SetValue ("bgmvolume", 1.0);
newVolume = 255;
}
CDAudio_SetVolume (newVolume);
}
 
if (playing)
{
CDAudio_GetAudioStatus();
if ((cdRequest->status & STATUS_BUSY_BIT) == 0)
{
playing = false;
if (playLooping)
CDAudio_Play(playTrack, true);
}
}
}
 
 
int CDAudio_Init(void)
{
char *memory;
int n;
 
if (cls.state == ca_dedicated)
return -1;
 
if (COM_CheckParm("-nocdaudio"))
return -1;
 
if (COM_CheckParm("-cdmediacheck"))
mediaCheck = true;
 
regs.x.ax = 0x1500;
regs.x.bx = 0;
dos_int86 (0x2f);
if (regs.x.bx == 0)
{
Con_NotifyBox (
"MSCDEX not loaded, music is\n"
"disabled. Use \"-nocdaudio\" if you\n"
"wish to avoid this message in the\n"
"future. See README.TXT for help.\n"
);
return -1;
}
if (regs.x.bx > 1)
Con_DPrintf("CDAudio_Init: First CD-ROM drive will be used\n");
cdrom = regs.x.cx;
 
regs.x.ax = 0x150c;
regs.x.bx = 0;
dos_int86 (0x2f);
if (regs.x.bx == 0)
{
Con_NotifyBox (
"MSCDEX version 2.00 or later\n"
"required for music. See README.TXT\n"
"for help.\n"
);
Con_DPrintf("CDAudio_Init: MSCDEX version 2.00 or later required.\n");
return -1;
}
 
memory = dos_getmemory(sizeof(struct cd_request
) + sizeof(union readInfo_u));
if (memory == NULL)
{
Con_DPrintf("CDAudio_Init: Unable to allocate low memory.\n");
return -1;
}
 
cdRequest = (struct cd_request *)memory;
cdRequestSegment = ptr2real(cdRequest) >> 4;
cdRequestOffset = ptr2real(cdRequest) & 0xf;
 
readInfo = (union readInfo_u *)(memory + sizeof(struct cd_request));
readInfoSegment = ptr2real(readInfo) >> 4;
readInfoOffset = ptr2real(readInfo) & 0xf;
 
for (n = 0; n < 256; n++)
remap[n] = n;
initialized = true;
 
CDAudio_SetVolume (255);
if (CDAudio_GetAudioDiskInfo())
{
Con_Printf("CDAudio_Init: No CD in player.\n");
enabled = false;
}
 
Cmd_AddCommand ("cd", CD_f);
 
Con_Printf("CD Audio Initialized\n");
 
return 0;
}
 
 
void CDAudio_Shutdown(void)
{
if (!initialized)
return;
CDAudio_Stop();
}
/contrib/other/sdlquake-1.0.9/cd_linux.c
0,0 → 1,416
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
// Quake is a trademark of Id Software, Inc., (c) 1996 Id Software, Inc. All
// rights reserved.
 
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/file.h>
#include <sys/types.h>
#include <fcntl.h>
#include <string.h>
#include <time.h>
#include <errno.h>
 
#include <linux/cdrom.h>
 
#include "quakedef.h"
 
static qboolean cdValid = false;
static qboolean playing = false;
static qboolean wasPlaying = false;
static qboolean initialized = false;
static qboolean enabled = true;
static qboolean playLooping = false;
static float cdvolume;
static byte remap[100];
static byte playTrack;
static byte maxTrack;
 
static int cdfile = -1;
static char cd_dev[64] = "/dev/cdrom";
 
static void CDAudio_Eject(void)
{
if (cdfile == -1 || !enabled)
return; // no cd init'd
 
if ( ioctl(cdfile, CDROMEJECT) == -1 )
Con_DPrintf("ioctl cdromeject failed\n");
}
 
 
static void CDAudio_CloseDoor(void)
{
if (cdfile == -1 || !enabled)
return; // no cd init'd
 
if ( ioctl(cdfile, CDROMCLOSETRAY) == -1 )
Con_DPrintf("ioctl cdromclosetray failed\n");
}
 
static int CDAudio_GetAudioDiskInfo(void)
{
struct cdrom_tochdr tochdr;
 
cdValid = false;
 
if ( ioctl(cdfile, CDROMREADTOCHDR, &tochdr) == -1 )
{
Con_DPrintf("ioctl cdromreadtochdr failed\n");
return -1;
}
 
if (tochdr.cdth_trk0 < 1)
{
Con_DPrintf("CDAudio: no music tracks\n");
return -1;
}
 
cdValid = true;
maxTrack = tochdr.cdth_trk1;
 
return 0;
}
 
 
void CDAudio_Play(byte track, qboolean looping)
{
struct cdrom_tocentry entry;
struct cdrom_ti ti;
 
if (cdfile == -1 || !enabled)
return;
if (!cdValid)
{
CDAudio_GetAudioDiskInfo();
if (!cdValid)
return;
}
 
track = remap[track];
 
if (track < 1 || track > maxTrack)
{
Con_DPrintf("CDAudio: Bad track number %u.\n", track);
return;
}
 
// don't try to play a non-audio track
entry.cdte_track = track;
entry.cdte_format = CDROM_MSF;
if ( ioctl(cdfile, CDROMREADTOCENTRY, &entry) == -1 )
{
Con_DPrintf("ioctl cdromreadtocentry failed\n");
return;
}
if (entry.cdte_ctrl == CDROM_DATA_TRACK)
{
Con_Printf("CDAudio: track %i is not audio\n", track);
return;
}
 
if (playing)
{
if (playTrack == track)
return;
CDAudio_Stop();
}
 
ti.cdti_trk0 = track;
ti.cdti_trk1 = track;
ti.cdti_ind0 = 1;
ti.cdti_ind1 = 99;
 
if ( ioctl(cdfile, CDROMPLAYTRKIND, &ti) == -1 )
{
Con_DPrintf("ioctl cdromplaytrkind failed\n");
return;
}
 
if ( ioctl(cdfile, CDROMRESUME) == -1 )
Con_DPrintf("ioctl cdromresume failed\n");
 
playLooping = looping;
playTrack = track;
playing = true;
 
if (cdvolume == 0.0)
CDAudio_Pause ();
}
 
 
void CDAudio_Stop(void)
{
if (cdfile == -1 || !enabled)
return;
if (!playing)
return;
 
if ( ioctl(cdfile, CDROMSTOP) == -1 )
Con_DPrintf("ioctl cdromstop failed (%d)\n", errno);
 
wasPlaying = false;
playing = false;
}
 
void CDAudio_Pause(void)
{
if (cdfile == -1 || !enabled)
return;
 
if (!playing)
return;
 
if ( ioctl(cdfile, CDROMPAUSE) == -1 )
Con_DPrintf("ioctl cdrompause failed\n");
 
wasPlaying = playing;
playing = false;
}
 
 
void CDAudio_Resume(void)
{
if (cdfile == -1 || !enabled)
return;
if (!cdValid)
return;
 
if (!wasPlaying)
return;
if ( ioctl(cdfile, CDROMRESUME) == -1 )
Con_DPrintf("ioctl cdromresume failed\n");
playing = true;
}
 
static void CD_f (void)
{
char *command;
int ret;
int n;
 
if (Cmd_Argc() < 2)
return;
 
command = Cmd_Argv (1);
 
if (Q_strcasecmp(command, "on") == 0)
{
enabled = true;
return;
}
 
if (Q_strcasecmp(command, "off") == 0)
{
if (playing)
CDAudio_Stop();
enabled = false;
return;
}
 
if (Q_strcasecmp(command, "reset") == 0)
{
enabled = true;
if (playing)
CDAudio_Stop();
for (n = 0; n < 100; n++)
remap[n] = n;
CDAudio_GetAudioDiskInfo();
return;
}
 
if (Q_strcasecmp(command, "remap") == 0)
{
ret = Cmd_Argc() - 2;
if (ret <= 0)
{
for (n = 1; n < 100; n++)
if (remap[n] != n)
Con_Printf(" %u -> %u\n", n, remap[n]);
return;
}
for (n = 1; n <= ret; n++)
remap[n] = Q_atoi(Cmd_Argv (n+1));
return;
}
 
if (Q_strcasecmp(command, "close") == 0)
{
CDAudio_CloseDoor();
return;
}
 
if (!cdValid)
{
CDAudio_GetAudioDiskInfo();
if (!cdValid)
{
Con_Printf("No CD in player.\n");
return;
}
}
 
if (Q_strcasecmp(command, "play") == 0)
{
CDAudio_Play((byte)Q_atoi(Cmd_Argv (2)), false);
return;
}
 
if (Q_strcasecmp(command, "loop") == 0)
{
CDAudio_Play((byte)Q_atoi(Cmd_Argv (2)), true);
return;
}
 
if (Q_strcasecmp(command, "stop") == 0)
{
CDAudio_Stop();
return;
}
 
if (Q_strcasecmp(command, "pause") == 0)
{
CDAudio_Pause();
return;
}
 
if (Q_strcasecmp(command, "resume") == 0)
{
CDAudio_Resume();
return;
}
 
if (Q_strcasecmp(command, "eject") == 0)
{
if (playing)
CDAudio_Stop();
CDAudio_Eject();
cdValid = false;
return;
}
 
if (Q_strcasecmp(command, "info") == 0)
{
Con_Printf("%u tracks\n", maxTrack);
if (playing)
Con_Printf("Currently %s track %u\n", playLooping ? "looping" : "playing", playTrack);
else if (wasPlaying)
Con_Printf("Paused %s track %u\n", playLooping ? "looping" : "playing", playTrack);
Con_Printf("Volume is %f\n", cdvolume);
return;
}
}
 
void CDAudio_Update(void)
{
struct cdrom_subchnl subchnl;
static time_t lastchk;
 
if (!enabled)
return;
 
if (bgmvolume.value != cdvolume)
{
if (cdvolume)
{
Cvar_SetValue ("bgmvolume", 0.0);
cdvolume = bgmvolume.value;
CDAudio_Pause ();
}
else
{
Cvar_SetValue ("bgmvolume", 1.0);
cdvolume = bgmvolume.value;
CDAudio_Resume ();
}
}
 
if (playing && lastchk < time(NULL)) {
lastchk = time(NULL) + 2; //two seconds between chks
subchnl.cdsc_format = CDROM_MSF;
if (ioctl(cdfile, CDROMSUBCHNL, &subchnl) == -1 ) {
Con_DPrintf("ioctl cdromsubchnl failed\n");
playing = false;
return;
}
if (subchnl.cdsc_audiostatus != CDROM_AUDIO_PLAY &&
subchnl.cdsc_audiostatus != CDROM_AUDIO_PAUSED) {
playing = false;
if (playLooping)
CDAudio_Play(playTrack, true);
}
}
}
 
int CDAudio_Init(void)
{
int i;
 
if (cls.state == ca_dedicated)
return -1;
 
if (COM_CheckParm("-nocdaudio"))
return -1;
 
if ((i = COM_CheckParm("-cddev")) != 0 && i < com_argc - 1) {
strncpy(cd_dev, com_argv[i + 1], sizeof(cd_dev));
cd_dev[sizeof(cd_dev) - 1] = 0;
}
 
if ((cdfile = open(cd_dev, O_RDONLY)) == -1) {
Con_Printf("CDAudio_Init: open of \"%s\" failed (%i)\n", cd_dev, errno);
cdfile = -1;
return -1;
}
 
for (i = 0; i < 100; i++)
remap[i] = i;
initialized = true;
enabled = true;
 
if (CDAudio_GetAudioDiskInfo())
{
Con_Printf("CDAudio_Init: No CD in player.\n");
cdValid = false;
}
 
Cmd_AddCommand ("cd", CD_f);
 
Con_Printf("CD Audio Initialized\n");
 
return 0;
}
 
 
void CDAudio_Shutdown(void)
{
if (!initialized)
return;
CDAudio_Stop();
close(cdfile);
cdfile = -1;
}
/contrib/other/sdlquake-1.0.9/cd_null.c
0,0 → 1,55
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
#include "quakedef.h"
 
void CDAudio_Play(byte track, qboolean looping)
{
}
 
 
void CDAudio_Stop(void)
{
}
 
 
void CDAudio_Pause(void)
{
}
 
 
void CDAudio_Resume(void)
{
}
 
 
void CDAudio_Update(void)
{
}
 
 
int CDAudio_Init(void)
{
return 0;
}
 
 
void CDAudio_Shutdown(void)
{
}
/contrib/other/sdlquake-1.0.9/cd_sdl.c
0,0 → 1,223
/*
Some of this may not work. I'm not overly familiar with SDL, I just sort
of podged this together from the SDL headers, and the other cd-rom code.
 
Mark Baker <homer1@together.net>
*/
 
#include <SDL.h>
 
#include "quakedef.h"
 
static qboolean cdValid = false;
static qboolean initialized = false;
static qboolean enabled = true;
static qboolean playLooping = false;
static SDL_CD *cd_id;
static float cdvolume = 1.0;
 
static void CD_f();
 
static void CDAudio_Eject()
{
if(!cd_id || !enabled) return;
 
if(SDL_CDEject(cd_id))
Con_DPrintf("Unable to eject CD-ROM tray.\n");
}
 
void CDAudio_Play(byte track, qboolean looping)
{
CDstatus cd_stat;
if(!cd_id || !enabled) return;
if(!cdValid)
{
if(!CD_INDRIVE(cd_stat=SDL_CDStatus(cd_id)) ||(!cd_id->numtracks)) return;
cdValid = true;
}
 
if((track < 1) || (track >= cd_id->numtracks))
{
Con_DPrintf("CDAudio: Bad track number: %d\n",track);
return;
}
track--; /* Convert track from person to SDL value */
if(cd_stat == CD_PLAYING)
{
if(cd_id->cur_track == track) return;
CDAudio_Stop();
}
 
if(SDL_CDPlay(cd_id,cd_id->track[track].offset,
cd_id->track[track].length))
{
Con_DPrintf("CDAudio_Play: Unable to play track: %d\n",track+1);
return;
}
playLooping = looping;
}
 
 
void CDAudio_Stop()
{
int cdstate;
if(!cd_id || !enabled) return;
cdstate = SDL_CDStatus(cd_id);
if((cdstate != CD_PLAYING) && (cdstate != CD_PAUSED)) return;
 
if(SDL_CDStop(cd_id))
Con_DPrintf("CDAudio_Stop: Failed to stop track.\n");
}
 
void CDAudio_Pause()
{
if(!cd_id || !enabled) return;
if(SDL_CDStatus(cd_id) != CD_PLAYING) return;
 
if(SDL_CDPause(cd_id))
Con_DPrintf("CDAudio_Pause: Failed to pause track.\n");
}
 
 
void CDAudio_Resume()
{
if(!cd_id || !enabled) return;
if(SDL_CDStatus(cd_id) != CD_PAUSED) return;
 
if(SDL_CDResume(cd_id))
Con_DPrintf("CDAudio_Resume: Failed tp resume track.\n");
}
 
void CDAudio_Update()
{
if(!cd_id || !enabled) return;
if(bgmvolume.value != cdvolume)
{
if(cdvolume)
{
Cvar_SetValue("bgmvolume",0.0);
CDAudio_Pause();
}
else
{
Cvar_SetValue("bgmvolume",1.0);
CDAudio_Resume();
}
cdvolume = bgmvolume.value;
return;
}
if(playLooping && (SDL_CDStatus(cd_id) != CD_PLAYING)
&& (SDL_CDStatus(cd_id) != CD_PAUSED))
CDAudio_Play(cd_id->cur_track+1,true);
}
 
int CDAudio_Init()
{
if((cls.state == ca_dedicated) || COM_CheckParm("-nocdaudio"))
return -1;
cd_id = SDL_CDOpen(0);
if(!cd_id)
{
Con_Printf("CDAudio_Init: Unable to open default CD-ROM drive: %s\n",
SDL_GetError());
return -1;
}
initialized = true;
enabled = true;
cdValid = true;
if(!CD_INDRIVE(SDL_CDStatus(cd_id)))
{
Con_Printf("CDAudio_Init: No CD in drive.\n");
cdValid = false;
}
if(!cd_id->numtracks)
{
Con_Printf("CDAudio_Init: CD contains no audio tracks.\n");
cdValid = false;
}
Cmd_AddCommand("cd",CD_f);
Con_Printf("CD Audio Initialized.\n");
return 0;
}
 
 
void CDAudio_Shutdown()
{
if(!cd_id) return;
CDAudio_Stop();
SDL_CDClose(cd_id);
cd_id = NULL;
}
 
static void CD_f()
{
char *command;
int cdstate;
if(Cmd_Argc() < 2) return;
 
command = Cmd_Argv(1);
if(!Q_strcasecmp(command,"on"))
{
enabled = true;
}
if(!Q_strcasecmp(command,"off"))
{
if(!cd_id) return;
cdstate = SDL_CDStatus(cd_id);
if((cdstate == CD_PLAYING) || (cdstate == CD_PAUSED))
CDAudio_Stop();
enabled = false;
return;
}
if(!Q_strcasecmp(command,"play"))
{
CDAudio_Play(Q_atoi(Cmd_Argv(2)),false);
return;
}
if(!Q_strcasecmp(command,"loop"))
{
CDAudio_Play(Q_atoi(Cmd_Argv(2)),true);
return;
}
if(!Q_strcasecmp(command,"stop"))
{
CDAudio_Stop();
return;
}
if(!Q_strcasecmp(command,"pause"))
{
CDAudio_Pause();
return;
}
if(!Q_strcasecmp(command,"resume"))
{
CDAudio_Resume();
return;
}
if(!Q_strcasecmp(command,"eject"))
{
CDAudio_Eject();
return;
}
if(!Q_strcasecmp(command,"info"))
{
if(!cd_id) return;
cdstate = SDL_CDStatus(cd_id);
Con_Printf("%d tracks\n",cd_id->numtracks);
if(cdstate == CD_PLAYING)
Con_Printf("Currently %s track %d\n",
playLooping ? "looping" : "playing",
cd_id->cur_track+1);
else
if(cdstate == CD_PAUSED)
Con_Printf("Paused %s track %d\n",
playLooping ? "looping" : "playing",
cd_id->cur_track+1);
return;
}
}
 
/contrib/other/sdlquake-1.0.9/cd_win.c
0,0 → 1,477
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
// Quake is a trademark of Id Software, Inc., (c) 1996 Id Software, Inc. All
// rights reserved.
 
#include <windows.h>
#include "quakedef.h"
 
extern HWND mainwindow;
extern cvar_t bgmvolume;
 
static qboolean cdValid = false;
static qboolean playing = false;
static qboolean wasPlaying = false;
static qboolean initialized = false;
static qboolean enabled = false;
static qboolean playLooping = false;
static float cdvolume;
static byte remap[100];
static byte cdrom;
static byte playTrack;
static byte maxTrack;
 
UINT wDeviceID;
 
 
static void CDAudio_Eject(void)
{
DWORD dwReturn;
 
if (dwReturn = mciSendCommand(wDeviceID, MCI_SET, MCI_SET_DOOR_OPEN, (DWORD)NULL))
Con_DPrintf("MCI_SET_DOOR_OPEN failed (%i)\n", dwReturn);
}
 
 
static void CDAudio_CloseDoor(void)
{
DWORD dwReturn;
 
if (dwReturn = mciSendCommand(wDeviceID, MCI_SET, MCI_SET_DOOR_CLOSED, (DWORD)NULL))
Con_DPrintf("MCI_SET_DOOR_CLOSED failed (%i)\n", dwReturn);
}
 
 
static int CDAudio_GetAudioDiskInfo(void)
{
DWORD dwReturn;
MCI_STATUS_PARMS mciStatusParms;
 
 
cdValid = false;
 
mciStatusParms.dwItem = MCI_STATUS_READY;
dwReturn = mciSendCommand(wDeviceID, MCI_STATUS, MCI_STATUS_ITEM | MCI_WAIT, (DWORD) (LPVOID) &mciStatusParms);
if (dwReturn)
{
Con_DPrintf("CDAudio: drive ready test - get status failed\n");
return -1;
}
if (!mciStatusParms.dwReturn)
{
Con_DPrintf("CDAudio: drive not ready\n");
return -1;
}
 
mciStatusParms.dwItem = MCI_STATUS_NUMBER_OF_TRACKS;
dwReturn = mciSendCommand(wDeviceID, MCI_STATUS, MCI_STATUS_ITEM | MCI_WAIT, (DWORD) (LPVOID) &mciStatusParms);
if (dwReturn)
{
Con_DPrintf("CDAudio: get tracks - status failed\n");
return -1;
}
if (mciStatusParms.dwReturn < 1)
{
Con_DPrintf("CDAudio: no music tracks\n");
return -1;
}
 
cdValid = true;
maxTrack = mciStatusParms.dwReturn;
 
return 0;
}
 
 
void CDAudio_Play(byte track, qboolean looping)
{
DWORD dwReturn;
MCI_PLAY_PARMS mciPlayParms;
MCI_STATUS_PARMS mciStatusParms;
 
if (!enabled)
return;
if (!cdValid)
{
CDAudio_GetAudioDiskInfo();
if (!cdValid)
return;
}
 
track = remap[track];
 
if (track < 1 || track > maxTrack)
{
Con_DPrintf("CDAudio: Bad track number %u.\n", track);
return;
}
 
// don't try to play a non-audio track
mciStatusParms.dwItem = MCI_CDA_STATUS_TYPE_TRACK;
mciStatusParms.dwTrack = track;
dwReturn = mciSendCommand(wDeviceID, MCI_STATUS, MCI_STATUS_ITEM | MCI_TRACK | MCI_WAIT, (DWORD) (LPVOID) &mciStatusParms);
if (dwReturn)
{
Con_DPrintf("MCI_STATUS failed (%i)\n", dwReturn);
return;
}
if (mciStatusParms.dwReturn != MCI_CDA_TRACK_AUDIO)
{
Con_Printf("CDAudio: track %i is not audio\n", track);
return;
}
 
// get the length of the track to be played
mciStatusParms.dwItem = MCI_STATUS_LENGTH;
mciStatusParms.dwTrack = track;
dwReturn = mciSendCommand(wDeviceID, MCI_STATUS, MCI_STATUS_ITEM | MCI_TRACK | MCI_WAIT, (DWORD) (LPVOID) &mciStatusParms);
if (dwReturn)
{
Con_DPrintf("MCI_STATUS failed (%i)\n", dwReturn);
return;
}
 
if (playing)
{
if (playTrack == track)
return;
CDAudio_Stop();
}
 
mciPlayParms.dwFrom = MCI_MAKE_TMSF(track, 0, 0, 0);
mciPlayParms.dwTo = (mciStatusParms.dwReturn << 8) | track;
mciPlayParms.dwCallback = (DWORD)mainwindow;
dwReturn = mciSendCommand(wDeviceID, MCI_PLAY, MCI_NOTIFY | MCI_FROM | MCI_TO, (DWORD)(LPVOID) &mciPlayParms);
if (dwReturn)
{
Con_DPrintf("CDAudio: MCI_PLAY failed (%i)\n", dwReturn);
return;
}
 
playLooping = looping;
playTrack = track;
playing = true;
 
if (cdvolume == 0.0)
CDAudio_Pause ();
}
 
 
void CDAudio_Stop(void)
{
DWORD dwReturn;
 
if (!enabled)
return;
if (!playing)
return;
 
if (dwReturn = mciSendCommand(wDeviceID, MCI_STOP, 0, (DWORD)NULL))
Con_DPrintf("MCI_STOP failed (%i)", dwReturn);
 
wasPlaying = false;
playing = false;
}
 
 
void CDAudio_Pause(void)
{
DWORD dwReturn;
MCI_GENERIC_PARMS mciGenericParms;
 
if (!enabled)
return;
 
if (!playing)
return;
 
mciGenericParms.dwCallback = (DWORD)mainwindow;
if (dwReturn = mciSendCommand(wDeviceID, MCI_PAUSE, 0, (DWORD)(LPVOID) &mciGenericParms))
Con_DPrintf("MCI_PAUSE failed (%i)", dwReturn);
 
wasPlaying = playing;
playing = false;
}
 
 
void CDAudio_Resume(void)
{
DWORD dwReturn;
MCI_PLAY_PARMS mciPlayParms;
 
if (!enabled)
return;
if (!cdValid)
return;
 
if (!wasPlaying)
return;
mciPlayParms.dwFrom = MCI_MAKE_TMSF(playTrack, 0, 0, 0);
mciPlayParms.dwTo = MCI_MAKE_TMSF(playTrack + 1, 0, 0, 0);
mciPlayParms.dwCallback = (DWORD)mainwindow;
dwReturn = mciSendCommand(wDeviceID, MCI_PLAY, MCI_TO | MCI_NOTIFY, (DWORD)(LPVOID) &mciPlayParms);
if (dwReturn)
{
Con_DPrintf("CDAudio: MCI_PLAY failed (%i)\n", dwReturn);
return;
}
playing = true;
}
 
 
static void CD_f (void)
{
char *command;
int ret;
int n;
int startAddress;
 
if (Cmd_Argc() < 2)
return;
 
command = Cmd_Argv (1);
 
if (Q_strcasecmp(command, "on") == 0)
{
enabled = true;
return;
}
 
if (Q_strcasecmp(command, "off") == 0)
{
if (playing)
CDAudio_Stop();
enabled = false;
return;
}
 
if (Q_strcasecmp(command, "reset") == 0)
{
enabled = true;
if (playing)
CDAudio_Stop();
for (n = 0; n < 100; n++)
remap[n] = n;
CDAudio_GetAudioDiskInfo();
return;
}
 
if (Q_strcasecmp(command, "remap") == 0)
{
ret = Cmd_Argc() - 2;
if (ret <= 0)
{
for (n = 1; n < 100; n++)
if (remap[n] != n)
Con_Printf(" %u -> %u\n", n, remap[n]);
return;
}
for (n = 1; n <= ret; n++)
remap[n] = Q_atoi(Cmd_Argv (n+1));
return;
}
 
if (Q_strcasecmp(command, "close") == 0)
{
CDAudio_CloseDoor();
return;
}
 
if (!cdValid)
{
CDAudio_GetAudioDiskInfo();
if (!cdValid)
{
Con_Printf("No CD in player.\n");
return;
}
}
 
if (Q_strcasecmp(command, "play") == 0)
{
CDAudio_Play((byte)Q_atoi(Cmd_Argv (2)), false);
return;
}
 
if (Q_strcasecmp(command, "loop") == 0)
{
CDAudio_Play((byte)Q_atoi(Cmd_Argv (2)), true);
return;
}
 
if (Q_strcasecmp(command, "stop") == 0)
{
CDAudio_Stop();
return;
}
 
if (Q_strcasecmp(command, "pause") == 0)
{
CDAudio_Pause();
return;
}
 
if (Q_strcasecmp(command, "resume") == 0)
{
CDAudio_Resume();
return;
}
 
if (Q_strcasecmp(command, "eject") == 0)
{
if (playing)
CDAudio_Stop();
CDAudio_Eject();
cdValid = false;
return;
}
 
if (Q_strcasecmp(command, "info") == 0)
{
Con_Printf("%u tracks\n", maxTrack);
if (playing)
Con_Printf("Currently %s track %u\n", playLooping ? "looping" : "playing", playTrack);
else if (wasPlaying)
Con_Printf("Paused %s track %u\n", playLooping ? "looping" : "playing", playTrack);
Con_Printf("Volume is %f\n", cdvolume);
return;
}
}
 
 
LONG CDAudio_MessageHandler(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
if (lParam != wDeviceID)
return 1;
 
switch (wParam)
{
case MCI_NOTIFY_SUCCESSFUL:
if (playing)
{
playing = false;
if (playLooping)
CDAudio_Play(playTrack, true);
}
break;
 
case MCI_NOTIFY_ABORTED:
case MCI_NOTIFY_SUPERSEDED:
break;
 
case MCI_NOTIFY_FAILURE:
Con_DPrintf("MCI_NOTIFY_FAILURE\n");
CDAudio_Stop ();
cdValid = false;
break;
 
default:
Con_DPrintf("Unexpected MM_MCINOTIFY type (%i)\n", wParam);
return 1;
}
 
return 0;
}
 
 
void CDAudio_Update(void)
{
if (!enabled)
return;
 
if (bgmvolume.value != cdvolume)
{
if (cdvolume)
{
Cvar_SetValue ("bgmvolume", 0.0);
cdvolume = bgmvolume.value;
CDAudio_Pause ();
}
else
{
Cvar_SetValue ("bgmvolume", 1.0);
cdvolume = bgmvolume.value;
CDAudio_Resume ();
}
}
}
 
 
int CDAudio_Init(void)
{
DWORD dwReturn;
MCI_OPEN_PARMS mciOpenParms;
MCI_SET_PARMS mciSetParms;
int n;
 
if (cls.state == ca_dedicated)
return -1;
 
if (COM_CheckParm("-nocdaudio"))
return -1;
 
mciOpenParms.lpstrDeviceType = "cdaudio";
if (dwReturn = mciSendCommand(0, MCI_OPEN, MCI_OPEN_TYPE | MCI_OPEN_SHAREABLE, (DWORD) (LPVOID) &mciOpenParms))
{
Con_Printf("CDAudio_Init: MCI_OPEN failed (%i)\n", dwReturn);
return -1;
}
wDeviceID = mciOpenParms.wDeviceID;
 
// Set the time format to track/minute/second/frame (TMSF).
mciSetParms.dwTimeFormat = MCI_FORMAT_TMSF;
if (dwReturn = mciSendCommand(wDeviceID, MCI_SET, MCI_SET_TIME_FORMAT, (DWORD)(LPVOID) &mciSetParms))
{
Con_Printf("MCI_SET_TIME_FORMAT failed (%i)\n", dwReturn);
mciSendCommand(wDeviceID, MCI_CLOSE, 0, (DWORD)NULL);
return -1;
}
 
for (n = 0; n < 100; n++)
remap[n] = n;
initialized = true;
enabled = true;
 
if (CDAudio_GetAudioDiskInfo())
{
Con_Printf("CDAudio_Init: No CD in player.\n");
cdValid = false;
}
 
Cmd_AddCommand ("cd", CD_f);
 
Con_Printf("CD Audio Initialized\n");
 
return 0;
}
 
 
void CDAudio_Shutdown(void)
{
if (!initialized)
return;
CDAudio_Stop();
if (mciSendCommand(wDeviceID, MCI_CLOSE, MCI_WAIT, (DWORD)NULL))
Con_DPrintf("CDAudio_Shutdown: MCI_CLOSE failed\n");
}
/contrib/other/sdlquake-1.0.9/cdaudio.h
0,0 → 1,27
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
 
int CDAudio_Init(void);
void CDAudio_Play(byte track, qboolean looping);
void CDAudio_Stop(void);
void CDAudio_Pause(void);
void CDAudio_Resume(void);
void CDAudio_Shutdown(void);
void CDAudio_Update(void);
/contrib/other/sdlquake-1.0.9/chase.c
0,0 → 1,92
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
// chase.c -- chase camera code
 
#include "quakedef.h"
 
cvar_t chase_back = {"chase_back", "100"};
cvar_t chase_up = {"chase_up", "16"};
cvar_t chase_right = {"chase_right", "0"};
cvar_t chase_active = {"chase_active", "0"};
 
vec3_t chase_pos;
vec3_t chase_angles;
 
vec3_t chase_dest;
vec3_t chase_dest_angles;
 
 
void Chase_Init (void)
{
Cvar_RegisterVariable (&chase_back);
Cvar_RegisterVariable (&chase_up);
Cvar_RegisterVariable (&chase_right);
Cvar_RegisterVariable (&chase_active);
}
 
void Chase_Reset (void)
{
// for respawning and teleporting
// start position 12 units behind head
}
 
void TraceLine (vec3_t start, vec3_t end, vec3_t impact)
{
trace_t trace;
 
memset (&trace, 0, sizeof(trace));
SV_RecursiveHullCheck (cl.worldmodel->hulls, 0, 0, 1, start, end, &trace);
 
VectorCopy (trace.endpos, impact);
}
 
void Chase_Update (void)
{
int i;
float dist;
vec3_t forward, up, right;
vec3_t dest, stop;
 
 
// if can't see player, reset
AngleVectors (cl.viewangles, forward, right, up);
 
// calc exact destination
for (i=0 ; i<3 ; i++)
chase_dest[i] = r_refdef.vieworg[i]
- forward[i]*chase_back.value
- right[i]*chase_right.value;
chase_dest[2] = r_refdef.vieworg[2] + chase_up.value;
 
// find the spot the player is looking at
VectorMA (r_refdef.vieworg, 4096, forward, dest);
TraceLine (r_refdef.vieworg, dest, stop);
 
// calculate pitch to look at the same spot from camera
VectorSubtract (stop, r_refdef.vieworg, stop);
dist = DotProduct (stop, forward);
if (dist < 1)
dist = 1;
r_refdef.viewangles[PITCH] = -atan(stop[2] / dist) / M_PI * 180;
 
// move towards destination
VectorCopy (chase_dest, r_refdef.vieworg);
}
 
/contrib/other/sdlquake-1.0.9/cl_demo.c
0,0 → 1,367
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
 
#include "quakedef.h"
 
void CL_FinishTimeDemo (void);
 
/*
==============================================================================
 
DEMO CODE
 
When a demo is playing back, all NET_SendMessages are skipped, and
NET_GetMessages are read from the demo file.
 
Whenever cl.time gets past the last received message, another message is
read from the demo file.
==============================================================================
*/
 
/*
==============
CL_StopPlayback
 
Called when a demo file runs out, or the user starts a game
==============
*/
void CL_StopPlayback (void)
{
if (!cls.demoplayback)
return;
 
fclose (cls.demofile);
cls.demoplayback = false;
cls.demofile = NULL;
cls.state = ca_disconnected;
 
if (cls.timedemo)
CL_FinishTimeDemo ();
}
 
/*
====================
CL_WriteDemoMessage
 
Dumps the current net message, prefixed by the length and view angles
====================
*/
void CL_WriteDemoMessage (void)
{
int len;
int i;
float f;
 
len = LittleLong (net_message.cursize);
fwrite (&len, 4, 1, cls.demofile);
for (i=0 ; i<3 ; i++)
{
f = LittleFloat (cl.viewangles[i]);
fwrite (&f, 4, 1, cls.demofile);
}
fwrite (net_message.data, net_message.cursize, 1, cls.demofile);
fflush (cls.demofile);
}
 
/*
====================
CL_GetMessage
 
Handles recording and playback of demos, on top of NET_ code
====================
*/
int CL_GetMessage (void)
{
int r, i;
float f;
if (cls.demoplayback)
{
// decide if it is time to grab the next message
if (cls.signon == SIGNONS) // allways grab until fully connected
{
if (cls.timedemo)
{
if (host_framecount == cls.td_lastframe)
return 0; // allready read this frame's message
cls.td_lastframe = host_framecount;
// if this is the second frame, grab the real td_starttime
// so the bogus time on the first frame doesn't count
if (host_framecount == cls.td_startframe + 1)
cls.td_starttime = realtime;
}
else if ( /* cl.time > 0 && */ cl.time <= cl.mtime[0])
{
return 0; // don't need another message yet
}
}
// get the next message
fread (&net_message.cursize, 4, 1, cls.demofile);
VectorCopy (cl.mviewangles[0], cl.mviewangles[1]);
for (i=0 ; i<3 ; i++)
{
r = fread (&f, 4, 1, cls.demofile);
cl.mviewangles[0][i] = LittleFloat (f);
}
net_message.cursize = LittleLong (net_message.cursize);
if (net_message.cursize > MAX_MSGLEN)
Sys_Error ("Demo message > MAX_MSGLEN");
r = fread (net_message.data, net_message.cursize, 1, cls.demofile);
if (r != 1)
{
CL_StopPlayback ();
return 0;
}
return 1;
}
 
while (1)
{
r = NET_GetMessage (cls.netcon);
if (r != 1 && r != 2)
return r;
// discard nop keepalive message
if (net_message.cursize == 1 && net_message.data[0] == svc_nop)
Con_Printf ("<-- server to client keepalive\n");
else
break;
}
 
if (cls.demorecording)
CL_WriteDemoMessage ();
return r;
}
 
 
/*
====================
CL_Stop_f
 
stop recording a demo
====================
*/
void CL_Stop_f (void)
{
if (cmd_source != src_command)
return;
 
if (!cls.demorecording)
{
Con_Printf ("Not recording a demo.\n");
return;
}
 
// write a disconnect message to the demo file
SZ_Clear (&net_message);
MSG_WriteByte (&net_message, svc_disconnect);
CL_WriteDemoMessage ();
 
// finish up
fclose (cls.demofile);
cls.demofile = NULL;
cls.demorecording = false;
Con_Printf ("Completed demo\n");
}
 
/*
====================
CL_Record_f
 
record <demoname> <map> [cd track]
====================
*/
void CL_Record_f (void)
{
int c;
char name[MAX_OSPATH];
int track;
 
if (cmd_source != src_command)
return;
 
c = Cmd_Argc();
if (c != 2 && c != 3 && c != 4)
{
Con_Printf ("record <demoname> [<map> [cd track]]\n");
return;
}
 
if (strstr(Cmd_Argv(1), ".."))
{
Con_Printf ("Relative pathnames are not allowed.\n");
return;
}
 
if (c == 2 && cls.state == ca_connected)
{
Con_Printf("Can not record - already connected to server\nClient demo recording must be started before connecting\n");
return;
}
 
// write the forced cd track number, or -1
if (c == 4)
{
track = atoi(Cmd_Argv(3));
Con_Printf ("Forcing CD track to %i\n", cls.forcetrack);
}
else
track = -1;
 
sprintf (name, "%s/%s", com_gamedir, Cmd_Argv(1));
//
// start the map up
//
if (c > 2)
Cmd_ExecuteString ( va("map %s", Cmd_Argv(2)), src_command);
//
// open the demo file
//
COM_DefaultExtension (name, ".dem");
 
Con_Printf ("recording to %s.\n", name);
cls.demofile = fopen (name, "wb");
if (!cls.demofile)
{
Con_Printf ("ERROR: couldn't open.\n");
return;
}
 
cls.forcetrack = track;
fprintf (cls.demofile, "%i\n", cls.forcetrack);
cls.demorecording = true;
}
 
 
/*
====================
CL_PlayDemo_f
 
play [demoname]
====================
*/
void CL_PlayDemo_f (void)
{
char name[256];
int c;
qboolean neg = false;
 
if (cmd_source != src_command)
return;
 
if (Cmd_Argc() != 2)
{
Con_Printf ("play <demoname> : plays a demo\n");
return;
}
 
//
// disconnect from server
//
CL_Disconnect ();
//
// open the demo file
//
strcpy (name, Cmd_Argv(1));
COM_DefaultExtension (name, ".dem");
 
Con_Printf ("Playing demo from %s.\n", name);
COM_FOpenFile (name, &cls.demofile);
if (!cls.demofile)
{
Con_Printf ("ERROR: couldn't open.\n");
cls.demonum = -1; // stop demo loop
return;
}
 
cls.demoplayback = true;
cls.state = ca_connected;
cls.forcetrack = 0;
 
while ((c = getc(cls.demofile)) != '\n')
if (c == '-')
neg = true;
else
cls.forcetrack = cls.forcetrack * 10 + (c - '0');
 
if (neg)
cls.forcetrack = -cls.forcetrack;
// ZOID, fscanf is evil
// fscanf (cls.demofile, "%i\n", &cls.forcetrack);
}
 
/*
====================
CL_FinishTimeDemo
 
====================
*/
void CL_FinishTimeDemo (void)
{
int frames;
float time;
cls.timedemo = false;
// the first frame didn't count
frames = (host_framecount - cls.td_startframe) - 1;
time = realtime - cls.td_starttime;
if (!time)
time = 1;
Con_Printf ("%i frames %5.1f seconds %5.1f fps\n", frames, time, frames/time);
}
 
/*
====================
CL_TimeDemo_f
 
timedemo [demoname]
====================
*/
void CL_TimeDemo_f (void)
{
if (cmd_source != src_command)
return;
 
if (Cmd_Argc() != 2)
{
Con_Printf ("timedemo <demoname> : gets demo speeds\n");
return;
}
 
CL_PlayDemo_f ();
// cls.td_starttime will be grabbed at the second frame of the demo, so
// all the loading time doesn't get counted
cls.timedemo = true;
cls.td_startframe = host_framecount;
cls.td_lastframe = -1; // get a new message this frame
}
 
/contrib/other/sdlquake-1.0.9/cl_input.c
0,0 → 1,448
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
// cl.input.c -- builds an intended movement command to send to the server
 
// Quake is a trademark of Id Software, Inc., (c) 1996 Id Software, Inc. All
// rights reserved.
 
#include "quakedef.h"
 
/*
===============================================================================
 
KEY BUTTONS
 
Continuous button event tracking is complicated by the fact that two different
input sources (say, mouse button 1 and the control key) can both press the
same button, but the button should only be released when both of the
pressing key have been released.
 
When a key event issues a button command (+forward, +attack, etc), it appends
its key number as a parameter to the command so it can be matched up with
the release.
 
state bit 0 is the current state of the key
state bit 1 is edge triggered on the up to down transition
state bit 2 is edge triggered on the down to up transition
 
===============================================================================
*/
 
 
kbutton_t in_mlook, in_klook;
kbutton_t in_left, in_right, in_forward, in_back;
kbutton_t in_lookup, in_lookdown, in_moveleft, in_moveright;
kbutton_t in_strafe, in_speed, in_use, in_jump, in_attack;
kbutton_t in_up, in_down;
 
int in_impulse;
 
 
void KeyDown (kbutton_t *b)
{
int k;
char *c;
 
c = Cmd_Argv(1);
if (c[0])
k = atoi(c);
else
k = -1; // typed manually at the console for continuous down
 
if (k == b->down[0] || k == b->down[1])
return; // repeating key
if (!b->down[0])
b->down[0] = k;
else if (!b->down[1])
b->down[1] = k;
else
{
Con_Printf ("Three keys down for a button!\n");
return;
}
if (b->state & 1)
return; // still down
b->state |= 1 + 2; // down + impulse down
}
 
void KeyUp (kbutton_t *b)
{
int k;
char *c;
c = Cmd_Argv(1);
if (c[0])
k = atoi(c);
else
{ // typed manually at the console, assume for unsticking, so clear all
b->down[0] = b->down[1] = 0;
b->state = 4; // impulse up
return;
}
 
if (b->down[0] == k)
b->down[0] = 0;
else if (b->down[1] == k)
b->down[1] = 0;
else
return; // key up without coresponding down (menu pass through)
if (b->down[0] || b->down[1])
return; // some other key is still holding it down
 
if (!(b->state & 1))
return; // still up (this should not happen)
b->state &= ~1; // now up
b->state |= 4; // impulse up
}
 
void IN_KLookDown (void) {KeyDown(&in_klook);}
void IN_KLookUp (void) {KeyUp(&in_klook);}
void IN_MLookDown (void) {KeyDown(&in_mlook);}
void IN_MLookUp (void) {
KeyUp(&in_mlook);
if ( !(in_mlook.state&1) && lookspring.value)
V_StartPitchDrift();
}
void IN_UpDown(void) {KeyDown(&in_up);}
void IN_UpUp(void) {KeyUp(&in_up);}
void IN_DownDown(void) {KeyDown(&in_down);}
void IN_DownUp(void) {KeyUp(&in_down);}
void IN_LeftDown(void) {KeyDown(&in_left);}
void IN_LeftUp(void) {KeyUp(&in_left);}
void IN_RightDown(void) {KeyDown(&in_right);}
void IN_RightUp(void) {KeyUp(&in_right);}
void IN_ForwardDown(void) {KeyDown(&in_forward);}
void IN_ForwardUp(void) {KeyUp(&in_forward);}
void IN_BackDown(void) {KeyDown(&in_back);}
void IN_BackUp(void) {KeyUp(&in_back);}
void IN_LookupDown(void) {KeyDown(&in_lookup);}
void IN_LookupUp(void) {KeyUp(&in_lookup);}
void IN_LookdownDown(void) {KeyDown(&in_lookdown);}
void IN_LookdownUp(void) {KeyUp(&in_lookdown);}
void IN_MoveleftDown(void) {KeyDown(&in_moveleft);}
void IN_MoveleftUp(void) {KeyUp(&in_moveleft);}
void IN_MoverightDown(void) {KeyDown(&in_moveright);}
void IN_MoverightUp(void) {KeyUp(&in_moveright);}
 
void IN_SpeedDown(void) {KeyDown(&in_speed);}
void IN_SpeedUp(void) {KeyUp(&in_speed);}
void IN_StrafeDown(void) {KeyDown(&in_strafe);}
void IN_StrafeUp(void) {KeyUp(&in_strafe);}
 
void IN_AttackDown(void) {KeyDown(&in_attack);}
void IN_AttackUp(void) {KeyUp(&in_attack);}
 
void IN_UseDown (void) {KeyDown(&in_use);}
void IN_UseUp (void) {KeyUp(&in_use);}
void IN_JumpDown (void) {KeyDown(&in_jump);}
void IN_JumpUp (void) {KeyUp(&in_jump);}
 
void IN_Impulse (void) {in_impulse=Q_atoi(Cmd_Argv(1));}
 
/*
===============
CL_KeyState
 
Returns 0.25 if a key was pressed and released during the frame,
0.5 if it was pressed and held
0 if held then released, and
1.0 if held for the entire time
===============
*/
float CL_KeyState (kbutton_t *key)
{
float val;
qboolean impulsedown, impulseup, down;
impulsedown = key->state & 2;
impulseup = key->state & 4;
down = key->state & 1;
val = 0;
if (impulsedown && !impulseup)
if (down)
val = 0.5; // pressed and held this frame
else
val = 0; // I_Error ();
if (impulseup && !impulsedown)
if (down)
val = 0; // I_Error ();
else
val = 0; // released this frame
if (!impulsedown && !impulseup)
if (down)
val = 1.0; // held the entire frame
else
val = 0; // up the entire frame
if (impulsedown && impulseup)
if (down)
val = 0.75; // released and re-pressed this frame
else
val = 0.25; // pressed and released this frame
 
key->state &= 1; // clear impulses
return val;
}
 
 
 
 
//==========================================================================
 
cvar_t cl_upspeed = {"cl_upspeed","200"};
cvar_t cl_forwardspeed = {"cl_forwardspeed","200", true};
cvar_t cl_backspeed = {"cl_backspeed","200", true};
cvar_t cl_sidespeed = {"cl_sidespeed","350"};
 
cvar_t cl_movespeedkey = {"cl_movespeedkey","2.0"};
 
cvar_t cl_yawspeed = {"cl_yawspeed","140"};
cvar_t cl_pitchspeed = {"cl_pitchspeed","150"};
 
cvar_t cl_anglespeedkey = {"cl_anglespeedkey","1.5"};
 
 
/*
================
CL_AdjustAngles
 
Moves the local angle positions
================
*/
void CL_AdjustAngles (void)
{
float speed;
float up, down;
if (in_speed.state & 1)
speed = host_frametime * cl_anglespeedkey.value;
else
speed = host_frametime;
 
if (!(in_strafe.state & 1))
{
cl.viewangles[YAW] -= speed*cl_yawspeed.value*CL_KeyState (&in_right);
cl.viewangles[YAW] += speed*cl_yawspeed.value*CL_KeyState (&in_left);
cl.viewangles[YAW] = anglemod(cl.viewangles[YAW]);
}
if (in_klook.state & 1)
{
V_StopPitchDrift ();
cl.viewangles[PITCH] -= speed*cl_pitchspeed.value * CL_KeyState (&in_forward);
cl.viewangles[PITCH] += speed*cl_pitchspeed.value * CL_KeyState (&in_back);
}
up = CL_KeyState (&in_lookup);
down = CL_KeyState(&in_lookdown);
cl.viewangles[PITCH] -= speed*cl_pitchspeed.value * up;
cl.viewangles[PITCH] += speed*cl_pitchspeed.value * down;
 
if (up || down)
V_StopPitchDrift ();
if (cl.viewangles[PITCH] > 80)
cl.viewangles[PITCH] = 80;
if (cl.viewangles[PITCH] < -70)
cl.viewangles[PITCH] = -70;
 
if (cl.viewangles[ROLL] > 50)
cl.viewangles[ROLL] = 50;
if (cl.viewangles[ROLL] < -50)
cl.viewangles[ROLL] = -50;
}
 
/*
================
CL_BaseMove
 
Send the intended movement message to the server
================
*/
void CL_BaseMove (usercmd_t *cmd)
{
if (cls.signon != SIGNONS)
return;
CL_AdjustAngles ();
Q_memset (cmd, 0, sizeof(*cmd));
if (in_strafe.state & 1)
{
cmd->sidemove += cl_sidespeed.value * CL_KeyState (&in_right);
cmd->sidemove -= cl_sidespeed.value * CL_KeyState (&in_left);
}
 
cmd->sidemove += cl_sidespeed.value * CL_KeyState (&in_moveright);
cmd->sidemove -= cl_sidespeed.value * CL_KeyState (&in_moveleft);
 
cmd->upmove += cl_upspeed.value * CL_KeyState (&in_up);
cmd->upmove -= cl_upspeed.value * CL_KeyState (&in_down);
 
if (! (in_klook.state & 1) )
{
cmd->forwardmove += cl_forwardspeed.value * CL_KeyState (&in_forward);
cmd->forwardmove -= cl_backspeed.value * CL_KeyState (&in_back);
}
 
//
// adjust for speed key
//
if (in_speed.state & 1)
{
cmd->forwardmove *= cl_movespeedkey.value;
cmd->sidemove *= cl_movespeedkey.value;
cmd->upmove *= cl_movespeedkey.value;
}
 
#ifdef QUAKE2
cmd->lightlevel = cl.light_level;
#endif
}
 
 
 
/*
==============
CL_SendMove
==============
*/
void CL_SendMove (usercmd_t *cmd)
{
int i;
int bits;
sizebuf_t buf;
byte data[128];
buf.maxsize = 128;
buf.cursize = 0;
buf.data = data;
cl.cmd = *cmd;
 
//
// send the movement message
//
MSG_WriteByte (&buf, clc_move);
 
MSG_WriteFloat (&buf, cl.mtime[0]); // so server can get ping times
 
for (i=0 ; i<3 ; i++)
MSG_WriteAngle (&buf, cl.viewangles[i]);
MSG_WriteShort (&buf, cmd->forwardmove);
MSG_WriteShort (&buf, cmd->sidemove);
MSG_WriteShort (&buf, cmd->upmove);
 
//
// send button bits
//
bits = 0;
if ( in_attack.state & 3 )
bits |= 1;
in_attack.state &= ~2;
if (in_jump.state & 3)
bits |= 2;
in_jump.state &= ~2;
MSG_WriteByte (&buf, bits);
 
MSG_WriteByte (&buf, in_impulse);
in_impulse = 0;
 
#ifdef QUAKE2
//
// light level
//
MSG_WriteByte (&buf, cmd->lightlevel);
#endif
 
//
// deliver the message
//
if (cls.demoplayback)
return;
 
//
// allways dump the first two message, because it may contain leftover inputs
// from the last level
//
if (++cl.movemessages <= 2)
return;
if (NET_SendUnreliableMessage (cls.netcon, &buf) == -1)
{
Con_Printf ("CL_SendMove: lost server connection\n");
CL_Disconnect ();
}
}
 
/*
============
CL_InitInput
============
*/
void CL_InitInput (void)
{
Cmd_AddCommand ("+moveup",IN_UpDown);
Cmd_AddCommand ("-moveup",IN_UpUp);
Cmd_AddCommand ("+movedown",IN_DownDown);
Cmd_AddCommand ("-movedown",IN_DownUp);
Cmd_AddCommand ("+left",IN_LeftDown);
Cmd_AddCommand ("-left",IN_LeftUp);
Cmd_AddCommand ("+right",IN_RightDown);
Cmd_AddCommand ("-right",IN_RightUp);
Cmd_AddCommand ("+forward",IN_ForwardDown);
Cmd_AddCommand ("-forward",IN_ForwardUp);
Cmd_AddCommand ("+back",IN_BackDown);
Cmd_AddCommand ("-back",IN_BackUp);
Cmd_AddCommand ("+lookup", IN_LookupDown);
Cmd_AddCommand ("-lookup", IN_LookupUp);
Cmd_AddCommand ("+lookdown", IN_LookdownDown);
Cmd_AddCommand ("-lookdown", IN_LookdownUp);
Cmd_AddCommand ("+strafe", IN_StrafeDown);
Cmd_AddCommand ("-strafe", IN_StrafeUp);
Cmd_AddCommand ("+moveleft", IN_MoveleftDown);
Cmd_AddCommand ("-moveleft", IN_MoveleftUp);
Cmd_AddCommand ("+moveright", IN_MoverightDown);
Cmd_AddCommand ("-moveright", IN_MoverightUp);
Cmd_AddCommand ("+speed", IN_SpeedDown);
Cmd_AddCommand ("-speed", IN_SpeedUp);
Cmd_AddCommand ("+attack", IN_AttackDown);
Cmd_AddCommand ("-attack", IN_AttackUp);
Cmd_AddCommand ("+use", IN_UseDown);
Cmd_AddCommand ("-use", IN_UseUp);
Cmd_AddCommand ("+jump", IN_JumpDown);
Cmd_AddCommand ("-jump", IN_JumpUp);
Cmd_AddCommand ("impulse", IN_Impulse);
Cmd_AddCommand ("+klook", IN_KLookDown);
Cmd_AddCommand ("-klook", IN_KLookUp);
Cmd_AddCommand ("+mlook", IN_MLookDown);
Cmd_AddCommand ("-mlook", IN_MLookUp);
 
}
 
/contrib/other/sdlquake-1.0.9/cl_main.c
0,0 → 1,757
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
// cl_main.c -- client main loop
 
#include "quakedef.h"
 
// we need to declare some mouse variables here, because the menu system
// references them even when on a unix system.
 
// these two are not intended to be set directly
cvar_t cl_name = {"_cl_name", "player", true};
cvar_t cl_color = {"_cl_color", "0", true};
 
cvar_t cl_shownet = {"cl_shownet","0"}; // can be 0, 1, or 2
cvar_t cl_nolerp = {"cl_nolerp","0"};
 
cvar_t lookspring = {"lookspring","0", true};
cvar_t lookstrafe = {"lookstrafe","0", true};
cvar_t sensitivity = {"sensitivity","3", true};
 
cvar_t m_pitch = {"m_pitch","0.022", true};
cvar_t m_yaw = {"m_yaw","0.022", true};
cvar_t m_forward = {"m_forward","1", true};
cvar_t m_side = {"m_side","0.8", true};
 
 
client_static_t cls;
client_state_t cl;
// FIXME: put these on hunk?
efrag_t cl_efrags[MAX_EFRAGS];
entity_t cl_entities[MAX_EDICTS];
entity_t cl_static_entities[MAX_STATIC_ENTITIES];
lightstyle_t cl_lightstyle[MAX_LIGHTSTYLES];
dlight_t cl_dlights[MAX_DLIGHTS];
 
int cl_numvisedicts;
entity_t *cl_visedicts[MAX_VISEDICTS];
 
/*
=====================
CL_ClearState
 
=====================
*/
void CL_ClearState (void)
{
int i;
 
if (!sv.active)
Host_ClearMemory ();
 
// wipe the entire cl structure
memset (&cl, 0, sizeof(cl));
 
SZ_Clear (&cls.message);
 
// clear other arrays
memset (cl_efrags, 0, sizeof(cl_efrags));
memset (cl_entities, 0, sizeof(cl_entities));
memset (cl_dlights, 0, sizeof(cl_dlights));
memset (cl_lightstyle, 0, sizeof(cl_lightstyle));
memset (cl_temp_entities, 0, sizeof(cl_temp_entities));
memset (cl_beams, 0, sizeof(cl_beams));
 
//
// allocate the efrags and chain together into a free list
//
cl.free_efrags = cl_efrags;
for (i=0 ; i<MAX_EFRAGS-1 ; i++)
cl.free_efrags[i].entnext = &cl.free_efrags[i+1];
cl.free_efrags[i].entnext = NULL;
}
 
/*
=====================
CL_Disconnect
 
Sends a disconnect message to the server
This is also called on Host_Error, so it shouldn't cause any errors
=====================
*/
void CL_Disconnect (void)
{
// stop sounds (especially looping!)
S_StopAllSounds (true);
// bring the console down and fade the colors back to normal
// SCR_BringDownConsole ();
 
// if running a local server, shut it down
if (cls.demoplayback)
CL_StopPlayback ();
else if (cls.state == ca_connected)
{
if (cls.demorecording)
CL_Stop_f ();
 
Con_DPrintf ("Sending clc_disconnect\n");
SZ_Clear (&cls.message);
MSG_WriteByte (&cls.message, clc_disconnect);
NET_SendUnreliableMessage (cls.netcon, &cls.message);
SZ_Clear (&cls.message);
NET_Close (cls.netcon);
 
cls.state = ca_disconnected;
if (sv.active)
Host_ShutdownServer(false);
}
 
cls.demoplayback = cls.timedemo = false;
cls.signon = 0;
}
 
void CL_Disconnect_f (void)
{
CL_Disconnect ();
if (sv.active)
Host_ShutdownServer (false);
}
 
 
 
 
/*
=====================
CL_EstablishConnection
 
Host should be either "local" or a net address to be passed on
=====================
*/
void CL_EstablishConnection (char *host)
{
if (cls.state == ca_dedicated)
return;
 
if (cls.demoplayback)
return;
 
CL_Disconnect ();
 
cls.netcon = NET_Connect (host);
if (!cls.netcon)
Host_Error ("CL_Connect: connect failed\n");
Con_DPrintf ("CL_EstablishConnection: connected to %s\n", host);
cls.demonum = -1; // not in the demo loop now
cls.state = ca_connected;
cls.signon = 0; // need all the signon messages before playing
}
 
/*
=====================
CL_SignonReply
 
An svc_signonnum has been received, perform a client side setup
=====================
*/
void CL_SignonReply (void)
{
char str[8192];
 
Con_DPrintf ("CL_SignonReply: %i\n", cls.signon);
 
switch (cls.signon)
{
case 1:
MSG_WriteByte (&cls.message, clc_stringcmd);
MSG_WriteString (&cls.message, "prespawn");
break;
case 2:
MSG_WriteByte (&cls.message, clc_stringcmd);
MSG_WriteString (&cls.message, va("name \"%s\"\n", cl_name.string));
MSG_WriteByte (&cls.message, clc_stringcmd);
MSG_WriteString (&cls.message, va("color %i %i\n", ((int)cl_color.value)>>4, ((int)cl_color.value)&15));
MSG_WriteByte (&cls.message, clc_stringcmd);
sprintf (str, "spawn %s", cls.spawnparms);
MSG_WriteString (&cls.message, str);
break;
case 3:
MSG_WriteByte (&cls.message, clc_stringcmd);
MSG_WriteString (&cls.message, "begin");
Cache_Report (); // print remaining memory
break;
case 4:
SCR_EndLoadingPlaque (); // allow normal screen updates
break;
}
}
 
/*
=====================
CL_NextDemo
 
Called to play the next demo in the demo loop
=====================
*/
void CL_NextDemo (void)
{
char str[1024];
 
if (cls.demonum == -1)
return; // don't play demos
 
SCR_BeginLoadingPlaque ();
 
if (!cls.demos[cls.demonum][0] || cls.demonum == MAX_DEMOS)
{
cls.demonum = 0;
if (!cls.demos[cls.demonum][0])
{
Con_Printf ("No demos listed with startdemos\n");
cls.demonum = -1;
return;
}
}
 
sprintf (str,"playdemo %s\n", cls.demos[cls.demonum]);
Cbuf_InsertText (str);
cls.demonum++;
}
 
/*
==============
CL_PrintEntities_f
==============
*/
void CL_PrintEntities_f (void)
{
entity_t *ent;
int i;
for (i=0,ent=cl_entities ; i<cl.num_entities ; i++,ent++)
{
Con_Printf ("%3i:",i);
if (!ent->model)
{
Con_Printf ("EMPTY\n");
continue;
}
Con_Printf ("%s:%2i (%5.1f,%5.1f,%5.1f) [%5.1f %5.1f %5.1f]\n"
,ent->model->name,ent->frame, ent->origin[0], ent->origin[1], ent->origin[2], ent->angles[0], ent->angles[1], ent->angles[2]);
}
}
 
 
/*
===============
SetPal
 
Debugging tool, just flashes the screen
===============
*/
void SetPal (int i)
{
#if 0
static int old;
byte pal[768];
int c;
if (i == old)
return;
old = i;
 
if (i==0)
VID_SetPalette (host_basepal);
else if (i==1)
{
for (c=0 ; c<768 ; c+=3)
{
pal[c] = 0;
pal[c+1] = 255;
pal[c+2] = 0;
}
VID_SetPalette (pal);
}
else
{
for (c=0 ; c<768 ; c+=3)
{
pal[c] = 0;
pal[c+1] = 0;
pal[c+2] = 255;
}
VID_SetPalette (pal);
}
#endif
}
 
/*
===============
CL_AllocDlight
 
===============
*/
dlight_t *CL_AllocDlight (int key)
{
int i;
dlight_t *dl;
 
// first look for an exact key match
if (key)
{
dl = cl_dlights;
for (i=0 ; i<MAX_DLIGHTS ; i++, dl++)
{
if (dl->key == key)
{
memset (dl, 0, sizeof(*dl));
dl->key = key;
return dl;
}
}
}
 
// then look for anything else
dl = cl_dlights;
for (i=0 ; i<MAX_DLIGHTS ; i++, dl++)
{
if (dl->die < cl.time)
{
memset (dl, 0, sizeof(*dl));
dl->key = key;
return dl;
}
}
 
dl = &cl_dlights[0];
memset (dl, 0, sizeof(*dl));
dl->key = key;
return dl;
}
 
 
/*
===============
CL_DecayLights
 
===============
*/
void CL_DecayLights (void)
{
int i;
dlight_t *dl;
float time;
time = cl.time - cl.oldtime;
 
dl = cl_dlights;
for (i=0 ; i<MAX_DLIGHTS ; i++, dl++)
{
if (dl->die < cl.time || !dl->radius)
continue;
dl->radius -= time*dl->decay;
if (dl->radius < 0)
dl->radius = 0;
}
}
 
 
/*
===============
CL_LerpPoint
 
Determines the fraction between the last two messages that the objects
should be put at.
===============
*/
float CL_LerpPoint (void)
{
float f, frac;
 
f = cl.mtime[0] - cl.mtime[1];
if (!f || cl_nolerp.value || cls.timedemo || sv.active)
{
cl.time = cl.mtime[0];
return 1;
}
if (f > 0.1)
{ // dropped packet, or start of demo
cl.mtime[1] = cl.mtime[0] - 0.1;
f = 0.1;
}
frac = (cl.time - cl.mtime[1]) / f;
//Con_Printf ("frac: %f\n",frac);
if (frac < 0)
{
if (frac < -0.01)
{
SetPal(1);
cl.time = cl.mtime[1];
// Con_Printf ("low frac\n");
}
frac = 0;
}
else if (frac > 1)
{
if (frac > 1.01)
{
SetPal(2);
cl.time = cl.mtime[0];
// Con_Printf ("high frac\n");
}
frac = 1;
}
else
SetPal(0);
return frac;
}
 
 
/*
===============
CL_RelinkEntities
===============
*/
void CL_RelinkEntities (void)
{
entity_t *ent;
int i, j;
float frac, f, d;
vec3_t delta;
float bobjrotate;
vec3_t oldorg;
dlight_t *dl;
 
// determine partial update time
frac = CL_LerpPoint ();
 
cl_numvisedicts = 0;
 
//
// interpolate player info
//
for (i=0 ; i<3 ; i++)
cl.velocity[i] = cl.mvelocity[1][i] +
frac * (cl.mvelocity[0][i] - cl.mvelocity[1][i]);
 
if (cls.demoplayback)
{
// interpolate the angles
for (j=0 ; j<3 ; j++)
{
d = cl.mviewangles[0][j] - cl.mviewangles[1][j];
if (d > 180)
d -= 360;
else if (d < -180)
d += 360;
cl.viewangles[j] = cl.mviewangles[1][j] + frac*d;
}
}
bobjrotate = anglemod(100*cl.time);
// start on the entity after the world
for (i=1,ent=cl_entities+1 ; i<cl.num_entities ; i++,ent++)
{
if (!ent->model)
{ // empty slot
if (ent->forcelink)
R_RemoveEfrags (ent); // just became empty
continue;
}
 
// if the object wasn't included in the last packet, remove it
if (ent->msgtime != cl.mtime[0])
{
ent->model = NULL;
continue;
}
 
VectorCopy (ent->origin, oldorg);
 
if (ent->forcelink)
{ // the entity was not updated in the last message
// so move to the final spot
VectorCopy (ent->msg_origins[0], ent->origin);
VectorCopy (ent->msg_angles[0], ent->angles);
}
else
{ // if the delta is large, assume a teleport and don't lerp
f = frac;
for (j=0 ; j<3 ; j++)
{
delta[j] = ent->msg_origins[0][j] - ent->msg_origins[1][j];
if (delta[j] > 100 || delta[j] < -100)
f = 1; // assume a teleportation, not a motion
}
 
// interpolate the origin and angles
for (j=0 ; j<3 ; j++)
{
ent->origin[j] = ent->msg_origins[1][j] + f*delta[j];
 
d = ent->msg_angles[0][j] - ent->msg_angles[1][j];
if (d > 180)
d -= 360;
else if (d < -180)
d += 360;
ent->angles[j] = ent->msg_angles[1][j] + f*d;
}
}
 
// rotate binary objects locally
if (ent->model->flags & EF_ROTATE)
ent->angles[1] = bobjrotate;
 
if (ent->effects & EF_BRIGHTFIELD)
R_EntityParticles (ent);
#ifdef QUAKE2
if (ent->effects & EF_DARKFIELD)
R_DarkFieldParticles (ent);
#endif
if (ent->effects & EF_MUZZLEFLASH)
{
vec3_t fv, rv, uv;
 
dl = CL_AllocDlight (i);
VectorCopy (ent->origin, dl->origin);
dl->origin[2] += 16;
AngleVectors (ent->angles, fv, rv, uv);
VectorMA (dl->origin, 18, fv, dl->origin);
dl->radius = 200 + (rand()&31);
dl->minlight = 32;
dl->die = cl.time + 0.1;
}
if (ent->effects & EF_BRIGHTLIGHT)
{
dl = CL_AllocDlight (i);
VectorCopy (ent->origin, dl->origin);
dl->origin[2] += 16;
dl->radius = 400 + (rand()&31);
dl->die = cl.time + 0.001;
}
if (ent->effects & EF_DIMLIGHT)
{
dl = CL_AllocDlight (i);
VectorCopy (ent->origin, dl->origin);
dl->radius = 200 + (rand()&31);
dl->die = cl.time + 0.001;
}
#ifdef QUAKE2
if (ent->effects & EF_DARKLIGHT)
{
dl = CL_AllocDlight (i);
VectorCopy (ent->origin, dl->origin);
dl->radius = 200.0 + (rand()&31);
dl->die = cl.time + 0.001;
dl->dark = true;
}
if (ent->effects & EF_LIGHT)
{
dl = CL_AllocDlight (i);
VectorCopy (ent->origin, dl->origin);
dl->radius = 200;
dl->die = cl.time + 0.001;
}
#endif
 
if (ent->model->flags & EF_GIB)
R_RocketTrail (oldorg, ent->origin, 2);
else if (ent->model->flags & EF_ZOMGIB)
R_RocketTrail (oldorg, ent->origin, 4);
else if (ent->model->flags & EF_TRACER)
R_RocketTrail (oldorg, ent->origin, 3);
else if (ent->model->flags & EF_TRACER2)
R_RocketTrail (oldorg, ent->origin, 5);
else if (ent->model->flags & EF_ROCKET)
{
R_RocketTrail (oldorg, ent->origin, 0);
dl = CL_AllocDlight (i);
VectorCopy (ent->origin, dl->origin);
dl->radius = 200;
dl->die = cl.time + 0.01;
}
else if (ent->model->flags & EF_GRENADE)
R_RocketTrail (oldorg, ent->origin, 1);
else if (ent->model->flags & EF_TRACER3)
R_RocketTrail (oldorg, ent->origin, 6);
 
ent->forcelink = false;
 
if (i == cl.viewentity && !chase_active.value)
continue;
 
#ifdef QUAKE2
if ( ent->effects & EF_NODRAW )
continue;
#endif
if (cl_numvisedicts < MAX_VISEDICTS)
{
cl_visedicts[cl_numvisedicts] = ent;
cl_numvisedicts++;
}
}
 
}
 
 
/*
===============
CL_ReadFromServer
 
Read all incoming data from the server
===============
*/
int CL_ReadFromServer (void)
{
int ret;
 
cl.oldtime = cl.time;
cl.time += host_frametime;
do
{
ret = CL_GetMessage ();
if (ret == -1)
Host_Error ("CL_ReadFromServer: lost server connection");
if (!ret)
break;
cl.last_received_message = realtime;
CL_ParseServerMessage ();
} while (ret && cls.state == ca_connected);
if (cl_shownet.value)
Con_Printf ("\n");
 
CL_RelinkEntities ();
CL_UpdateTEnts ();
 
//
// bring the links up to date
//
return 0;
}
 
/*
=================
CL_SendCmd
=================
*/
void CL_SendCmd (void)
{
usercmd_t cmd;
 
if (cls.state != ca_connected)
return;
 
if (cls.signon == SIGNONS)
{
// get basic movement from keyboard
CL_BaseMove (&cmd);
// allow mice or other external controllers to add to the move
IN_Move (&cmd);
// send the unreliable message
CL_SendMove (&cmd);
}
 
if (cls.demoplayback)
{
SZ_Clear (&cls.message);
return;
}
// send the reliable message
if (!cls.message.cursize)
return; // no message at all
if (!NET_CanSendMessage (cls.netcon))
{
Con_DPrintf ("CL_WriteToServer: can't send\n");
return;
}
 
if (NET_SendMessage (cls.netcon, &cls.message) == -1)
Host_Error ("CL_WriteToServer: lost server connection");
 
SZ_Clear (&cls.message);
}
 
/*
=================
CL_Init
=================
*/
void CL_Init (void)
{
SZ_Alloc (&cls.message, 1024);
 
CL_InitInput ();
CL_InitTEnts ();
//
// register our commands
//
Cvar_RegisterVariable (&cl_name);
Cvar_RegisterVariable (&cl_color);
Cvar_RegisterVariable (&cl_upspeed);
Cvar_RegisterVariable (&cl_forwardspeed);
Cvar_RegisterVariable (&cl_backspeed);
Cvar_RegisterVariable (&cl_sidespeed);
Cvar_RegisterVariable (&cl_movespeedkey);
Cvar_RegisterVariable (&cl_yawspeed);
Cvar_RegisterVariable (&cl_pitchspeed);
Cvar_RegisterVariable (&cl_anglespeedkey);
Cvar_RegisterVariable (&cl_shownet);
Cvar_RegisterVariable (&cl_nolerp);
Cvar_RegisterVariable (&lookspring);
Cvar_RegisterVariable (&lookstrafe);
Cvar_RegisterVariable (&sensitivity);
 
Cvar_RegisterVariable (&m_pitch);
Cvar_RegisterVariable (&m_yaw);
Cvar_RegisterVariable (&m_forward);
Cvar_RegisterVariable (&m_side);
 
// Cvar_RegisterVariable (&cl_autofire);
Cmd_AddCommand ("entities", CL_PrintEntities_f);
Cmd_AddCommand ("disconnect", CL_Disconnect_f);
Cmd_AddCommand ("record", CL_Record_f);
Cmd_AddCommand ("stop", CL_Stop_f);
Cmd_AddCommand ("playdemo", CL_PlayDemo_f);
Cmd_AddCommand ("timedemo", CL_TimeDemo_f);
}
 
/contrib/other/sdlquake-1.0.9/cl_parse.c
0,0 → 1,963
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
// cl_parse.c -- parse a message received from the server
 
#include "quakedef.h"
 
char *svc_strings[] =
{
"svc_bad",
"svc_nop",
"svc_disconnect",
"svc_updatestat",
"svc_version", // [long] server version
"svc_setview", // [short] entity number
"svc_sound", // <see code>
"svc_time", // [float] server time
"svc_print", // [string] null terminated string
"svc_stufftext", // [string] stuffed into client's console buffer
// the string should be \n terminated
"svc_setangle", // [vec3] set the view angle to this absolute value
"svc_serverinfo", // [long] version
// [string] signon string
// [string]..[0]model cache [string]...[0]sounds cache
// [string]..[0]item cache
"svc_lightstyle", // [byte] [string]
"svc_updatename", // [byte] [string]
"svc_updatefrags", // [byte] [short]
"svc_clientdata", // <shortbits + data>
"svc_stopsound", // <see code>
"svc_updatecolors", // [byte] [byte]
"svc_particle", // [vec3] <variable>
"svc_damage", // [byte] impact [byte] blood [vec3] from
"svc_spawnstatic",
"OBSOLETE svc_spawnbinary",
"svc_spawnbaseline",
"svc_temp_entity", // <variable>
"svc_setpause",
"svc_signonnum",
"svc_centerprint",
"svc_killedmonster",
"svc_foundsecret",
"svc_spawnstaticsound",
"svc_intermission",
"svc_finale", // [string] music [string] text
"svc_cdtrack", // [byte] track [byte] looptrack
"svc_sellscreen",
"svc_cutscene"
};
 
//=============================================================================
 
/*
===============
CL_EntityNum
 
This error checks and tracks the total number of entities
===============
*/
entity_t *CL_EntityNum (int num)
{
if (num >= cl.num_entities)
{
if (num >= MAX_EDICTS)
Host_Error ("CL_EntityNum: %i is an invalid number",num);
while (cl.num_entities<=num)
{
cl_entities[cl.num_entities].colormap = vid.colormap;
cl.num_entities++;
}
}
return &cl_entities[num];
}
 
 
/*
==================
CL_ParseStartSoundPacket
==================
*/
void CL_ParseStartSoundPacket(void)
{
vec3_t pos;
int channel, ent;
int sound_num;
int volume;
int field_mask;
float attenuation;
int i;
field_mask = MSG_ReadByte();
 
if (field_mask & SND_VOLUME)
volume = MSG_ReadByte ();
else
volume = DEFAULT_SOUND_PACKET_VOLUME;
if (field_mask & SND_ATTENUATION)
attenuation = MSG_ReadByte () / 64.0;
else
attenuation = DEFAULT_SOUND_PACKET_ATTENUATION;
channel = MSG_ReadShort ();
sound_num = MSG_ReadByte ();
 
ent = channel >> 3;
channel &= 7;
 
if (ent > MAX_EDICTS)
Host_Error ("CL_ParseStartSoundPacket: ent = %i", ent);
for (i=0 ; i<3 ; i++)
pos[i] = MSG_ReadCoord ();
S_StartSound (ent, channel, cl.sound_precache[sound_num], pos, volume/255.0, attenuation);
}
 
/*
==================
CL_KeepaliveMessage
 
When the client is taking a long time to load stuff, send keepalive messages
so the server doesn't disconnect.
==================
*/
void CL_KeepaliveMessage (void)
{
float time;
static float lastmsg;
int ret;
sizebuf_t old;
byte olddata[8192];
if (sv.active)
return; // no need if server is local
if (cls.demoplayback)
return;
 
// read messages from server, should just be nops
old = net_message;
memcpy (olddata, net_message.data, net_message.cursize);
do
{
ret = CL_GetMessage ();
switch (ret)
{
default:
Host_Error ("CL_KeepaliveMessage: CL_GetMessage failed");
case 0:
break; // nothing waiting
case 1:
Host_Error ("CL_KeepaliveMessage: received a message");
break;
case 2:
if (MSG_ReadByte() != svc_nop)
Host_Error ("CL_KeepaliveMessage: datagram wasn't a nop");
break;
}
} while (ret);
 
net_message = old;
memcpy (net_message.data, olddata, net_message.cursize);
 
// check time
time = Sys_FloatTime ();
if (time - lastmsg < 5)
return;
lastmsg = time;
 
// write out a nop
Con_Printf ("--> client to server keepalive\n");
 
MSG_WriteByte (&cls.message, clc_nop);
NET_SendMessage (cls.netcon, &cls.message);
SZ_Clear (&cls.message);
}
 
/*
==================
CL_ParseServerInfo
==================
*/
void CL_ParseServerInfo (void)
{
char *str;
int i;
int nummodels, numsounds;
char model_precache[MAX_MODELS][MAX_QPATH];
char sound_precache[MAX_SOUNDS][MAX_QPATH];
Con_DPrintf ("Serverinfo packet received.\n");
//
// wipe the client_state_t struct
//
CL_ClearState ();
 
// parse protocol version number
i = MSG_ReadLong ();
if (i != PROTOCOL_VERSION)
{
Con_Printf ("Server returned version %i, not %i", i, PROTOCOL_VERSION);
return;
}
 
// parse maxclients
cl.maxclients = MSG_ReadByte ();
if (cl.maxclients < 1 || cl.maxclients > MAX_SCOREBOARD)
{
Con_Printf("Bad maxclients (%u) from server\n", cl.maxclients);
return;
}
cl.scores = Hunk_AllocName (cl.maxclients*sizeof(*cl.scores), "scores");
 
// parse gametype
cl.gametype = MSG_ReadByte ();
 
// parse signon message
str = MSG_ReadString ();
strncpy (cl.levelname, str, sizeof(cl.levelname)-1);
 
// seperate the printfs so the server message can have a color
Con_Printf("\n\n\35\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\37\n\n");
Con_Printf ("%c%s\n", 2, str);
 
//
// first we go through and touch all of the precache data that still
// happens to be in the cache, so precaching something else doesn't
// needlessly purge it
//
 
// precache models
memset (cl.model_precache, 0, sizeof(cl.model_precache));
for (nummodels=1 ; ; nummodels++)
{
str = MSG_ReadString ();
if (!str[0])
break;
if (nummodels==MAX_MODELS)
{
Con_Printf ("Server sent too many model precaches\n");
return;
}
strcpy (model_precache[nummodels], str);
Mod_TouchModel (str);
}
 
// precache sounds
memset (cl.sound_precache, 0, sizeof(cl.sound_precache));
for (numsounds=1 ; ; numsounds++)
{
str = MSG_ReadString ();
if (!str[0])
break;
if (numsounds==MAX_SOUNDS)
{
Con_Printf ("Server sent too many sound precaches\n");
return;
}
strcpy (sound_precache[numsounds], str);
S_TouchSound (str);
}
 
//
// now we try to load everything else until a cache allocation fails
//
 
for (i=1 ; i<nummodels ; i++)
{
cl.model_precache[i] = Mod_ForName (model_precache[i], false);
if (cl.model_precache[i] == NULL)
{
Con_Printf("Model %s not found\n", model_precache[i]);
return;
}
CL_KeepaliveMessage ();
}
 
S_BeginPrecaching ();
for (i=1 ; i<numsounds ; i++)
{
cl.sound_precache[i] = S_PrecacheSound (sound_precache[i]);
CL_KeepaliveMessage ();
}
S_EndPrecaching ();
 
 
// local state
cl_entities[0].model = cl.worldmodel = cl.model_precache[1];
R_NewMap ();
 
Hunk_Check (); // make sure nothing is hurt
noclip_anglehack = false; // noclip is turned off at start
}
 
 
/*
==================
CL_ParseUpdate
 
Parse an entity update message from the server
If an entities model or origin changes from frame to frame, it must be
relinked. Other attributes can change without relinking.
==================
*/
int bitcounts[16];
 
void CL_ParseUpdate (int bits)
{
int i;
model_t *model;
int modnum;
qboolean forcelink;
entity_t *ent;
int num;
int skin;
 
if (cls.signon == SIGNONS - 1)
{ // first update is the final signon stage
cls.signon = SIGNONS;
CL_SignonReply ();
}
 
if (bits & U_MOREBITS)
{
i = MSG_ReadByte ();
bits |= (i<<8);
}
 
if (bits & U_LONGENTITY)
num = MSG_ReadShort ();
else
num = MSG_ReadByte ();
 
ent = CL_EntityNum (num);
 
for (i=0 ; i<16 ; i++)
if (bits&(1<<i))
bitcounts[i]++;
 
if (ent->msgtime != cl.mtime[1])
forcelink = true; // no previous frame to lerp from
else
forcelink = false;
 
ent->msgtime = cl.mtime[0];
if (bits & U_MODEL)
{
modnum = MSG_ReadByte ();
if (modnum >= MAX_MODELS)
Host_Error ("CL_ParseModel: bad modnum");
}
else
modnum = ent->baseline.modelindex;
model = cl.model_precache[modnum];
if (model != ent->model)
{
ent->model = model;
// automatic animation (torches, etc) can be either all together
// or randomized
if (model)
{
if (model->synctype == ST_RAND)
ent->syncbase = (float)(rand()&0x7fff) / 0x7fff;
else
ent->syncbase = 0.0;
}
else
forcelink = true; // hack to make null model players work
#ifdef GLQUAKE
if (num > 0 && num <= cl.maxclients)
R_TranslatePlayerSkin (num - 1);
#endif
}
if (bits & U_FRAME)
ent->frame = MSG_ReadByte ();
else
ent->frame = ent->baseline.frame;
 
if (bits & U_COLORMAP)
i = MSG_ReadByte();
else
i = ent->baseline.colormap;
if (!i)
ent->colormap = vid.colormap;
else
{
if (i > cl.maxclients)
Sys_Error ("i >= cl.maxclients");
ent->colormap = cl.scores[i-1].translations;
}
 
#ifdef GLQUAKE
if (bits & U_SKIN)
skin = MSG_ReadByte();
else
skin = ent->baseline.skin;
if (skin != ent->skinnum) {
ent->skinnum = skin;
if (num > 0 && num <= cl.maxclients)
R_TranslatePlayerSkin (num - 1);
}
 
#else
 
if (bits & U_SKIN)
ent->skinnum = MSG_ReadByte();
else
ent->skinnum = ent->baseline.skin;
#endif
 
if (bits & U_EFFECTS)
ent->effects = MSG_ReadByte();
else
ent->effects = ent->baseline.effects;
 
// shift the known values for interpolation
VectorCopy (ent->msg_origins[0], ent->msg_origins[1]);
VectorCopy (ent->msg_angles[0], ent->msg_angles[1]);
 
if (bits & U_ORIGIN1)
ent->msg_origins[0][0] = MSG_ReadCoord ();
else
ent->msg_origins[0][0] = ent->baseline.origin[0];
if (bits & U_ANGLE1)
ent->msg_angles[0][0] = MSG_ReadAngle();
else
ent->msg_angles[0][0] = ent->baseline.angles[0];
 
if (bits & U_ORIGIN2)
ent->msg_origins[0][1] = MSG_ReadCoord ();
else
ent->msg_origins[0][1] = ent->baseline.origin[1];
if (bits & U_ANGLE2)
ent->msg_angles[0][1] = MSG_ReadAngle();
else
ent->msg_angles[0][1] = ent->baseline.angles[1];
 
if (bits & U_ORIGIN3)
ent->msg_origins[0][2] = MSG_ReadCoord ();
else
ent->msg_origins[0][2] = ent->baseline.origin[2];
if (bits & U_ANGLE3)
ent->msg_angles[0][2] = MSG_ReadAngle();
else
ent->msg_angles[0][2] = ent->baseline.angles[2];
 
if ( bits & U_NOLERP )
ent->forcelink = true;
 
if ( forcelink )
{ // didn't have an update last message
VectorCopy (ent->msg_origins[0], ent->msg_origins[1]);
VectorCopy (ent->msg_origins[0], ent->origin);
VectorCopy (ent->msg_angles[0], ent->msg_angles[1]);
VectorCopy (ent->msg_angles[0], ent->angles);
ent->forcelink = true;
}
}
 
/*
==================
CL_ParseBaseline
==================
*/
void CL_ParseBaseline (entity_t *ent)
{
int i;
ent->baseline.modelindex = MSG_ReadByte ();
ent->baseline.frame = MSG_ReadByte ();
ent->baseline.colormap = MSG_ReadByte();
ent->baseline.skin = MSG_ReadByte();
for (i=0 ; i<3 ; i++)
{
ent->baseline.origin[i] = MSG_ReadCoord ();
ent->baseline.angles[i] = MSG_ReadAngle ();
}
}
 
 
/*
==================
CL_ParseClientdata
 
Server information pertaining to this client only
==================
*/
void CL_ParseClientdata (int bits)
{
int i, j;
if (bits & SU_VIEWHEIGHT)
cl.viewheight = MSG_ReadChar ();
else
cl.viewheight = DEFAULT_VIEWHEIGHT;
 
if (bits & SU_IDEALPITCH)
cl.idealpitch = MSG_ReadChar ();
else
cl.idealpitch = 0;
VectorCopy (cl.mvelocity[0], cl.mvelocity[1]);
for (i=0 ; i<3 ; i++)
{
if (bits & (SU_PUNCH1<<i) )
cl.punchangle[i] = MSG_ReadChar();
else
cl.punchangle[i] = 0;
if (bits & (SU_VELOCITY1<<i) )
cl.mvelocity[0][i] = MSG_ReadChar()*16;
else
cl.mvelocity[0][i] = 0;
}
 
// [always sent] if (bits & SU_ITEMS)
i = MSG_ReadLong ();
 
if (cl.items != i)
{ // set flash times
Sbar_Changed ();
for (j=0 ; j<32 ; j++)
if ( (i & (1<<j)) && !(cl.items & (1<<j)))
cl.item_gettime[j] = cl.time;
cl.items = i;
}
cl.onground = (bits & SU_ONGROUND) != 0;
cl.inwater = (bits & SU_INWATER) != 0;
 
if (bits & SU_WEAPONFRAME)
cl.stats[STAT_WEAPONFRAME] = MSG_ReadByte ();
else
cl.stats[STAT_WEAPONFRAME] = 0;
 
if (bits & SU_ARMOR)
i = MSG_ReadByte ();
else
i = 0;
if (cl.stats[STAT_ARMOR] != i)
{
cl.stats[STAT_ARMOR] = i;
Sbar_Changed ();
}
 
if (bits & SU_WEAPON)
i = MSG_ReadByte ();
else
i = 0;
if (cl.stats[STAT_WEAPON] != i)
{
cl.stats[STAT_WEAPON] = i;
Sbar_Changed ();
}
i = MSG_ReadShort ();
if (cl.stats[STAT_HEALTH] != i)
{
cl.stats[STAT_HEALTH] = i;
Sbar_Changed ();
}
 
i = MSG_ReadByte ();
if (cl.stats[STAT_AMMO] != i)
{
cl.stats[STAT_AMMO] = i;
Sbar_Changed ();
}
 
for (i=0 ; i<4 ; i++)
{
j = MSG_ReadByte ();
if (cl.stats[STAT_SHELLS+i] != j)
{
cl.stats[STAT_SHELLS+i] = j;
Sbar_Changed ();
}
}
 
i = MSG_ReadByte ();
 
if (standard_quake)
{
if (cl.stats[STAT_ACTIVEWEAPON] != i)
{
cl.stats[STAT_ACTIVEWEAPON] = i;
Sbar_Changed ();
}
}
else
{
if (cl.stats[STAT_ACTIVEWEAPON] != (1<<i))
{
cl.stats[STAT_ACTIVEWEAPON] = (1<<i);
Sbar_Changed ();
}
}
}
 
/*
=====================
CL_NewTranslation
=====================
*/
void CL_NewTranslation (int slot)
{
int i, j;
int top, bottom;
byte *dest, *source;
if (slot > cl.maxclients)
Sys_Error ("CL_NewTranslation: slot > cl.maxclients");
dest = cl.scores[slot].translations;
source = vid.colormap;
memcpy (dest, vid.colormap, sizeof(cl.scores[slot].translations));
top = cl.scores[slot].colors & 0xf0;
bottom = (cl.scores[slot].colors &15)<<4;
#ifdef GLQUAKE
R_TranslatePlayerSkin (slot);
#endif
 
for (i=0 ; i<VID_GRADES ; i++, dest += 256, source+=256)
{
if (top < 128) // the artists made some backwards ranges. sigh.
memcpy (dest + TOP_RANGE, source + top, 16);
else
for (j=0 ; j<16 ; j++)
dest[TOP_RANGE+j] = source[top+15-j];
if (bottom < 128)
memcpy (dest + BOTTOM_RANGE, source + bottom, 16);
else
for (j=0 ; j<16 ; j++)
dest[BOTTOM_RANGE+j] = source[bottom+15-j];
}
}
 
/*
=====================
CL_ParseStatic
=====================
*/
void CL_ParseStatic (void)
{
entity_t *ent;
int i;
i = cl.num_statics;
if (i >= MAX_STATIC_ENTITIES)
Host_Error ("Too many static entities");
ent = &cl_static_entities[i];
cl.num_statics++;
CL_ParseBaseline (ent);
 
// copy it to the current state
ent->model = cl.model_precache[ent->baseline.modelindex];
ent->frame = ent->baseline.frame;
ent->colormap = vid.colormap;
ent->skinnum = ent->baseline.skin;
ent->effects = ent->baseline.effects;
 
VectorCopy (ent->baseline.origin, ent->origin);
VectorCopy (ent->baseline.angles, ent->angles);
R_AddEfrags (ent);
}
 
/*
===================
CL_ParseStaticSound
===================
*/
void CL_ParseStaticSound (void)
{
vec3_t org;
int sound_num, vol, atten;
int i;
for (i=0 ; i<3 ; i++)
org[i] = MSG_ReadCoord ();
sound_num = MSG_ReadByte ();
vol = MSG_ReadByte ();
atten = MSG_ReadByte ();
S_StaticSound (cl.sound_precache[sound_num], org, vol, atten);
}
 
 
#define SHOWNET(x) if(cl_shownet.value==2)Con_Printf ("%3i:%s\n", msg_readcount-1, x);
 
/*
=====================
CL_ParseServerMessage
=====================
*/
void CL_ParseServerMessage (void)
{
int cmd;
int i;
//
// if recording demos, copy the message out
//
if (cl_shownet.value == 1)
Con_Printf ("%i ",net_message.cursize);
else if (cl_shownet.value == 2)
Con_Printf ("------------------\n");
cl.onground = false; // unless the server says otherwise
//
// parse the message
//
MSG_BeginReading ();
while (1)
{
if (msg_badread)
Host_Error ("CL_ParseServerMessage: Bad server message");
 
cmd = MSG_ReadByte ();
 
if (cmd == -1)
{
SHOWNET("END OF MESSAGE");
return; // end of message
}
 
// if the high bit of the command byte is set, it is a fast update
if (cmd & 128)
{
SHOWNET("fast update");
CL_ParseUpdate (cmd&127);
continue;
}
 
SHOWNET(svc_strings[cmd]);
// other commands
switch (cmd)
{
default:
Host_Error ("CL_ParseServerMessage: Illegible server message\n");
break;
case svc_nop:
// Con_Printf ("svc_nop\n");
break;
case svc_time:
cl.mtime[1] = cl.mtime[0];
cl.mtime[0] = MSG_ReadFloat ();
break;
case svc_clientdata:
i = MSG_ReadShort ();
CL_ParseClientdata (i);
break;
case svc_version:
i = MSG_ReadLong ();
if (i != PROTOCOL_VERSION)
Host_Error ("CL_ParseServerMessage: Server is protocol %i instead of %i\n", i, PROTOCOL_VERSION);
break;
case svc_disconnect:
Host_EndGame ("Server disconnected\n");
 
case svc_print:
Con_Printf ("%s", MSG_ReadString ());
break;
case svc_centerprint:
SCR_CenterPrint (MSG_ReadString ());
break;
case svc_stufftext:
Cbuf_AddText (MSG_ReadString ());
break;
case svc_damage:
V_ParseDamage ();
break;
case svc_serverinfo:
CL_ParseServerInfo ();
vid.recalc_refdef = true; // leave intermission full screen
break;
case svc_setangle:
for (i=0 ; i<3 ; i++)
cl.viewangles[i] = MSG_ReadAngle ();
break;
case svc_setview:
cl.viewentity = MSG_ReadShort ();
break;
case svc_lightstyle:
i = MSG_ReadByte ();
if (i >= MAX_LIGHTSTYLES)
Sys_Error ("svc_lightstyle > MAX_LIGHTSTYLES");
Q_strcpy (cl_lightstyle[i].map, MSG_ReadString());
cl_lightstyle[i].length = Q_strlen(cl_lightstyle[i].map);
break;
case svc_sound:
CL_ParseStartSoundPacket();
break;
case svc_stopsound:
i = MSG_ReadShort();
S_StopSound(i>>3, i&7);
break;
case svc_updatename:
Sbar_Changed ();
i = MSG_ReadByte ();
if (i >= cl.maxclients)
Host_Error ("CL_ParseServerMessage: svc_updatename > MAX_SCOREBOARD");
strcpy (cl.scores[i].name, MSG_ReadString ());
break;
case svc_updatefrags:
Sbar_Changed ();
i = MSG_ReadByte ();
if (i >= cl.maxclients)
Host_Error ("CL_ParseServerMessage: svc_updatefrags > MAX_SCOREBOARD");
cl.scores[i].frags = MSG_ReadShort ();
break;
 
case svc_updatecolors:
Sbar_Changed ();
i = MSG_ReadByte ();
if (i >= cl.maxclients)
Host_Error ("CL_ParseServerMessage: svc_updatecolors > MAX_SCOREBOARD");
cl.scores[i].colors = MSG_ReadByte ();
CL_NewTranslation (i);
break;
case svc_particle:
R_ParseParticleEffect ();
break;
 
case svc_spawnbaseline:
i = MSG_ReadShort ();
// must use CL_EntityNum() to force cl.num_entities up
CL_ParseBaseline (CL_EntityNum(i));
break;
case svc_spawnstatic:
CL_ParseStatic ();
break;
case svc_temp_entity:
CL_ParseTEnt ();
break;
 
case svc_setpause:
{
cl.paused = MSG_ReadByte ();
 
if (cl.paused)
{
CDAudio_Pause ();
#ifdef _WIN32
VID_HandlePause (true);
#endif
}
else
{
CDAudio_Resume ();
#ifdef _WIN32
VID_HandlePause (false);
#endif
}
}
break;
case svc_signonnum:
i = MSG_ReadByte ();
if (i <= cls.signon)
Host_Error ("Received signon %i when at %i", i, cls.signon);
cls.signon = i;
CL_SignonReply ();
break;
 
case svc_killedmonster:
cl.stats[STAT_MONSTERS]++;
break;
 
case svc_foundsecret:
cl.stats[STAT_SECRETS]++;
break;
 
case svc_updatestat:
i = MSG_ReadByte ();
if (i < 0 || i >= MAX_CL_STATS)
Sys_Error ("svc_updatestat: %i is invalid", i);
cl.stats[i] = MSG_ReadLong ();;
break;
case svc_spawnstaticsound:
CL_ParseStaticSound ();
break;
 
case svc_cdtrack:
cl.cdtrack = MSG_ReadByte ();
cl.looptrack = MSG_ReadByte ();
if ( (cls.demoplayback || cls.demorecording) && (cls.forcetrack != -1) )
CDAudio_Play ((byte)cls.forcetrack, true);
else
CDAudio_Play ((byte)cl.cdtrack, true);
break;
 
case svc_intermission:
cl.intermission = 1;
cl.completed_time = cl.time;
vid.recalc_refdef = true; // go to full screen
break;
 
case svc_finale:
cl.intermission = 2;
cl.completed_time = cl.time;
vid.recalc_refdef = true; // go to full screen
SCR_CenterPrint (MSG_ReadString ());
break;
 
case svc_cutscene:
cl.intermission = 3;
cl.completed_time = cl.time;
vid.recalc_refdef = true; // go to full screen
SCR_CenterPrint (MSG_ReadString ());
break;
 
case svc_sellscreen:
Cmd_ExecuteString ("help", src_command);
break;
}
}
}
 
/contrib/other/sdlquake-1.0.9/cl_tent.c
0,0 → 1,394
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
// cl_tent.c -- client side temporary entities
 
#include "quakedef.h"
 
int num_temp_entities;
entity_t cl_temp_entities[MAX_TEMP_ENTITIES];
beam_t cl_beams[MAX_BEAMS];
 
sfx_t *cl_sfx_wizhit;
sfx_t *cl_sfx_knighthit;
sfx_t *cl_sfx_tink1;
sfx_t *cl_sfx_ric1;
sfx_t *cl_sfx_ric2;
sfx_t *cl_sfx_ric3;
sfx_t *cl_sfx_r_exp3;
#ifdef QUAKE2
sfx_t *cl_sfx_imp;
sfx_t *cl_sfx_rail;
#endif
 
/*
=================
CL_ParseTEnt
=================
*/
void CL_InitTEnts (void)
{
cl_sfx_wizhit = S_PrecacheSound ("wizard/hit.wav");
cl_sfx_knighthit = S_PrecacheSound ("hknight/hit.wav");
cl_sfx_tink1 = S_PrecacheSound ("weapons/tink1.wav");
cl_sfx_ric1 = S_PrecacheSound ("weapons/ric1.wav");
cl_sfx_ric2 = S_PrecacheSound ("weapons/ric2.wav");
cl_sfx_ric3 = S_PrecacheSound ("weapons/ric3.wav");
cl_sfx_r_exp3 = S_PrecacheSound ("weapons/r_exp3.wav");
#ifdef QUAKE2
cl_sfx_imp = S_PrecacheSound ("shambler/sattck1.wav");
cl_sfx_rail = S_PrecacheSound ("weapons/lstart.wav");
#endif
}
 
/*
=================
CL_ParseBeam
=================
*/
void CL_ParseBeam (model_t *m)
{
int ent;
vec3_t start, end;
beam_t *b;
int i;
ent = MSG_ReadShort ();
start[0] = MSG_ReadCoord ();
start[1] = MSG_ReadCoord ();
start[2] = MSG_ReadCoord ();
end[0] = MSG_ReadCoord ();
end[1] = MSG_ReadCoord ();
end[2] = MSG_ReadCoord ();
 
// override any beam with the same entity
for (i=0, b=cl_beams ; i< MAX_BEAMS ; i++, b++)
if (b->entity == ent)
{
b->entity = ent;
b->model = m;
b->endtime = cl.time + 0.2;
VectorCopy (start, b->start);
VectorCopy (end, b->end);
return;
}
 
// find a free beam
for (i=0, b=cl_beams ; i< MAX_BEAMS ; i++, b++)
{
if (!b->model || b->endtime < cl.time)
{
b->entity = ent;
b->model = m;
b->endtime = cl.time + 0.2;
VectorCopy (start, b->start);
VectorCopy (end, b->end);
return;
}
}
Con_Printf ("beam list overflow!\n");
}
 
/*
=================
CL_ParseTEnt
=================
*/
void CL_ParseTEnt (void)
{
int type;
vec3_t pos;
#ifdef QUAKE2
vec3_t endpos;
#endif
dlight_t *dl;
int rnd;
int colorStart, colorLength;
 
type = MSG_ReadByte ();
switch (type)
{
case TE_WIZSPIKE: // spike hitting wall
pos[0] = MSG_ReadCoord ();
pos[1] = MSG_ReadCoord ();
pos[2] = MSG_ReadCoord ();
R_RunParticleEffect (pos, vec3_origin, 20, 30);
S_StartSound (-1, 0, cl_sfx_wizhit, pos, 1, 1);
break;
case TE_KNIGHTSPIKE: // spike hitting wall
pos[0] = MSG_ReadCoord ();
pos[1] = MSG_ReadCoord ();
pos[2] = MSG_ReadCoord ();
R_RunParticleEffect (pos, vec3_origin, 226, 20);
S_StartSound (-1, 0, cl_sfx_knighthit, pos, 1, 1);
break;
case TE_SPIKE: // spike hitting wall
pos[0] = MSG_ReadCoord ();
pos[1] = MSG_ReadCoord ();
pos[2] = MSG_ReadCoord ();
#ifdef GLTEST
Test_Spawn (pos);
#else
R_RunParticleEffect (pos, vec3_origin, 0, 10);
#endif
if ( rand() % 5 )
S_StartSound (-1, 0, cl_sfx_tink1, pos, 1, 1);
else
{
rnd = rand() & 3;
if (rnd == 1)
S_StartSound (-1, 0, cl_sfx_ric1, pos, 1, 1);
else if (rnd == 2)
S_StartSound (-1, 0, cl_sfx_ric2, pos, 1, 1);
else
S_StartSound (-1, 0, cl_sfx_ric3, pos, 1, 1);
}
break;
case TE_SUPERSPIKE: // super spike hitting wall
pos[0] = MSG_ReadCoord ();
pos[1] = MSG_ReadCoord ();
pos[2] = MSG_ReadCoord ();
R_RunParticleEffect (pos, vec3_origin, 0, 20);
 
if ( rand() % 5 )
S_StartSound (-1, 0, cl_sfx_tink1, pos, 1, 1);
else
{
rnd = rand() & 3;
if (rnd == 1)
S_StartSound (-1, 0, cl_sfx_ric1, pos, 1, 1);
else if (rnd == 2)
S_StartSound (-1, 0, cl_sfx_ric2, pos, 1, 1);
else
S_StartSound (-1, 0, cl_sfx_ric3, pos, 1, 1);
}
break;
case TE_GUNSHOT: // bullet hitting wall
pos[0] = MSG_ReadCoord ();
pos[1] = MSG_ReadCoord ();
pos[2] = MSG_ReadCoord ();
R_RunParticleEffect (pos, vec3_origin, 0, 20);
break;
case TE_EXPLOSION: // rocket explosion
pos[0] = MSG_ReadCoord ();
pos[1] = MSG_ReadCoord ();
pos[2] = MSG_ReadCoord ();
R_ParticleExplosion (pos);
dl = CL_AllocDlight (0);
VectorCopy (pos, dl->origin);
dl->radius = 350;
dl->die = cl.time + 0.5;
dl->decay = 300;
S_StartSound (-1, 0, cl_sfx_r_exp3, pos, 1, 1);
break;
case TE_TAREXPLOSION: // tarbaby explosion
pos[0] = MSG_ReadCoord ();
pos[1] = MSG_ReadCoord ();
pos[2] = MSG_ReadCoord ();
R_BlobExplosion (pos);
 
S_StartSound (-1, 0, cl_sfx_r_exp3, pos, 1, 1);
break;
 
case TE_LIGHTNING1: // lightning bolts
CL_ParseBeam (Mod_ForName("progs/bolt.mdl", true));
break;
case TE_LIGHTNING2: // lightning bolts
CL_ParseBeam (Mod_ForName("progs/bolt2.mdl", true));
break;
case TE_LIGHTNING3: // lightning bolts
CL_ParseBeam (Mod_ForName("progs/bolt3.mdl", true));
break;
// PGM 01/21/97
case TE_BEAM: // grappling hook beam
CL_ParseBeam (Mod_ForName("progs/beam.mdl", true));
break;
// PGM 01/21/97
 
case TE_LAVASPLASH:
pos[0] = MSG_ReadCoord ();
pos[1] = MSG_ReadCoord ();
pos[2] = MSG_ReadCoord ();
R_LavaSplash (pos);
break;
case TE_TELEPORT:
pos[0] = MSG_ReadCoord ();
pos[1] = MSG_ReadCoord ();
pos[2] = MSG_ReadCoord ();
R_TeleportSplash (pos);
break;
case TE_EXPLOSION2: // color mapped explosion
pos[0] = MSG_ReadCoord ();
pos[1] = MSG_ReadCoord ();
pos[2] = MSG_ReadCoord ();
colorStart = MSG_ReadByte ();
colorLength = MSG_ReadByte ();
R_ParticleExplosion2 (pos, colorStart, colorLength);
dl = CL_AllocDlight (0);
VectorCopy (pos, dl->origin);
dl->radius = 350;
dl->die = cl.time + 0.5;
dl->decay = 300;
S_StartSound (-1, 0, cl_sfx_r_exp3, pos, 1, 1);
break;
#ifdef QUAKE2
case TE_IMPLOSION:
pos[0] = MSG_ReadCoord ();
pos[1] = MSG_ReadCoord ();
pos[2] = MSG_ReadCoord ();
S_StartSound (-1, 0, cl_sfx_imp, pos, 1, 1);
break;
 
case TE_RAILTRAIL:
pos[0] = MSG_ReadCoord ();
pos[1] = MSG_ReadCoord ();
pos[2] = MSG_ReadCoord ();
endpos[0] = MSG_ReadCoord ();
endpos[1] = MSG_ReadCoord ();
endpos[2] = MSG_ReadCoord ();
S_StartSound (-1, 0, cl_sfx_rail, pos, 1, 1);
S_StartSound (-1, 1, cl_sfx_r_exp3, endpos, 1, 1);
R_RocketTrail (pos, endpos, 0+128);
R_ParticleExplosion (endpos);
dl = CL_AllocDlight (-1);
VectorCopy (endpos, dl->origin);
dl->radius = 350;
dl->die = cl.time + 0.5;
dl->decay = 300;
break;
#endif
 
default:
Sys_Error ("CL_ParseTEnt: bad type");
}
}
 
 
/*
=================
CL_NewTempEntity
=================
*/
entity_t *CL_NewTempEntity (void)
{
entity_t *ent;
 
if (cl_numvisedicts == MAX_VISEDICTS)
return NULL;
if (num_temp_entities == MAX_TEMP_ENTITIES)
return NULL;
ent = &cl_temp_entities[num_temp_entities];
memset (ent, 0, sizeof(*ent));
num_temp_entities++;
cl_visedicts[cl_numvisedicts] = ent;
cl_numvisedicts++;
 
ent->colormap = vid.colormap;
return ent;
}
 
 
/*
=================
CL_UpdateTEnts
=================
*/
void CL_UpdateTEnts (void)
{
int i;
beam_t *b;
vec3_t dist, org;
float d;
entity_t *ent;
float yaw, pitch;
float forward;
 
num_temp_entities = 0;
 
// update lightning
for (i=0, b=cl_beams ; i< MAX_BEAMS ; i++, b++)
{
if (!b->model || b->endtime < cl.time)
continue;
 
// if coming from the player, update the start position
if (b->entity == cl.viewentity)
{
VectorCopy (cl_entities[cl.viewentity].origin, b->start);
}
 
// calculate pitch and yaw
VectorSubtract (b->end, b->start, dist);
 
if (dist[1] == 0 && dist[0] == 0)
{
yaw = 0;
if (dist[2] > 0)
pitch = 90;
else
pitch = 270;
}
else
{
yaw = (int) (atan2(dist[1], dist[0]) * 180 / M_PI);
if (yaw < 0)
yaw += 360;
forward = sqrt (dist[0]*dist[0] + dist[1]*dist[1]);
pitch = (int) (atan2(dist[2], forward) * 180 / M_PI);
if (pitch < 0)
pitch += 360;
}
 
// add new entities for the lightning
VectorCopy (b->start, org);
d = VectorNormalize(dist);
while (d > 0)
{
ent = CL_NewTempEntity ();
if (!ent)
return;
VectorCopy (org, ent->origin);
ent->model = b->model;
ent->angles[0] = pitch;
ent->angles[1] = yaw;
ent->angles[2] = rand()%360;
 
for (i=0 ; i<3 ; i++)
org[i] += dist[i]*30;
d -= 30;
}
}
}
 
 
/contrib/other/sdlquake-1.0.9/clean.bat
0,0 → 1,18
rmdir /s /q debug
rmdir /s /q release
rmdir /s /q debug_gl
rmdir /s /q release_gl
 
rmdir /s /q gas2masm\debug
rmdir /s /q gas2masm\release
 
del gas2masm\gas2masm.opt
del gas2masm\gas2masm.plg
del gas2masm\gas2masm.ncb
del gas2masm\gas2masm.stt
 
del WinQuake.opt
del WinQuake.plg
del WinQuake.ncb
del WinQuake.stt
 
/contrib/other/sdlquake-1.0.9/client.h
0,0 → 1,375
/*
Copyright (C) 1996-1997 Id Software, Inc.
 
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
See the GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
*/
// client.h
 
typedef struct
{
vec3_t viewangles;
 
// intended velocities
float forwardmove;
float sidemove;
float upmove;
#ifdef QUAKE2
byte lightlevel;
#endif
} usercmd_t;
 
typedef struct
{
int length;
char map[MAX_STYLESTRING];
} lightstyle_t;
 
typedef struct
{
char name[MAX_SCOREBOARDNAME];
float entertime;
int frags;
int colors; // two 4 bit fields
byte translations[VID_GRADES*256];
} scoreboard_t;
 
typedef struct
{
int destcolor[3];
int percent; // 0-256
} cshift_t;
 
#define CSHIFT_CONTENTS 0
#define CSHIFT_DAMAGE 1
#define CSHIFT_BONUS 2
#define CSHIFT_POWERUP 3
#define NUM_CSHIFTS 4
 
#define NAME_LENGTH 64
 
 
//
// client_state_t should hold all pieces of the client state
//
 
#define SIGNONS 4 // signon messages to receive before connected
 
#define MAX_DLIGHTS 32
typedef struct
{
vec3_t origin;
float radius;
float die; // stop lighting after this time
float decay; // drop this each second
float minlight; // don't add when contributing less
int key;
#ifdef QUAKE2
qboolean dark; // subtracts light instead of adding
#endif
} dlight_t;
 
 
#define MAX_BEAMS 24
typedef struct
{
int entity;
struct model_s *model;
float endtime;
vec3_t start, end;
} beam_t;
 
#define MAX_EFRAGS 640
 
#define MAX_MAPSTRING 2048
#define MAX_DEMOS 8
#define MAX_DEMONAME 16
 
typedef enum {
ca_dedicated, // a dedicated server with no ability to start a client
ca_disconnected, // full screen console with no connection
ca_connected // valid netcon, talking to a server
} cactive_t;
 
//
// the client_static_t structure is persistant through an arbitrary number
// of server connections
//
typedef struct
{
cactive_t state;
 
// personalization data sent to server
char mapstring[MAX_QPATH];
char spawnparms[MAX_MAPSTRING]; // to restart a level
 
// demo loop control
int demonum; // -1 = don't play demos
char demos[MAX_DEMOS][MAX_DEMONAME]; // when not playing
 
// demo recording info must be here, because record is started before
// entering a map (and clearing client_state_t)
qboolean demorecording;
qboolean demoplayback;
qboolean timedemo;
int forcetrack; // -1 = use normal cd track
FILE *demofile;
int td_lastframe; // to meter out one message a frame
int td_startframe; // host_framecount at start
float td_starttime; // realtime at second frame of timedemo
 
 
// connection information
int signon; // 0 to SIGNONS
struct qsocket_s *netcon;
sizebuf_t message; // writing buffer to send to server
} client_static_t;
 
extern client_static_t cls;
 
//
// the client_state_t structure is wiped completely at every
// server signon
//
typedef struct
{
int movemessages; // since connecting to this server
// throw out the first couple, so the player
// doesn't accidentally do something the
// first frame
usercmd_t cmd; // last command sent to the server
 
// information for local display
int stats[MAX_CL_STATS]; // health, etc
int items; // inventory bit flags
float item_gettime[32]; // cl.time of aquiring item, for blinking
float faceanimtime; // use anim frame if cl.time < this
 
cshift_t cshifts[NUM_CSHIFTS]; // color shifts for damage, powerups
cshift_t prev_cshifts[NUM_CSHIFTS]; // and content types
 
// the client maintains its own idea of view angles, which are
// sent to the server each frame. The server sets punchangle when
// the view is temporarliy offset, and an angle reset commands at the start
// of each level and after teleporting.
vec3_t mviewangles[2]; // during demo playback viewangles is lerped
// between these
vec3_t viewangles;
vec3_t mvelocity[2]; // update by server, used for lean+bob
// (0 is newest)
vec3_t velocity; // lerped between mvelocity[0] and [1]
 
vec3_t punchangle; // temporary offset
// pitch drifting vars
float idealpitch;
float pitchvel;
qboolean nodrift;
float driftmove;
double laststop;
 
float viewheight;
float crouch; // local amount for smoothing stepups
 
qboolean paused; // send over by server
qboolean onground;
qboolean inwater;
int intermission; // don't change view angle, full screen, etc
int completed_time; // latched at intermission start
double mtime[2]; // the timestamp of last two messages
double time; // clients view of time, should be between
// servertime and oldservertime to generate
// a lerp point for other data
double oldtime; // previous cl.time, time-oldtime is used
// to decay light values and smooth step ups
 
float last_received_message; // (realtime) for net trouble icon
 
//
// information that is static for the entire time connected to a server
//
struct model_s *model_precache[MAX_MODELS];
struct sfx_s *sound_precache[MAX_SOUNDS];
 
char levelname[40]; // for display on solo scoreboard
int viewentity; // cl_entitites[cl.viewentity] = player
int maxclients;
int gametype;
 
// refresh related state
struct model_s *worldmodel; // cl_entitites[0].model
struct efrag_s *free_efrags;
int num_entities; // held in cl_entities array
int num_statics; // held in cl_staticentities array
entity_t viewent; // the gun model
 
int cdtrack, looptrack; // cd audio
 
// frag scoreboard
scoreboard_t *scores; // [cl.maxclients]
 
#ifdef QUAKE2
// light level at player's position including dlights
// this is sent back to the server each frame
// architectually ugly but it works
int light_level;
#endif
} client_state_t;
 
 
//
// cvars
//
extern cvar_t cl_name;
extern cvar_t cl_color;