Files
illusion-arena-engine/Makefile.OpenArena
sago007 4113d07dee The engine is now compileable with a MXE environment.
Windows version can be compiled with: PLATFORM=mingw32 ARCH=x86 CC=i686-w64-mingw32.static-gcc WINDRES=i686-w64-mingw32.static-windres LD=i686-w64-mingw32.static-ld make USE_CODEC_XMP=0 USE_CURL=1

XMP can be enabled if you have compiled the libxmp. I have that in an image that I'll use for builds.
2016-07-09 11:09:42 +02:00

79 lines
1.9 KiB
Makefile

# Avoid making updates to this file unless you want to change defaults.
# Create a Makefile.local which is ignored by git for your local overrides
# that you don't want committed to git.
USE_GIT =0
# Defaults for OpenArena. You shouldn't need to modify this section
# This is only the client/server engine so we don't build the QVM here.
BUILD_STANDALONE=1
BUILD_CLIENT=1
BUILD_SERVER=1
BUILD_GAME_SO=0
BUILD_GAME_QVM=0
BUILD_BASEGAME=0
BUILD_MISSIONPACK=0
BASEGAME=baseoa
# VERSION=1.36+0.8.8
VERSION=3.0.0a
# OpenArena doesn't use opus yet
USE_CODEC_VORBIS=1
USE_CODEC_OPUS=0
ifndef USE_CODEC_XMP
USE_CODEC_XMP=1
endif
# FLTO Test
OPTIMIZE += -flto
# Can't use CURL on my system atm
ifndef USE_CURL
USE_CURL=0
endif
# This doesn't work with OpenArena yet
BUILD_RENDERER_OPENGL2=0
# You can disable the renderer libraries and build in the OA renderer by default
USE_RENDERER_DLOPEN=0
USE_CONSOLE_WINDOW=1 # use an early console window (WIN32 only)
# renderer_oa - This causes compiling issues on Linux and does not work yet.
USE_FALLBACK_GLSL=0
# renderer_oa - Whether to compile with GLSL support on certain features or not. for debugging!? Porting?!
GLSL_POSTPROCESSING =1 # for r_ntsc/leifx/anime/retroAA/palletize/postprocess
GLSL_TEXTURES =1 # for shaders on models, leifxdither, etc
GLSL_BACKEND =1 # for the entire backend.
# You can change these although you probably don't need to
CLIENTBIN=openarena
SERVERBIN=oa_ded
COPYDIR=/usr/local/games/openarena
# Cross compiling: 64-bit Windows
# PLATFORM=mingw32
# ARCH=x86_64
# USE_CODEC_VORBIS=0
#
# Cross compiling: 32-bit Windows
# PLATFORM=mingw32
# ARCH=x86
# USE_CODEC_VORBIS=0
# DEBUG_CFLAGS=-ggdb -O0
# You normally pass these on the command line (e.g. make V=1)
# rather than setting them for all builds.
#
# Verbose build
# V=1
#
# Build a zip -r9 file or Mac OSX release zip (make-macosx-app.sh)
# ARCHIVE=1