2015-01-22 02:58:04 +00:00
|
|
|
HAVE_LIBRETRODB = 1
|
|
|
|
|
|
|
|
ifeq ($(HAVE_LIBRETRODB), 1)
|
|
|
|
DEFINES += -DHAVE_LIBRETRODB
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:15:41 +00:00
|
|
|
ifeq ($(HAVE_FBO), 1)
|
|
|
|
DEFINES += -DHAVE_FBO
|
|
|
|
endif
|
|
|
|
|
2014-09-14 01:22:04 +00:00
|
|
|
ifeq ($(HAVE_DYLIB), 1)
|
|
|
|
DEFINES += -DHAVE_DYLIB
|
2015-04-08 05:58:59 +00:00
|
|
|
JOYCONFIG_LIBS += $(DYLIB_LIB)
|
2014-09-14 01:22:04 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(SCALER_NO_SIMD), 1)
|
|
|
|
DEFINES += -DSCALER_NO_SIMD
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:15:41 +00:00
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_PRESERVE_DYLIB),1)
|
|
|
|
DEFINES += -DNO_DLCLOSE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(GL_DEBUG), 1)
|
|
|
|
CFLAGS += -DGL_DEBUG
|
|
|
|
CXXFLAGS += -DGL_DEBUG
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_HARD_FLOAT), 1)
|
|
|
|
DEFINES += -mfloat-abi=hard
|
|
|
|
endif
|
|
|
|
|
2014-09-14 02:37:57 +00:00
|
|
|
ifeq ($(TDM_GCC),)
|
|
|
|
LDCXXFLAGS += -static-libstdc++
|
|
|
|
endif
|
|
|
|
|
2015-02-18 23:04:03 +00:00
|
|
|
CFLAGS += -I./libretro-common/include
|
2014-10-21 03:05:52 +00:00
|
|
|
|
2014-09-14 02:52:44 +00:00
|
|
|
# Switches
|
|
|
|
|
|
|
|
# Extra menu drivers if GL supported
|
|
|
|
ifeq ($(HAVE_OPENGL), 1)
|
|
|
|
ifeq ($(HAVE_RGUI), 1)
|
|
|
|
HAVE_GLUI = 1
|
2014-10-08 23:21:22 +00:00
|
|
|
HAVE_XMB = 1
|
2014-09-14 02:52:44 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2014-09-14 01:38:36 +00:00
|
|
|
# System
|
|
|
|
|
|
|
|
ifneq ($(findstring BSD,$(OS)),)
|
|
|
|
BSD_LOCAL_INC += -I/usr/local/include
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(findstring Darwin,$(OS)),)
|
|
|
|
OSX := 1
|
|
|
|
LIBS += -framework AppKit
|
2015-04-19 13:53:59 +00:00
|
|
|
JOYCONFIG_LIBS += -framework CoreFoundation
|
2014-09-14 01:38:36 +00:00
|
|
|
else
|
|
|
|
OSX := 0
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(findstring Linux,$(OS)),)
|
|
|
|
LIBS += -lrt
|
2015-04-13 12:40:12 +00:00
|
|
|
JOYCONFIG_LIBS += -lrt -lpthread
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += input/drivers/linuxraw_input.o \
|
2015-04-18 17:12:14 +00:00
|
|
|
input/drivers_joypad/linuxraw_joypad.o \
|
|
|
|
frontend/drivers/platform_linux.o
|
2014-09-14 01:38:36 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(findstring Haiku,$(OS)),)
|
|
|
|
LIBS += -lm
|
2016-01-10 12:02:19 +00:00
|
|
|
DEBUG_FLAG = -g
|
2014-09-14 01:38:36 +00:00
|
|
|
else
|
|
|
|
LIBS += -lroot -lnetwork
|
|
|
|
# stable and nightly haiku builds are stuck on gdb 6.x but we use gcc4
|
|
|
|
DEBUG_FLAG = -gdwarf-2
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Git
|
|
|
|
|
2014-09-14 01:22:04 +00:00
|
|
|
GIT_VERSION := $(shell git rev-parse --short HEAD 2>/dev/null)
|
|
|
|
ifneq ($(GIT_VERSION),)
|
2014-10-23 17:20:33 +00:00
|
|
|
DEFINES += -DHAVE_GIT_VERSION -DGIT_VERSION=$(GIT_VERSION)
|
2014-09-14 01:22:04 +00:00
|
|
|
OBJ += git_version.o
|
|
|
|
endif
|
|
|
|
|
2014-09-14 01:38:36 +00:00
|
|
|
# General object files
|
|
|
|
|
2014-09-13 22:04:42 +00:00
|
|
|
OBJ += frontend/frontend.o \
|
2015-01-12 20:21:08 +00:00
|
|
|
frontend/frontend_driver.o \
|
2015-01-12 20:47:01 +00:00
|
|
|
frontend/drivers/platform_null.o \
|
2015-04-11 23:31:03 +00:00
|
|
|
ui/ui_companion_driver.o \
|
|
|
|
ui/drivers/ui_null.o \
|
2014-09-23 01:03:56 +00:00
|
|
|
libretro_version_1.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
retroarch.o \
|
2015-04-13 09:15:40 +00:00
|
|
|
command_event.o \
|
2014-10-04 23:31:48 +00:00
|
|
|
runloop.o \
|
2015-02-23 01:54:14 +00:00
|
|
|
runloop_data.o \
|
2014-10-21 21:44:03 +00:00
|
|
|
content.o \
|
2015-02-18 23:04:03 +00:00
|
|
|
libretro-common/file/file_list.o \
|
|
|
|
libretro-common/file/dir_list.o \
|
|
|
|
libretro-common/string/string_list.o \
|
2015-03-13 14:35:55 +00:00
|
|
|
libretro-common/string/stdstring.o \
|
2014-10-21 21:53:09 +00:00
|
|
|
file_ops.o \
|
2015-02-18 23:04:03 +00:00
|
|
|
libretro-common/file//nbio/nbio_stdio.o \
|
|
|
|
libretro-common/file/file_path.o \
|
2015-03-13 04:03:50 +00:00
|
|
|
file_path_special.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
hash.o \
|
2015-01-12 17:09:31 +00:00
|
|
|
audio/audio_driver.o \
|
2015-01-18 17:47:53 +00:00
|
|
|
audio/audio_monitor.o \
|
2015-01-12 17:39:27 +00:00
|
|
|
input/input_driver.o \
|
2015-04-01 20:31:43 +00:00
|
|
|
input/input_hid_driver.o \
|
2015-01-12 17:28:32 +00:00
|
|
|
gfx/video_driver.o \
|
2015-01-18 17:28:14 +00:00
|
|
|
gfx/video_monitor.o \
|
2015-01-18 22:17:16 +00:00
|
|
|
gfx/video_pixel_converter.o \
|
2015-01-18 22:59:57 +00:00
|
|
|
gfx/video_viewport.o \
|
2015-01-12 18:44:29 +00:00
|
|
|
camera/camera_driver.o \
|
2015-01-12 19:02:39 +00:00
|
|
|
menu/menu_driver.o \
|
2015-01-12 18:53:10 +00:00
|
|
|
location/location_driver.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
driver.o \
|
2015-03-20 23:42:09 +00:00
|
|
|
configuration.o \
|
2014-10-07 14:48:24 +00:00
|
|
|
settings_list.o \
|
2015-03-20 23:49:55 +00:00
|
|
|
settings.o \
|
2015-04-08 05:57:16 +00:00
|
|
|
dylib.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
dynamic.o \
|
|
|
|
dynamic_dummy.o \
|
2015-02-18 23:04:03 +00:00
|
|
|
libretro-common/queues/message_queue.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
rewind.o \
|
2015-01-12 22:34:10 +00:00
|
|
|
gfx/drivers_font_renderer/bitmapfont.o \
|
2014-09-30 15:48:31 +00:00
|
|
|
input/input_autodetect.o \
|
2015-01-12 19:29:01 +00:00
|
|
|
input/input_joypad_driver.o \
|
2015-01-10 19:10:45 +00:00
|
|
|
input/input_joypad.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
input/input_common.o \
|
2014-10-27 03:27:48 +00:00
|
|
|
input/input_keymaps.o \
|
2015-01-19 17:16:34 +00:00
|
|
|
input/input_remapping.o \
|
2015-01-18 18:28:51 +00:00
|
|
|
input/input_sensor.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
input/keyboard_line.o \
|
2015-01-12 20:59:32 +00:00
|
|
|
input/input_overlay.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
patch.o \
|
2015-02-18 23:04:03 +00:00
|
|
|
libretro-common/queues/fifo_buffer.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
core_options.o \
|
2015-02-18 23:04:03 +00:00
|
|
|
libretro-common/compat/compat.o \
|
|
|
|
libretro-common/compat/compat_fnmatch.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
cheats.o \
|
|
|
|
core_info.o \
|
2015-02-18 23:04:03 +00:00
|
|
|
libretro-common/file/config_file.o \
|
|
|
|
libretro-common/file/config_file_userdata.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
screenshot.o \
|
2015-02-18 23:04:03 +00:00
|
|
|
libretro-common/gfx/scaler/scaler.o \
|
2015-01-12 21:23:48 +00:00
|
|
|
gfx/drivers_shader/shader_null.o \
|
2015-01-12 20:41:27 +00:00
|
|
|
gfx/video_shader_driver.o \
|
2015-01-12 22:42:50 +00:00
|
|
|
gfx/video_shader_parse.o \
|
2015-02-18 23:04:03 +00:00
|
|
|
libretro-common/gfx/scaler/pixconv.o \
|
|
|
|
libretro-common/gfx/scaler/scaler_int.o \
|
|
|
|
libretro-common/gfx/scaler/scaler_filter.o \
|
2015-04-03 18:36:19 +00:00
|
|
|
gfx/font_driver.o \
|
2015-01-12 22:34:10 +00:00
|
|
|
gfx/font_renderer_driver.o \
|
2014-11-20 05:45:57 +00:00
|
|
|
gfx/video_filter.o \
|
2015-01-12 21:11:13 +00:00
|
|
|
audio/audio_resampler_driver.o \
|
2015-01-12 23:13:28 +00:00
|
|
|
audio/audio_dsp_filter.o \
|
2015-01-12 21:11:13 +00:00
|
|
|
audio/drivers_resampler/sinc.o \
|
|
|
|
audio/drivers_resampler/nearest.o \
|
|
|
|
audio/drivers_resampler/cc_resampler.o \
|
2015-01-12 18:05:33 +00:00
|
|
|
location/drivers/nulllocation.o \
|
2015-01-12 18:04:12 +00:00
|
|
|
camera/drivers/nullcamera.o \
|
2015-01-12 05:45:12 +00:00
|
|
|
gfx/drivers/nullgfx.o \
|
2015-01-12 04:05:56 +00:00
|
|
|
audio/drivers/nullaudio.o \
|
2015-01-12 05:16:52 +00:00
|
|
|
input/drivers/nullinput.o \
|
2015-04-01 22:20:28 +00:00
|
|
|
input/drivers_hid/null_hid.o \
|
2015-04-02 16:44:02 +00:00
|
|
|
input/drivers_joypad/null_joypad.o \
|
2015-04-01 20:31:43 +00:00
|
|
|
input/drivers_joypad/hid_joypad.o \
|
2014-09-14 00:52:30 +00:00
|
|
|
playlist.o \
|
|
|
|
movie.o \
|
2015-01-12 20:55:41 +00:00
|
|
|
record/record_driver.o \
|
2015-04-15 11:37:38 +00:00
|
|
|
record/drivers/record_null.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
performance.o
|
2014-09-13 22:53:00 +00:00
|
|
|
|
2015-04-02 13:43:23 +00:00
|
|
|
|
2015-02-22 00:28:54 +00:00
|
|
|
OBJ += gfx/image/image.o
|
2015-02-19 02:16:47 +00:00
|
|
|
|
2015-04-12 16:56:23 +00:00
|
|
|
# Qt
|
|
|
|
|
|
|
|
ifeq ($(HAVE_QT), 1)
|
|
|
|
OBJ += ui/drivers/ui_qt.o
|
|
|
|
# TODO/FIXME - figure out which libraries we need to link against
|
2015-04-12 19:50:07 +00:00
|
|
|
LIBS += -lQt5Quick -lQt5Widgets -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lglu32 -lopengl32 -L./ui/drivers/qt/release -lwrapper
|
2015-04-12 16:56:23 +00:00
|
|
|
endif
|
|
|
|
|
2015-01-20 00:00:17 +00:00
|
|
|
# LibretroDB
|
2014-12-30 20:12:43 +00:00
|
|
|
|
2015-01-22 02:58:04 +00:00
|
|
|
ifeq ($(HAVE_LIBRETRODB), 1)
|
2015-02-18 23:47:19 +00:00
|
|
|
OBJ += libretro-db/bintree.o \
|
|
|
|
libretro-db/libretrodb.o \
|
|
|
|
libretro-db/query.o \
|
|
|
|
libretro-db/rmsgpack.o \
|
|
|
|
libretro-db/rmsgpack_dom.o \
|
2015-01-27 17:09:19 +00:00
|
|
|
database_info.o
|
2015-01-22 02:58:04 +00:00
|
|
|
endif
|
2014-12-30 20:12:43 +00:00
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
# Miscellaneous
|
|
|
|
|
2014-09-14 02:37:57 +00:00
|
|
|
ifeq ($(HAVE_STDIN_CMD), 1)
|
|
|
|
DEFINES += -DHAVE_COMMAND -DHAVE_STDIN_CMD
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_PYTHON), 1)
|
|
|
|
DEFINES += $(PYTHON_CFLAGS) -Wno-unused-parameter
|
|
|
|
LIBS += $(PYTHON_LIBS)
|
2015-01-12 15:00:13 +00:00
|
|
|
OBJ += gfx/video_state_python.o
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-14 01:58:49 +00:00
|
|
|
ifeq ($(HAVE_EMSCRIPTEN), 1)
|
2015-01-12 20:47:01 +00:00
|
|
|
OBJ += frontend/drivers/platform_emscripten.o \
|
2015-01-12 05:16:52 +00:00
|
|
|
input/drivers/rwebinput_input.o \
|
2015-01-12 04:05:56 +00:00
|
|
|
audio/drivers/rwebaudio.o \
|
2015-01-12 18:04:12 +00:00
|
|
|
camera/drivers/rwebcam.o
|
2014-09-14 01:58:49 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
# Audio
|
|
|
|
#
|
|
|
|
ifeq ($(HAVE_COREAUDIO), 1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/coreaudio.o
|
2014-09-14 00:52:30 +00:00
|
|
|
LIBS += -framework CoreServices -framework CoreAudio -framework AudioUnit
|
|
|
|
endif
|
|
|
|
|
2015-04-19 22:13:02 +00:00
|
|
|
ifeq ($(HAVE_CORETEXT), 1)
|
|
|
|
OBJ += gfx/drivers_font_renderer/coretext.o
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_OSS), 1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/oss.o
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_OSS_BSD), 1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/oss.o
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_ALSA), 1)
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += audio/drivers/alsa.o \
|
|
|
|
audio/drivers/alsathread.o
|
2014-09-14 00:52:30 +00:00
|
|
|
LIBS += $(ALSA_LIBS)
|
|
|
|
DEFINES += $(ALSA_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_ROAR), 1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/roar.o
|
2014-09-14 00:52:30 +00:00
|
|
|
LIBS += $(ROAR_LIBS)
|
|
|
|
DEFINES += $(ROAR_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_AL), 1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/openal.o
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(OSX),1)
|
|
|
|
LIBS += -framework OpenAL
|
|
|
|
else
|
|
|
|
LIBS += -lopenal
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2015-04-19 15:08:13 +00:00
|
|
|
ifeq ($(OSX), 1)
|
|
|
|
OBJ += frontend/drivers/platform_apple.o
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_JACK),1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/jack.o
|
2014-09-14 00:52:30 +00:00
|
|
|
LIBS += $(JACK_LIBS)
|
|
|
|
DEFINES += $(JACK_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_PULSE), 1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/pulse.o
|
2014-09-14 00:52:30 +00:00
|
|
|
LIBS += $(PULSE_LIBS)
|
|
|
|
DEFINES += $(PULSE_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_OSS_LIB), 1)
|
|
|
|
LIBS += -lossaudio
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_RSOUND), 1)
|
2015-03-15 13:28:20 +00:00
|
|
|
OBJ += audio/drivers/rsound.o
|
2014-09-14 00:52:30 +00:00
|
|
|
DEFINES += $(RSOUND_CFLAGS)
|
|
|
|
LIBS += $(RSOUND_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_DSOUND), 1)
|
2015-01-12 04:05:56 +00:00
|
|
|
OBJ += audio/drivers/dsound.o
|
2014-09-14 00:52:30 +00:00
|
|
|
DEFINES += -DHAVE_DSOUND
|
|
|
|
LIBS += -ldxguid -ldsound
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_XAUDIO), 1)
|
2015-04-03 00:29:20 +00:00
|
|
|
OBJ += audio/drivers/xaudio.o
|
2014-09-14 00:52:30 +00:00
|
|
|
DEFINES += -DHAVE_XAUDIO
|
|
|
|
LIBS += -lole32
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Audio Resamplers
|
|
|
|
|
|
|
|
ifeq ($(HAVE_NEON),1)
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += audio/drivers_resampler/sinc_neon.o \
|
|
|
|
audio/drivers_resampler/cc_resampler_neon.o
|
2014-09-14 00:52:30 +00:00
|
|
|
# When compiled without this, tries to attempt to compile sinc lerp,
|
|
|
|
# which will error out
|
|
|
|
#
|
|
|
|
# TODO - we need to make quality levels of sinc
|
|
|
|
# runtime toggleable instead of going by compile-time
|
|
|
|
# defines
|
|
|
|
DEFINES += -DSINC_LOWER_QUALITY
|
|
|
|
endif
|
|
|
|
|
2015-01-12 23:19:46 +00:00
|
|
|
OBJ += audio/audio_utils.o
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_NEON),1)
|
2015-01-12 23:19:46 +00:00
|
|
|
OBJ += audio/audio_utils_neon.o
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-13 22:53:00 +00:00
|
|
|
ifeq ($(HAVE_RGUI), 1)
|
2015-01-26 09:54:13 +00:00
|
|
|
OBJ += menu/drivers/rgui.o
|
2014-09-13 22:53:00 +00:00
|
|
|
DEFINES += -DHAVE_MENU -DHAVE_RGUI
|
|
|
|
HAVE_MENU_COMMON = 1
|
|
|
|
ifeq ($(HAVE_GLUI), 1)
|
2015-01-26 09:54:13 +00:00
|
|
|
OBJ += menu/drivers/glui.o
|
2014-09-13 22:53:00 +00:00
|
|
|
DEFINES += -DHAVE_GLUI
|
|
|
|
endif
|
2014-10-08 23:21:22 +00:00
|
|
|
ifeq ($(HAVE_XMB), 1)
|
2015-01-26 09:54:13 +00:00
|
|
|
OBJ += menu/drivers/xmb.o
|
2014-10-08 23:21:22 +00:00
|
|
|
DEFINES += -DHAVE_XMB
|
|
|
|
endif
|
2014-09-13 22:53:00 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
2015-01-26 09:54:13 +00:00
|
|
|
OBJ += menu/menu_input.o \
|
2015-01-10 03:53:37 +00:00
|
|
|
menu/menu.o \
|
2015-01-10 03:44:18 +00:00
|
|
|
menu/menu_common_list.o \
|
2014-10-28 18:54:23 +00:00
|
|
|
menu/menu_navigation.o \
|
2015-02-14 00:51:28 +00:00
|
|
|
menu/menu_setting.o \
|
2015-01-24 03:55:35 +00:00
|
|
|
menu/menu_database.o \
|
2014-10-28 18:54:23 +00:00
|
|
|
menu/menu_shader.o \
|
|
|
|
menu/menu_entries.o \
|
2015-02-26 16:22:00 +00:00
|
|
|
menu/menu_entries_cbs_ok.o \
|
|
|
|
menu/menu_entries_cbs_cancel.o \
|
2015-02-26 17:28:48 +00:00
|
|
|
menu/menu_entries_cbs_start.o \
|
2015-02-27 02:08:30 +00:00
|
|
|
menu/menu_entries_cbs_select.o \
|
2015-02-27 02:25:28 +00:00
|
|
|
menu/menu_entries_cbs_refresh.o \
|
2015-02-27 01:44:10 +00:00
|
|
|
menu/menu_entries_cbs_toggle.o \
|
2015-02-26 16:33:00 +00:00
|
|
|
menu/menu_entries_cbs_deferred_push.o \
|
2015-02-27 01:50:19 +00:00
|
|
|
menu/menu_entries_cbs_representation.o \
|
2015-02-27 02:05:19 +00:00
|
|
|
menu/menu_entries_cbs_iterate.o \
|
2015-02-27 02:21:49 +00:00
|
|
|
menu/menu_entries_cbs_up_or_down.o \
|
2015-02-27 02:28:50 +00:00
|
|
|
menu/menu_entries_cbs_contentlist_switch.o \
|
2015-02-26 17:28:48 +00:00
|
|
|
menu/menu_entries_cbs.o \
|
2014-10-28 18:54:23 +00:00
|
|
|
menu/menu_list.o \
|
2015-03-09 13:39:39 +00:00
|
|
|
menu/menu_animation.o \
|
|
|
|
menu/drivers/null.o
|
2014-09-13 22:53:00 +00:00
|
|
|
endif
|
2014-09-13 23:01:52 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_FREETYPE), 1)
|
2015-01-12 22:34:10 +00:00
|
|
|
OBJ += gfx/drivers_font_renderer/freetype.o
|
2014-09-13 23:01:52 +00:00
|
|
|
LIBS += $(FREETYPE_LIBS)
|
|
|
|
DEFINES += $(FREETYPE_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_THREADS), 1)
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += autosave.o \
|
|
|
|
libretro-common/rthreads/rthreads.o \
|
|
|
|
gfx/video_thread_wrapper.o \
|
|
|
|
audio/audio_thread_wrapper.o
|
2014-09-13 23:01:52 +00:00
|
|
|
DEFINES += -DHAVE_THREADS
|
|
|
|
ifeq ($(findstring Haiku,$(OS)),)
|
|
|
|
LIBS += -lpthread
|
|
|
|
endif
|
|
|
|
endif
|
2014-09-13 23:58:57 +00:00
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_COMMAND), 1)
|
|
|
|
OBJ += command.o
|
|
|
|
endif
|
|
|
|
|
2014-09-13 23:58:57 +00:00
|
|
|
#Input
|
|
|
|
|
2014-09-14 01:22:04 +00:00
|
|
|
ifeq ($(HAVE_WAYLAND), 1)
|
2015-01-12 05:16:52 +00:00
|
|
|
#OBJ += input/drivers/wayland.o
|
2014-09-14 01:22:04 +00:00
|
|
|
DEFINES += $(WAYLAND_CFLAGS)
|
|
|
|
LIBS += $(WAYLAND_LIBS)
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_DINPUT), 1)
|
|
|
|
LIBS += -ldinput8 -ldxguid -lole32
|
|
|
|
DEFINES += -DHAVE_DINPUT
|
2015-04-07 23:58:09 +00:00
|
|
|
OBJ += input/drivers/dinput.o \
|
|
|
|
input/drivers_joypad/dinput_joypad.o
|
2014-09-14 00:52:30 +00:00
|
|
|
JOYCONFIG_LIBS += -ldinput8 -ldxguid -lole32
|
|
|
|
endif
|
|
|
|
|
2015-04-05 18:54:46 +00:00
|
|
|
ifeq ($(HAVE_XINPUT), 1)
|
|
|
|
DEFINES += -DHAVE_XINPUT -DHAVE_BUILTIN_AUTOCONFIG
|
2015-04-02 16:44:02 +00:00
|
|
|
OBJ += input/drivers_joypad/xinput_joypad.o \
|
2014-09-14 02:09:14 +00:00
|
|
|
input/autoconf/builtin_win.o
|
2014-09-13 23:58:57 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_X11), 1)
|
2015-04-04 18:30:44 +00:00
|
|
|
OBJ += input/drivers/x11_input.o \
|
2015-04-09 03:02:57 +00:00
|
|
|
gfx/common/x11_common.o \
|
2015-04-04 18:42:16 +00:00
|
|
|
input/drivers_keyboard/keyboard_event_x11.o
|
2014-09-13 23:58:57 +00:00
|
|
|
LIBS += $(X11_LIBS) $(XEXT_LIBS) $(XF86VM_LIBS) $(XINERAMA_LIBS)
|
|
|
|
DEFINES += $(X11_CFLAGS) $(XEXT_CFLAGS) $(XF86VM_CFLAGS) $(XINERAMA_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_XKBCOMMON), 1)
|
|
|
|
DEFINES += $(XKBCOMMON_CFLAGS)
|
2015-04-04 18:42:16 +00:00
|
|
|
OBJ += input/drivers_keyboard/keyboard_event_xkb.o
|
2014-09-13 23:58:57 +00:00
|
|
|
LIBS += $(XKBCOMMON_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_UDEV), 1)
|
|
|
|
DEFINES += $(UDEV_CFLAGS)
|
|
|
|
LIBS += $(UDEV_LIBS)
|
|
|
|
JOYCONFIG_LIBS += $(UDEV_LIBS)
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += input/drivers/udev_input.o \
|
|
|
|
input/drivers_joypad/udev_joypad.o
|
2014-09-13 23:58:57 +00:00
|
|
|
endif
|
|
|
|
|
2015-04-02 13:43:23 +00:00
|
|
|
ifeq ($(HAVE_LIBUSB), 1)
|
2015-04-02 15:16:51 +00:00
|
|
|
DEFINES += -DHAVE_LIBUSB
|
2015-04-02 13:43:23 +00:00
|
|
|
OBJ += input/drivers_hid/libusb_hid.o
|
|
|
|
LIBS += -lusb-1.0
|
|
|
|
JOYCONFIG_LIBS += -lusb-1.0
|
2015-04-02 15:49:32 +00:00
|
|
|
HAVE_HID = 1
|
|
|
|
endif
|
|
|
|
|
2015-04-20 10:04:31 +00:00
|
|
|
ifeq ($(HAVE_IOHIDMANAGER), 1)
|
|
|
|
DEFINES += -DHAVE_IOHIDMANAGER
|
|
|
|
OBJ += input/drivers_hid/iohidmanager_hid.o
|
|
|
|
HAVE_HID = 1
|
|
|
|
LIBS += -framework IOKit
|
|
|
|
JOYCONFIG_LIBS += -framework IOKit
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_CORELOCATION), 1)
|
|
|
|
DEFINES += -DHAVE_CORELOCATION
|
|
|
|
LIBS += -framework CoreLocation
|
|
|
|
endif
|
|
|
|
|
2015-04-02 15:49:32 +00:00
|
|
|
ifeq ($(HAVE_HID), 1)
|
|
|
|
DEFINES += -DHAVE_HID
|
|
|
|
OBJ += input/connect/joypad_connection.o \
|
|
|
|
input/connect/connect_ps3.o \
|
|
|
|
input/connect/connect_ps4.o \
|
|
|
|
input/connect/connect_wii.o
|
2015-04-02 13:43:23 +00:00
|
|
|
endif
|
|
|
|
|
2014-10-04 21:04:38 +00:00
|
|
|
ifeq ($(HAVE_PARPORT), 1)
|
2015-01-12 05:28:39 +00:00
|
|
|
OBJ += input/drivers_joypad/parport_joypad.o
|
2014-10-04 21:04:38 +00:00
|
|
|
endif
|
2014-09-14 00:52:30 +00:00
|
|
|
|
2015-04-19 17:02:56 +00:00
|
|
|
OBJ += gfx/video_context_driver.o \
|
|
|
|
gfx/drivers_context/gfx_null_ctx.o
|
|
|
|
|
2014-09-13 23:58:57 +00:00
|
|
|
# Video
|
2014-09-14 01:44:54 +00:00
|
|
|
#
|
|
|
|
ifeq ($(HAVE_OPENGL), 1)
|
2014-09-15 15:07:17 +00:00
|
|
|
DEFINES += -DHAVE_OPENGL -DHAVE_GLSL
|
2015-01-12 05:45:12 +00:00
|
|
|
OBJ += gfx/drivers/gl.o \
|
2015-04-09 02:57:17 +00:00
|
|
|
gfx/drivers/gl_common.o \
|
2015-01-12 22:38:21 +00:00
|
|
|
gfx/drivers_font/gl_raster_font.o \
|
2015-02-18 23:04:03 +00:00
|
|
|
libretro-common/gfx/math/matrix_4x4.o \
|
2015-01-12 15:00:13 +00:00
|
|
|
gfx/video_state_tracker.o \
|
2015-03-20 01:19:19 +00:00
|
|
|
gfx/video_texture.o \
|
2015-02-18 23:04:03 +00:00
|
|
|
libretro-common/glsym/rglgen.o
|
2014-09-14 01:44:54 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_KMS), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/drm_egl_ctx.o
|
2014-09-14 01:44:54 +00:00
|
|
|
DEFINES += $(GBM_CFLAGS) $(DRM_CFLAGS) $(EGL_CFLAGS)
|
|
|
|
LIBS += $(GBM_LIBS) $(DRM_LIBS) $(EGL_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_VIDEOCORE), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/vc_egl_ctx.o
|
2014-09-14 01:44:54 +00:00
|
|
|
DEFINES += $(EGL_CFLAGS)
|
|
|
|
LIBS += $(EGL_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_EMSCRIPTEN), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/emscriptenegl_ctx.o
|
2014-09-14 01:44:54 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_MALI_FBDEV), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/mali_fbdev_ctx.o
|
2014-09-14 12:40:00 +00:00
|
|
|
DEFINES += $(EGL_CFLAGS)
|
|
|
|
LIBS += $(EGL_LIBS)
|
2014-09-14 01:44:54 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_VIVANTE_FBDEV), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/vivante_fbdev_ctx.o
|
2014-09-14 01:44:54 +00:00
|
|
|
DEFINES += $(EGL_CFLAGS)
|
|
|
|
LIBS += $(EGL_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_X11), 1)
|
2015-03-21 22:09:55 +00:00
|
|
|
OBJ += gfx/drivers_context/glx_ctx.o
|
2014-09-14 01:44:54 +00:00
|
|
|
ifeq ($(HAVE_EGL), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/xegl_ctx.o
|
2014-09-14 01:44:54 +00:00
|
|
|
DEFINES += $(EGL_CFLAGS)
|
|
|
|
LIBS += $(EGL_LIBS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_WAYLAND), 1)
|
|
|
|
ifeq ($(HAVE_EGL), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/wayland_ctx.o
|
2014-09-14 01:44:54 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_GLES), 1)
|
|
|
|
LIBS += $(GLES_LIBS)
|
|
|
|
DEFINES += $(GLES_CFLAGS) -DHAVE_OPENGLES -DHAVE_OPENGLES2
|
|
|
|
ifeq ($(HAVE_GLES3), 1)
|
|
|
|
DEFINES += -DHAVE_OPENGLES3
|
|
|
|
endif
|
2015-02-18 23:04:03 +00:00
|
|
|
OBJ += libretro-common/glsym/glsym_es2.o
|
2014-09-14 01:44:54 +00:00
|
|
|
else
|
|
|
|
DEFINES += -DHAVE_GL_SYNC
|
2015-02-18 23:04:03 +00:00
|
|
|
OBJ += libretro-common/glsym/glsym_gl.o
|
2014-09-14 01:44:54 +00:00
|
|
|
ifeq ($(OSX), 1)
|
|
|
|
LIBS += -framework OpenGL
|
|
|
|
else ifneq ($(findstring Win32,$(OS)),)
|
2015-03-23 16:36:37 +00:00
|
|
|
LIBS += -lopengl32 -lgdi32 -lcomdlg32 -lcomctl32
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += gfx/drivers_context/wgl_ctx.o \
|
|
|
|
gfx/drivers_wm/win32_shader_dlg.o
|
2014-09-14 01:44:54 +00:00
|
|
|
else
|
|
|
|
LIBS += -lGL
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2015-01-12 21:23:48 +00:00
|
|
|
OBJ += gfx/drivers_shader/shader_glsl.o
|
2014-09-14 01:44:54 +00:00
|
|
|
DEFINES += -DHAVE_GLSL
|
|
|
|
endif
|
2014-09-13 23:58:57 +00:00
|
|
|
|
2014-09-16 01:13:54 +00:00
|
|
|
ifeq ($(HAVE_SDL2), 1)
|
|
|
|
HAVE_SDL=0
|
|
|
|
endif
|
|
|
|
|
2014-09-14 01:22:04 +00:00
|
|
|
ifeq ($(HAVE_SDL), 1)
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += gfx/drivers/sdl_gfx.o \
|
|
|
|
input/drivers/sdl_input.o \
|
|
|
|
input/drivers_joypad/sdl_joypad.o \
|
|
|
|
audio/drivers/sdl_audio.o
|
2014-09-14 01:22:04 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_OPENGL), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/sdl_gl_ctx.o
|
2014-09-14 01:22:04 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
JOYCONFIG_LIBS += $(SDL_LIBS)
|
|
|
|
DEFINES += $(SDL_CFLAGS) $(BSD_LOCAL_INC)
|
|
|
|
LIBS += $(SDL_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_SDL2), 1)
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += gfx/drivers/sdl2_gfx.o \
|
|
|
|
input/drivers/sdl_input.o \
|
|
|
|
input/drivers_joypad/sdl_joypad.o \
|
|
|
|
audio/drivers/sdl_audio.o
|
2014-09-14 01:22:04 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_OPENGL), 1)
|
2015-01-12 21:19:31 +00:00
|
|
|
OBJ += gfx/drivers_context/sdl_gl_ctx.o
|
2014-09-14 01:22:04 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
JOYCONFIG_LIBS += $(SDL2_LIBS)
|
|
|
|
DEFINES += $(SDL2_CFLAGS) $(BSD_LOCAL_INC)
|
|
|
|
LIBS += $(SDL2_LIBS)
|
|
|
|
HAVE_SDL = 0
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
ifeq ($(HAVE_OMAP), 1)
|
2015-01-12 05:45:12 +00:00
|
|
|
OBJ += gfx/drivers/omap_gfx.o
|
2014-09-14 00:52:30 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_EXYNOS), 1)
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += gfx/drivers/exynos_gfx.o \
|
|
|
|
mem/neon/memcpy-neon.o
|
2014-09-14 00:52:30 +00:00
|
|
|
LIBS += $(DRM_LIBS) $(EXYNOS_LIBS)
|
|
|
|
DEFINES += $(DRM_CFLAGS) $(EXYNOS_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
2015-03-13 04:59:52 +00:00
|
|
|
ifeq ($(HAVE_DISPMANX), 1)
|
|
|
|
OBJ += gfx/drivers/dispmanx_gfx.o
|
|
|
|
LIBS += $(DISPMANX_LIBS)
|
|
|
|
DEFINES += $(DISPMANX_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
2016-01-10 11:04:32 +00:00
|
|
|
ifeq ($(HAVE_SUNXI), 1)
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += gfx/drivers/sunxi_gfx.o \
|
|
|
|
gfx/pixman/pixman-arm-neon-asm.o
|
2016-01-10 11:04:32 +00:00
|
|
|
endif
|
|
|
|
|
2014-09-13 23:58:57 +00:00
|
|
|
ifeq ($(HAVE_VG), 1)
|
2015-04-04 19:45:59 +00:00
|
|
|
OBJ += gfx/drivers/vg.o \
|
|
|
|
libretro-common/gfx/math/matrix_3x3.o
|
2014-09-13 23:58:57 +00:00
|
|
|
DEFINES += $(VG_CFLAGS)
|
|
|
|
LIBS += $(VG_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_XVIDEO), 1)
|
2015-01-12 05:45:12 +00:00
|
|
|
OBJ += gfx/drivers/xvideo.o
|
2014-09-13 23:58:57 +00:00
|
|
|
LIBS += $(XVIDEO_LIBS)
|
|
|
|
DEFINES += $(XVIDEO_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:05:17 +00:00
|
|
|
ifeq ($(HAVE_CG), 1)
|
|
|
|
DEFINES += -DHAVE_CG
|
2015-01-12 21:23:48 +00:00
|
|
|
OBJ += gfx/drivers_shader/shader_gl_cg.o
|
2014-09-16 20:45:45 +00:00
|
|
|
LIBS += $(CG_LIBS)
|
2014-09-14 00:05:17 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_D3D9), 1)
|
2014-09-14 04:45:47 +00:00
|
|
|
OBJ += gfx/d3d/d3d.o \
|
2015-04-06 14:52:39 +00:00
|
|
|
gfx/d3d/render_chain_null.o \
|
2015-04-06 14:55:57 +00:00
|
|
|
gfx/d3d/render_chain_driver.o \
|
2014-09-14 04:45:47 +00:00
|
|
|
gfx/d3d/d3d_wrapper.o \
|
2015-01-12 22:38:21 +00:00
|
|
|
gfx/drivers_font/d3d_w32_font.o \
|
2015-01-12 21:19:31 +00:00
|
|
|
gfx/drivers_context/d3d_ctx.o
|
2015-04-03 18:36:19 +00:00
|
|
|
DEFINES += -DHAVE_D3D -DHAVE_D3D9
|
2014-09-14 00:05:17 +00:00
|
|
|
LIBS += -ld3d9 -ld3dx9 -ldxguid
|
2014-09-16 20:45:45 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_CG), 1)
|
|
|
|
LIBS += -lcgD3D9
|
2015-04-06 16:08:10 +00:00
|
|
|
OBJ += gfx/d3d/render_chain_cg.o
|
2014-09-16 20:45:45 +00:00
|
|
|
endif
|
2014-09-14 00:05:17 +00:00
|
|
|
endif
|
2014-09-14 00:15:41 +00:00
|
|
|
|
2014-12-15 20:34:22 +00:00
|
|
|
#ifeq ($(HAVE_LIBXML2), 1)
|
|
|
|
#LIBS += $(LIBXML2_LIBS)
|
|
|
|
#DEFINES += $(LIBXML2_CFLAGS)
|
|
|
|
#else
|
2015-02-18 23:04:03 +00:00
|
|
|
#OBJ += libretro-common/formats/xml/rxml.o
|
2014-12-15 20:34:22 +00:00
|
|
|
#endif
|
2014-09-14 00:15:41 +00:00
|
|
|
|
|
|
|
# Compression/Archive
|
|
|
|
|
|
|
|
ifeq ($(HAVE_7ZIP),1)
|
|
|
|
CFLAGS += -I./deps/7zip
|
|
|
|
HAVE_COMPRESSION = 1
|
|
|
|
DEFINES += -DHAVE_7ZIP
|
|
|
|
7ZOBJ = deps/7zip/7zIn.o \
|
|
|
|
deps/7zip/7zAlloc.o \
|
|
|
|
deps/7zip/Bra86.o \
|
|
|
|
deps/7zip/CpuArch.o \
|
|
|
|
deps/7zip/7zFile.o \
|
|
|
|
deps/7zip/7zStream.o \
|
|
|
|
deps/7zip/7zBuf2.o \
|
|
|
|
deps/7zip/LzmaDec.o \
|
|
|
|
deps/7zip/7zCrcOpt.o \
|
|
|
|
deps/7zip/Bra.o \
|
|
|
|
deps/7zip/7zDec.o \
|
|
|
|
deps/7zip/Bcj2.o \
|
|
|
|
deps/7zip/7zCrc.o \
|
|
|
|
deps/7zip/Lzma2Dec.o \
|
|
|
|
deps/7zip/7zBuf.o \
|
|
|
|
decompress/7zip_support.o
|
|
|
|
OBJ += $(7ZOBJ)
|
|
|
|
endif
|
2014-09-14 00:52:30 +00:00
|
|
|
|
2015-02-22 03:56:18 +00:00
|
|
|
OBJ += libretro-common/formats/tga/tga_decode.o
|
|
|
|
|
2014-09-14 02:50:10 +00:00
|
|
|
ifeq ($(HAVE_ZLIB), 1)
|
|
|
|
ZLIB_OBJS = decompress/zip_support.o
|
2015-04-19 14:55:03 +00:00
|
|
|
OBJ += libretro-common/file/file_extract.o
|
2014-09-14 02:50:10 +00:00
|
|
|
OBJ += $(ZLIB_OBJS)
|
|
|
|
DEFINES += -DHAVE_ZLIB
|
2015-04-19 16:30:49 +00:00
|
|
|
HAVE_RPNG = 1
|
2014-09-14 02:50:10 +00:00
|
|
|
HAVE_COMPRESSION = 1
|
2015-03-14 04:24:57 +00:00
|
|
|
ifeq ($(WANT_ZLIB), 1)
|
|
|
|
DEFINES += -DWANT_ZLIB
|
2014-09-14 02:50:10 +00:00
|
|
|
else
|
|
|
|
LIBS += -lz
|
|
|
|
HAVE_ZLIB_DEFLATE = 1
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2015-04-19 14:55:03 +00:00
|
|
|
ifdef HAVE_RPNG
|
|
|
|
DEFINES += -DHAVE_RPNG
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_RPNG), 1)
|
|
|
|
OBJ += libretro-common/formats/png/rpng_nbio.o \
|
|
|
|
libretro-common/formats/png/rpng_fbio.o \
|
|
|
|
libretro-common/formats/png/rpng_decode.o \
|
|
|
|
libretro-common/formats/png/rpng_encode.o
|
|
|
|
endif
|
|
|
|
|
2014-09-16 17:20:15 +00:00
|
|
|
ifdef HAVE_COMPRESSION
|
|
|
|
DEFINES += -DHAVE_COMPRESSION
|
|
|
|
endif
|
|
|
|
|
2015-03-14 04:24:57 +00:00
|
|
|
ifeq ($(WANT_ZLIB),1)
|
2015-03-06 00:47:09 +00:00
|
|
|
OBJ += deps/zlib/adler32.o \
|
|
|
|
deps/zlib/compress.o \
|
|
|
|
deps/zlib/crc32.o \
|
|
|
|
deps/zlib/deflate.o \
|
|
|
|
deps/zlib/gzclose.o \
|
|
|
|
deps/zlib/gzlib.o \
|
|
|
|
deps/zlib/gzread.o \
|
|
|
|
deps/zlib/gzwrite.o \
|
|
|
|
deps/zlib/inffast.o \
|
|
|
|
deps/zlib/inflate.o \
|
|
|
|
deps/zlib/inftrees.o \
|
|
|
|
deps/zlib/trees.o \
|
|
|
|
deps/zlib/uncompr.o \
|
|
|
|
deps/zlib/zutil.o \
|
|
|
|
deps/zlib/ioapi.o \
|
|
|
|
deps/zlib/unzip.o
|
2014-09-14 02:50:10 +00:00
|
|
|
else
|
2014-09-17 16:44:48 +00:00
|
|
|
ifeq ($(HAVE_ZLIB),1)
|
2015-04-04 19:45:59 +00:00
|
|
|
ZLIB_OBJS = deps/zlib/unzip.o \
|
|
|
|
deps/zlib/ioapi.o
|
2014-09-14 02:50:10 +00:00
|
|
|
OBJ += $(ZLIB_OBJS)
|
|
|
|
HAVE_ZLIB_DEFLATE = 1
|
|
|
|
endif
|
2014-09-17 16:44:48 +00:00
|
|
|
endif
|
2014-09-14 02:50:10 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_ZLIB_DEFLATE),1)
|
|
|
|
DEFINES += -DHAVE_ZLIB_DEFLATE
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
# Camera
|
|
|
|
|
|
|
|
ifeq ($(HAVE_V4L2),1)
|
2015-01-12 18:04:12 +00:00
|
|
|
OBJ += camera/drivers/video4linux2.o
|
2014-09-14 00:52:30 +00:00
|
|
|
DEFINES += -DHAVE_V4L2
|
|
|
|
endif
|
|
|
|
|
2014-09-14 01:38:36 +00:00
|
|
|
# Netplay
|
|
|
|
|
2015-01-27 23:49:43 +00:00
|
|
|
ifeq ($(HAVE_NETWORKING), 1)
|
|
|
|
DEFINES += -DHAVE_NETWORKING
|
2015-03-20 16:56:00 +00:00
|
|
|
OBJ += libretro-common/net/net_compat.o \
|
|
|
|
libretro-common/net/net_http.o
|
2015-01-27 23:29:47 +00:00
|
|
|
|
2014-09-14 01:38:36 +00:00
|
|
|
ifneq ($(findstring Win32,$(OS)),)
|
|
|
|
LIBS += -lws2_32
|
|
|
|
endif
|
2015-01-27 23:29:47 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_NETPLAY), 1)
|
|
|
|
DEFINES += -DHAVE_NETPLAY -DHAVE_NETWORK_CMD
|
2015-01-28 07:55:02 +00:00
|
|
|
OBJ += netplay.o
|
2015-01-27 23:29:47 +00:00
|
|
|
endif
|
2014-09-14 01:38:36 +00:00
|
|
|
endif
|
2014-09-14 02:00:27 +00:00
|
|
|
|
|
|
|
ifneq ($(findstring Win32,$(OS)),)
|
2014-09-14 20:50:29 +00:00
|
|
|
OBJ += media/rarch.o \
|
2015-04-04 18:42:16 +00:00
|
|
|
input/drivers_keyboard/keyboard_event_win32.o \
|
2015-04-09 03:16:02 +00:00
|
|
|
gfx/common/win32_common.o \
|
2015-04-07 19:51:57 +00:00
|
|
|
frontend/drivers/platform_win32.o
|
2014-09-14 02:00:27 +00:00
|
|
|
endif
|
2014-09-14 02:43:18 +00:00
|
|
|
|
2015-04-20 10:04:31 +00:00
|
|
|
ifeq ($(HAVE_AVFOUNDATION), 1)
|
|
|
|
DEFINES += -DHAVE_AVFOUNDATION
|
|
|
|
LIBS += -framework AVFoundation
|
|
|
|
LIBS += -framework CoreVideo
|
|
|
|
LIBS += -framework CoreMedia
|
|
|
|
endif
|
|
|
|
|
2014-09-14 02:43:18 +00:00
|
|
|
# Record
|
|
|
|
|
|
|
|
ifeq ($(HAVE_FFMPEG), 1)
|
2015-01-12 20:57:07 +00:00
|
|
|
OBJ += record/drivers/ffmpeg.o
|
2014-09-14 02:43:18 +00:00
|
|
|
LIBS += $(AVCODEC_LIBS) $(AVFORMAT_LIBS) $(AVUTIL_LIBS) $(SWSCALE_LIBS) $(FFMPEG_LIBS)
|
|
|
|
DEFINES += $(AVCODEC_CFLAGS) $(AVFORMAT_CFLAGS) $(AVUTIL_CFLAGS) $(SWSCALE_CFLAGS)
|
|
|
|
DEFINES += -DHAVE_FFMPEG -Iffmpeg
|
|
|
|
endif
|
2014-09-15 16:46:07 +00:00
|
|
|
|
2014-09-16 17:20:33 +00:00
|
|
|
ifeq ($(HAVE_COMPRESSION), 1)
|
|
|
|
DEFINES += -DHAVE_COMPRESSION
|
|
|
|
endif
|
|
|
|
|
2015-04-19 22:38:55 +00:00
|
|
|
ifeq ($(HAVE_COCOA),1)
|
2015-04-20 10:52:59 +00:00
|
|
|
OBJ += apple/OSX/platform.o \
|
2015-04-20 10:45:21 +00:00
|
|
|
apple/OSX/settings.o \
|
|
|
|
input/drivers/cocoa_input.o \
|
|
|
|
input/drivers_keyboard/keyboard_event_apple.o \
|
|
|
|
ui/drivers/ui_cocoa.o \
|
2015-04-20 10:52:16 +00:00
|
|
|
ui/drivers/cocoa/cocoa_common.o \
|
2015-04-20 10:45:21 +00:00
|
|
|
gfx/drivers_context/apple_cocoa_gl.o
|
2015-04-19 22:38:55 +00:00
|
|
|
endif
|
|
|
|
|
2015-04-02 13:43:23 +00:00
|
|
|
|
2014-10-16 05:34:59 +00:00
|
|
|
# Joyconfig binary
|
2015-04-08 05:57:16 +00:00
|
|
|
JOYCONFIG_OBJ += tools/retroarch-joyconfig-griffin.o
|