ioef/code
Simon McVittie 2a71948f21 build: define ARCH_STRING in Makefile on Linux and other GNU platforms
GNU platforms (Linux, kFreeBSD, Hurd) have endian.h to determine
endianness, so all architectures except x86_64 are in fact treated
identically, except that their ARCH_STRING is different.
The ARCH_STRING must always be identical to the ARCH from the Makefile,
otherwise the engine will not find its cgame, game and ui plugins
under their expected names and startup will fail. If we pass it in
from the Makefile, then an identical value is guaranteed, and we can
get rid of an increasingly long list of defined(__some_cpu__) tests.

The one remaining quirk is that we test __x86_64__ to determine
whether to define idx64; I've kept that, but separated it from
the ARCH_STRING.

On non-Linux platforms we only support a few architectures anyway,
so keeping the list up to date is less of a burden; *BSD porters
could probably use the same technique to get support for lots of
architectures with little effort, but I have not done that here,
because I cannot test it.

Windows must continue to support preprocessor-based architecture tests
in any case, so that the MSVC solutions (which do not use the Makefile)
can continue to work. However, Windows only runs on a few CPU families,
so this shouldn't be a significant burden in practice.

When cross-compiling, the tools are compiled for the build architecture
(COMPILE_PLATFORM, COMPILE_ARCH) rather than the host architecture
(PLATFORM, ARCH), so define ARCH_STRING to COMPILE_ARCH on a GNU
COMPILE_PLATFORM.
2015-07-14 22:51:57 +01:00
..
AL 5882 - Update OpenAL Headers to OpenAL Soft 1.15.1 2013-02-17 07:34:41 -06:00
asm Remove unused fpucw from snapvector.asm 2015-07-09 18:35:45 -05:00
botlib Fix abs() being used for long int in l_precomp.c 2015-06-28 18:13:06 -05:00
cgame Fix CGame CG_WaterLevel() comparisons 2015-07-04 05:53:29 -05:00
client Fix abs() being used for float in cl_input.c 2015-06-28 18:27:09 -05:00
game Save bot accompany distance across map change or restart 2015-04-30 17:19:00 -05:00
jpeg-8c Mark JPEG lib changes, file provided by Simon McVittie 2012-07-01 18:07:56 +00:00
libcurl-7.35.0/curl Fix building with curl on Linux PPC and Sparc 2014-09-09 13:18:28 -04:00
libogg-1.3.1 Upgrade libogg 1.3.0 to 1.3.1 2014-02-08 03:38:01 +00:00
libs Rebuilt MSVC SDL 1.2.15 Revision 8040 import libs 2014-04-16 15:08:21 -05:00
libspeex Bug 5094 - Code cleanup, patch by Zack Middleton and DevHC. Fixes unused-but-set gcc warnings 2011-07-29 12:27:00 +00:00
libvorbis-1.3.4 There have been 0 days since the last compiler warning 2014-08-27 12:40:45 +01:00
null Remove unused functions from null_main.c and null_input.c 2014-08-27 20:35:16 -05:00
opus-1.1 Fix a few warnings 2014-08-30 17:29:23 +01:00
opusfile-0.5 Fix a few warnings 2014-08-30 17:29:23 +01:00
q3_ui Make barrel/flash model name buffer safe 2015-01-12 22:35:20 -06:00
qcommon build: define ARCH_STRING in Makefile on Linux and other GNU platforms 2015-07-14 22:51:57 +01:00
renderercommon Move image load function prototypes to tr_common.h 2015-06-12 14:22:37 -05:00
renderergl1 Fix OpenGL2 ignoring last light grid point on each axis 2015-07-09 22:42:01 -05:00
renderergl2 Fix OpenGL2 ignoring last light grid point on each axis 2015-07-09 22:42:01 -05:00
sdl Fix variable declaration for C89 compilers 2015-06-28 16:29:10 -05:00
SDL2/include Update SDL2 to 2.0.3 2014-03-24 19:13:56 -04:00
server Set bsp_trace_t::surface.flags to surfaceFlags in server and game 2015-02-18 15:17:57 -06:00
sys Fix Windows file list extension check 2015-07-04 20:46:03 -05:00
tools Merge pull request #108 from Pan7/memmove 2015-06-18 13:13:25 -05:00
ui Make barrel/flash model name buffer safe 2015-01-12 22:35:20 -06:00
zlib drop some useless return statements 2013-05-30 15:43:21 -05:00