# set this to "no" if you don't want this file to be overwritten
UPDATE_CONF=yes

# tune these for your setup & compile options
# IMPORTANT: if you are using a linker that needs libraries in correct order, make sure you list EYE_CANDY before PNG_SCREENSHOT if you use both

### Current release default options ###
FEATURES += CLUSTER_INSIDES		# Group objects into separate clusters for clipping on inside maps
FEATURES += CUSTOM_LOOK			# allows you to customize your look.
FEATURES += CUSTOM_UPDATE		# allows autoupdating of custom look information
FEATURES += FUZZY_PATHS			# Makes Tab Map walking not always follow exaclty the same path
FEATURES += NEW_SOUND			# Enables extended sound effects system
FEATURES += PNG_SCREENSHOT		# make screenshots in W3C's PNG format in game, requires libpng
FEATURES += USE_INLINE			# enable some optimizations to use inline functions instead of pure function calls
# new for 1.9.0 release
FEATURES += BANDWIDTH_SAVINGS		# enable bandwidth saving changes for message protocol
# new for 1.9.2 release
FEATURES += ANIMATION_SCALING		# Adds support for animation scaling, depending on the number of animation commands in the actor queue.
FEATURES += FSAA			# Adds support for full screen anti-aliasing using OpenGL multisampling.
# new for 1.9.3 release
FEATURES += FASTER_MAP_LOAD		# Enables optimizations to speed up the process of switching between maps
FEATURES += FASTER_STARTUP		# An attempt to reduce the startup time of EL somewhat
FEATURES += MIDDLE_MOUSE_PASTE	# Paste using the middle mouse button from the primary buffer on X systems
# new for 1.9.4 release
FEATURES += NEW_EYES			# Support for different eye colors, needs new data files
# proposed for next release
FEATURES += NEW_CURSOR			# New coloured cursors made by Emajekral (Experimental).  An old unused feature. Derive cursor2.dss from http://users.on.net/~gingerman/sky_cursor-textures.zip (cursor2.bmp + alpha).


# Development options targetting at most 1.9.6
FEATURES += JSON_FILES			# switch existing binary user config files to JSON format
FEATURES += TTF                 # Add ability to use True Type system fonts
FEATURES += USE_SSL             # Encrypt the traffic with the server.
FEATURES += PACKET_COMPRESSION  # Add support for compressed data packets from the proxy server

### Testing options (these options are possible for the next release and should be tested) ###
#FEATURES += ANTI_ALIAS			# allows to enable/disable anti-aliasing in el.ini
#FEATURES += DYNAMIC_ANIMATIONS		# (appears broken) Synchronizes animation to FPS instead of a fixed timer
#FEATURES += EXT_ACTOR_DICT		# Removes remaining hard-coded actor def dictionaries - requires updated actor defs files (http://el.grug.redirectme.net/actor_defs.zip)
#FEATURES += NEW_ALPHA			# (undocumented)
#FEATURES += USE_SIMD			# Enables usage of simd instructions

### Machine specific options (fixes or performance enhancements) ###
#FEATURES += EL_BIG_ENDIAN		# Enable big-endian code (automatically detected for OSX)
#FEATURES += NO_PF_MACRO		# Use a function instead of a macro for pf_get_tile()
#FEATURES += SIMPLE_LOD			# enable a simplistic distance culling to improve performance
#FEATURES += SOUND_FORK_BUGFIX	# needed for current linux static build to prevent crash when forking in url.c after F2 press and sound/music enabled
#FEATURES += USE_ALGETSOURCEI_AL_BUFFER	# disable to workaround issue with newer openal versions (also works on older versions), enable to restore original usage of alGetSourcei(pSource->source, AL_BUFFER, &buffer) for sound

### Debug options ###
#FEATURES += ADDRSANITISER      # Enable the gcc address sanitisation options to do run-time checking.
#FEATURES += CONTEXT_MENUS_TEST		# Enable "#cmtest" command to help test/demo the context menu code
#FEATURES += DEBUG			# (undocumented)
#FEATURES += DEBUG_XML			# Enables missing (optional) XML string property messages
#FEATURES += DEBUG_POINT_PARTICLES	# (undocumented)
#FEATURES += DEBUG_TIME			# Fakes the acceleration of time for use in debugging shadows and the like.
#FEATURES += DEBUG_MAP_SOUND		# Adds (some??) map boundary areas to tab maps and additional logging to stdout
#FEATURES += ECDEBUGWIN			# press ctrl-alt-c to open the Eye Candy debug window: trigger most effects without casting spells or server side events
#FEATURES += EXTRA_DEBUG		# (undocumented)
#FEATURES += MEMORY_DEBUG		# gather information about memory allocation and freeing
#FEATURES += MISSILES_DEBUG		# Enables debug for missiles feature. It will create a file missiles_log.txt file in your settings directory.
#FEATURES += MUTEX_DEBUG		# (undocumented)
#FEATURES += OPENGL_TRACE		# make far more frequent checks for OpenGL errors (requires -DDEBUG to be of any use). Will make error_log.txt a lot larger.
#FEATURES += TIMER_CHECK		# (undocumented)
#FEATURES += _EXTRA_SOUND_DEBUG		# Enable debug for sound effects

### Other options (Experimental, unfinished, defunct or otherwise unknown) ###
#FEATURES += PAWN			# Experimental, not for release, will need server support to function properly. This *will* eat your cat. You've been warned. Enables the Pawn abstract machine.
#FEATURES += UID			# use unique ID sent from server for custom looks. (INCOMPLETE)
#FEATURES += USE_ACTORS_OPTIMIZER	# Enables actor optimizations
#FEATURES += WRITE_XML			# dangerous to use, will wipe out some XML files that are part of the main game download



PLATFORM=-march=native
XDIR=-L/usr/X11R6/lib
CWARN=-Wall -Wdeclaration-after-statement -W -Wno-unused-parameter -Wno-sign-compare
# -Wno-pointer-sign -Wno-sign-compare -Werror
CXXWARN=-std=c++11 -Wall -W -Wno-unused-parameter -Wno-sign-compare -Wno-cast-function-type
# -Wno-sign-compare -Werror

## These needed to be adjusted on a per system basis based on compile options & library versions

## These 2 lines should be uncommented if you used Emajekral's Windows compilation how-to (adjust them if required)
#EXTRA_LIBS=-lstdc++
#EXTRA_INCLUDES=-IC:\\Dev-Cpp\\Include\\SDL2

## These are the originally listed settings, uncomment them if you need them
#EXTRA_INCLUDES=-IC:\\Programme\\Dev-Cpp\\Include
#EXTRA_LIBS=-lz
#EXTRA_STATICLIBS=libs/zlib.a

CC=gcc
CXX=g++
LINK=gcc
