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
|
|
|
|
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
|
|
|
|
|
2014-09-14 02:43:18 +00:00
|
|
|
ifeq ($(REENTRANT_TEST), 1)
|
|
|
|
DEFINES += -Dmain=retroarch_main
|
|
|
|
OBJ += console/test.o
|
|
|
|
endif
|
|
|
|
|
2014-10-21 03:05:52 +00:00
|
|
|
CFLAGS += -I./libretro-sdk/include
|
|
|
|
|
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
|
|
|
HAVE_LAKKA = 1
|
|
|
|
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
|
|
|
|
else
|
|
|
|
OSX := 0
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(findstring Linux,$(OS)),)
|
|
|
|
LIBS += -lrt
|
|
|
|
JOYCONFIG_LIBS += -lrt
|
2014-10-04 21:04:38 +00:00
|
|
|
OBJ += input/linuxraw_input.o input/linuxraw_joypad.o
|
|
|
|
JOYCONFIG_OBJ += tools/linuxraw_joypad.o
|
2014-09-14 01:38:36 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(findstring Haiku,$(OS)),)
|
|
|
|
LIBS += -lm
|
|
|
|
DEBUG_FLAG = -g
|
|
|
|
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),)
|
|
|
|
DEFINES += -DHAVE_GIT_VERSION -DGIT_VERSION="\"$(GIT_VERSION)\""
|
|
|
|
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 \
|
|
|
|
frontend/frontend_context.o \
|
|
|
|
frontend/platform/platform_null.o \
|
2014-09-23 01:03:56 +00:00
|
|
|
libretro_version_1.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
retroarch.o \
|
2014-10-04 23:31:48 +00:00
|
|
|
runloop.o \
|
2014-10-21 21:44:03 +00:00
|
|
|
content.o \
|
2014-10-21 17:23:28 +00:00
|
|
|
libretro-sdk/file/file_list.o \
|
2014-09-15 16:59:59 +00:00
|
|
|
dir_list.o \
|
2014-10-21 17:59:27 +00:00
|
|
|
libretro-sdk/string/string_list.o \
|
2014-10-21 21:00:14 +00:00
|
|
|
rarch_file_path.o \
|
2014-10-21 21:33:20 +00:00
|
|
|
file_path.o \
|
2014-10-21 21:12:19 +00:00
|
|
|
rarch_compr_file_path.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
hash.o \
|
|
|
|
driver.o \
|
2014-09-19 05:34:34 +00:00
|
|
|
general.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
settings.o \
|
2014-10-07 14:48:24 +00:00
|
|
|
settings_list.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
settings_data.o \
|
|
|
|
dynamic.o \
|
|
|
|
dynamic_dummy.o \
|
|
|
|
message_queue.o \
|
|
|
|
rewind.o \
|
|
|
|
gfx/gfx_common.o \
|
|
|
|
gfx/fonts/bitmapfont.o \
|
2014-09-30 15:48:31 +00:00
|
|
|
input/input_autodetect.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
input/input_common.o \
|
|
|
|
input/keyboard_line.o \
|
|
|
|
input/overlay.o \
|
|
|
|
patch.o \
|
|
|
|
fifo_buffer.o \
|
|
|
|
core_options.o \
|
2014-10-21 05:58:58 +00:00
|
|
|
libretro-sdk/compat/compat.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
cheats.o \
|
|
|
|
core_info.o \
|
|
|
|
conf/config_file.o \
|
2014-09-15 19:25:40 +00:00
|
|
|
conf/config_file_userdata.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
screenshot.o \
|
|
|
|
gfx/scaler/scaler.o \
|
2014-10-02 09:11:34 +00:00
|
|
|
gfx/shader/shader_null.o \
|
2014-10-02 11:21:45 +00:00
|
|
|
gfx/shader/shader_context.o \
|
2014-10-01 22:45:11 +00:00
|
|
|
gfx/shader/shader_parse.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
gfx/scaler/pixconv.o \
|
|
|
|
gfx/scaler/scaler_int.o \
|
|
|
|
gfx/scaler/scaler_filter.o \
|
|
|
|
gfx/image/image_rpng.o \
|
|
|
|
gfx/fonts/fonts.o \
|
2014-09-14 01:22:04 +00:00
|
|
|
gfx/filter.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
audio/resamplers/resampler.o \
|
|
|
|
audio/dsp_filter.o \
|
|
|
|
audio/resamplers/sinc.o \
|
|
|
|
audio/resamplers/nearest.o \
|
|
|
|
audio/resamplers/cc_resampler.o \
|
|
|
|
location/nulllocation.o \
|
|
|
|
camera/nullcamera.o \
|
|
|
|
gfx/nullgfx.o \
|
|
|
|
audio/nullaudio.o \
|
|
|
|
input/nullinput.o \
|
|
|
|
input/osk/nullosk.o \
|
2014-09-14 00:52:30 +00:00
|
|
|
playlist.o \
|
|
|
|
movie.o \
|
|
|
|
record/ffemu.o \
|
2014-09-13 22:04:42 +00:00
|
|
|
performance.o
|
2014-09-13 22:53:00 +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)
|
|
|
|
OBJ += gfx/py_state/py_state.o
|
|
|
|
endif
|
|
|
|
|
2014-09-14 01:58:49 +00:00
|
|
|
ifeq ($(HAVE_EMSCRIPTEN), 1)
|
|
|
|
OBJ += frontend/platform/platform_emscripten.o \
|
|
|
|
input/rwebinput_input.o \
|
|
|
|
audio/rwebaudio.o \
|
|
|
|
camera/rwebcam.o
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:52:30 +00:00
|
|
|
# Audio
|
|
|
|
#
|
|
|
|
ifeq ($(HAVE_COREAUDIO), 1)
|
|
|
|
OBJ += audio/coreaudio.o
|
|
|
|
LIBS += -framework CoreServices -framework CoreAudio -framework AudioUnit
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_OSS), 1)
|
|
|
|
OBJ += audio/oss.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_OSS_BSD), 1)
|
|
|
|
OBJ += audio/oss.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_ALSA), 1)
|
|
|
|
OBJ += audio/alsa.o audio/alsathread.o
|
|
|
|
LIBS += $(ALSA_LIBS)
|
|
|
|
DEFINES += $(ALSA_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_ROAR), 1)
|
|
|
|
OBJ += audio/roar.o
|
|
|
|
LIBS += $(ROAR_LIBS)
|
|
|
|
DEFINES += $(ROAR_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_AL), 1)
|
|
|
|
OBJ += audio/openal.o
|
|
|
|
ifeq ($(OSX),1)
|
|
|
|
LIBS += -framework OpenAL
|
|
|
|
else
|
|
|
|
LIBS += -lopenal
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_JACK),1)
|
|
|
|
OBJ += audio/jack.o
|
|
|
|
LIBS += $(JACK_LIBS)
|
|
|
|
DEFINES += $(JACK_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_PULSE), 1)
|
|
|
|
OBJ += audio/pulse.o
|
|
|
|
LIBS += $(PULSE_LIBS)
|
|
|
|
DEFINES += $(PULSE_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_OSS_LIB), 1)
|
|
|
|
LIBS += -lossaudio
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_RSOUND), 1)
|
|
|
|
OBJ += audio/rsound.o
|
|
|
|
DEFINES += $(RSOUND_CFLAGS)
|
|
|
|
LIBS += $(RSOUND_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_DSOUND), 1)
|
|
|
|
OBJ += audio/dsound.o
|
|
|
|
DEFINES += -DHAVE_DSOUND
|
|
|
|
LIBS += -ldxguid -ldsound
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_XAUDIO), 1)
|
|
|
|
OBJ += audio/xaudio.o audio/xaudio-c/xaudio-c.o
|
|
|
|
DEFINES += -DHAVE_XAUDIO
|
|
|
|
LIBS += -lole32
|
|
|
|
endif
|
|
|
|
|
|
|
|
# Audio Resamplers
|
|
|
|
|
|
|
|
ifeq ($(HAVE_NEON),1)
|
|
|
|
OBJ += audio/resamplers/sinc_neon.o
|
2014-09-22 07:33:59 +00:00
|
|
|
OBJ += audio/resamplers/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
|
|
|
|
|
|
|
|
OBJ += audio/utils.o
|
|
|
|
ifeq ($(HAVE_NEON),1)
|
|
|
|
OBJ += audio/utils_neon.o
|
|
|
|
endif
|
|
|
|
|
2014-09-13 22:53:00 +00:00
|
|
|
ifeq ($(HAVE_RGUI), 1)
|
|
|
|
OBJ += frontend/menu/disp/rgui.o
|
|
|
|
DEFINES += -DHAVE_MENU -DHAVE_RGUI
|
|
|
|
HAVE_MENU_COMMON = 1
|
|
|
|
ifeq ($(HAVE_GLUI), 1)
|
|
|
|
OBJ += frontend/menu/disp/glui.o
|
|
|
|
DEFINES += -DHAVE_GLUI
|
|
|
|
endif
|
2014-10-08 23:21:22 +00:00
|
|
|
ifeq ($(HAVE_XMB), 1)
|
|
|
|
OBJ += frontend/menu/disp/xmb.o
|
|
|
|
DEFINES += -DHAVE_XMB
|
|
|
|
endif
|
2014-09-13 22:53:00 +00:00
|
|
|
ifeq ($(HAVE_LAKKA), 1)
|
2014-09-19 11:36:18 +00:00
|
|
|
OBJ += frontend/menu/backend/menu_lakka_backend.o \
|
2014-10-08 23:21:22 +00:00
|
|
|
frontend/menu/disp/lakka.o
|
2014-09-13 22:53:00 +00:00
|
|
|
DEFINES += -DHAVE_LAKKA
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_MENU_COMMON), 1)
|
|
|
|
OBJ += frontend/menu/backend/menu_common_backend.o \
|
|
|
|
frontend/menu/menu_input_line_cb.o \
|
|
|
|
frontend/menu/menu_common.o \
|
|
|
|
frontend/menu/menu_navigation.o \
|
|
|
|
frontend/menu/menu_action.o \
|
2014-09-24 05:56:47 +00:00
|
|
|
frontend/menu/menu_shader.o \
|
2014-10-08 23:21:22 +00:00
|
|
|
frontend/menu/menu_entries.o \
|
2014-10-11 22:45:42 +00:00
|
|
|
frontend/menu/menu_entries_cbs.o \
|
2014-10-17 18:36:02 +00:00
|
|
|
frontend/menu/menu_list.o \
|
2014-10-10 17:53:13 +00:00
|
|
|
frontend/menu/menu_animation.o
|
2014-09-13 22:53:00 +00:00
|
|
|
endif
|
2014-09-13 23:01:52 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_FREETYPE), 1)
|
|
|
|
OBJ += gfx/fonts/freetype.o
|
|
|
|
LIBS += $(FREETYPE_LIBS)
|
|
|
|
DEFINES += $(FREETYPE_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_THREADS), 1)
|
2014-10-21 03:05:52 +00:00
|
|
|
OBJ += autosave.o libretro-sdk/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)
|
|
|
|
#OBJ += input/wayland.o
|
|
|
|
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
|
|
|
|
OBJ += input/dinput.o
|
|
|
|
JOYCONFIG_LIBS += -ldinput8 -ldxguid -lole32
|
|
|
|
JOYCONFIG_OBJ += input/dinput.o
|
|
|
|
endif
|
|
|
|
|
2014-09-13 23:58:57 +00:00
|
|
|
ifeq ($(HAVE_WINXINPUT), 1)
|
2014-09-16 01:13:05 +00:00
|
|
|
DEFINES += -DHAVE_WINXINPUT -DHAVE_BUILTIN_AUTOCONFIG
|
2014-09-14 02:09:14 +00:00
|
|
|
OBJ += input/winxinput_joypad.o \
|
|
|
|
input/autoconf/builtin_win.o
|
2014-09-13 23:58:57 +00:00
|
|
|
JOYCONFIG_OBJ += input/winxinput_joypad.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_X11), 1)
|
|
|
|
OBJ += input/x11_input.o gfx/context/x11_common.o
|
|
|
|
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)
|
|
|
|
LIBS += $(XKBCOMMON_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_UDEV), 1)
|
|
|
|
DEFINES += $(UDEV_CFLAGS)
|
|
|
|
LIBS += $(UDEV_LIBS)
|
|
|
|
JOYCONFIG_LIBS += $(UDEV_LIBS)
|
|
|
|
OBJ += input/udev_input.o input/udev_joypad.o
|
|
|
|
JOYCONFIG_OBJ += tools/udev_joypad.o
|
|
|
|
endif
|
|
|
|
|
2014-10-04 21:04:38 +00:00
|
|
|
ifeq ($(HAVE_PARPORT), 1)
|
|
|
|
OBJ += input/parport_joypad.o
|
|
|
|
JOYCONFIG_OBJ += tools/parport_joypad.o
|
|
|
|
endif
|
2014-09-14 00:52:30 +00:00
|
|
|
|
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
|
2014-09-14 01:44:54 +00:00
|
|
|
OBJ += gfx/gl.o \
|
2014-10-02 11:32:42 +00:00
|
|
|
gfx/gl_common.o \
|
2014-09-14 01:44:54 +00:00
|
|
|
gfx/gfx_context.o \
|
2014-10-07 12:31:10 +00:00
|
|
|
gfx/context/gfx_null_ctx.o \
|
2014-09-14 01:44:54 +00:00
|
|
|
gfx/fonts/gl_font.o \
|
|
|
|
gfx/fonts/gl_raster_font.o \
|
|
|
|
gfx/math/matrix.o \
|
|
|
|
gfx/state_tracker.o \
|
2014-10-21 03:05:52 +00:00
|
|
|
libretro-sdk/glsym/rglgen.o
|
2014-09-14 01:44:54 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_KMS), 1)
|
|
|
|
OBJ += gfx/context/drm_egl_ctx.o
|
|
|
|
DEFINES += $(GBM_CFLAGS) $(DRM_CFLAGS) $(EGL_CFLAGS)
|
|
|
|
LIBS += $(GBM_LIBS) $(DRM_LIBS) $(EGL_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_VIDEOCORE), 1)
|
|
|
|
OBJ += gfx/context/vc_egl_ctx.o
|
|
|
|
DEFINES += $(EGL_CFLAGS)
|
|
|
|
LIBS += $(EGL_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_EMSCRIPTEN), 1)
|
|
|
|
OBJ += gfx/context/emscriptenegl_ctx.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_MALI_FBDEV), 1)
|
|
|
|
OBJ += gfx/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)
|
|
|
|
OBJ += gfx/context/vivante_fbdev_ctx.o
|
|
|
|
DEFINES += $(EGL_CFLAGS)
|
|
|
|
LIBS += $(EGL_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_X11), 1)
|
|
|
|
ifeq ($(HAVE_GLES), 0)
|
|
|
|
OBJ += gfx/context/glx_ctx.o
|
|
|
|
endif
|
|
|
|
ifeq ($(HAVE_EGL), 1)
|
|
|
|
OBJ += gfx/context/xegl_ctx.o
|
|
|
|
DEFINES += $(EGL_CFLAGS)
|
|
|
|
LIBS += $(EGL_LIBS)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_WAYLAND), 1)
|
|
|
|
ifeq ($(HAVE_EGL), 1)
|
|
|
|
OBJ += gfx/context/wayland_ctx.o
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_GLES), 1)
|
|
|
|
LIBS += $(GLES_LIBS)
|
|
|
|
DEFINES += $(GLES_CFLAGS) -DHAVE_OPENGLES -DHAVE_OPENGLES2
|
|
|
|
ifeq ($(HAVE_GLES3), 1)
|
|
|
|
DEFINES += -DHAVE_OPENGLES3
|
|
|
|
endif
|
2014-10-21 03:05:52 +00:00
|
|
|
OBJ += libretro-sdk/glsym/glsym_es2.o
|
2014-09-14 01:44:54 +00:00
|
|
|
else
|
|
|
|
DEFINES += -DHAVE_GL_SYNC
|
2014-10-21 03:05:52 +00:00
|
|
|
OBJ += libretro-sdk/glsym/glsym_gl.o
|
2014-09-14 01:44:54 +00:00
|
|
|
ifeq ($(OSX), 1)
|
|
|
|
LIBS += -framework OpenGL
|
|
|
|
else ifneq ($(findstring Win32,$(OS)),)
|
|
|
|
LIBS += -lopengl32 -lgdi32 -lcomdlg32
|
2014-09-14 01:55:10 +00:00
|
|
|
OBJ += gfx/context/wgl_ctx.o
|
2014-09-14 01:44:54 +00:00
|
|
|
else
|
|
|
|
LIBS += -lGL
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2014-10-01 22:45:11 +00:00
|
|
|
OBJ += gfx/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)
|
|
|
|
OBJ += gfx/sdl_gfx.o input/sdl_input.o input/sdl_joypad.o audio/sdl_audio.o
|
|
|
|
|
|
|
|
ifeq ($(HAVE_OPENGL), 1)
|
|
|
|
OBJ += gfx/context/sdl_gl_ctx.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
JOYCONFIG_OBJ += input/sdl_joypad.o
|
|
|
|
JOYCONFIG_LIBS += $(SDL_LIBS)
|
|
|
|
DEFINES += $(SDL_CFLAGS) $(BSD_LOCAL_INC)
|
|
|
|
LIBS += $(SDL_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_SDL2), 1)
|
|
|
|
OBJ += gfx/sdl2_gfx.o input/sdl_input.o input/sdl_joypad.o audio/sdl_audio.o
|
|
|
|
|
|
|
|
ifeq ($(HAVE_OPENGL), 1)
|
|
|
|
OBJ += gfx/context/sdl_gl_ctx.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
JOYCONFIG_OBJ += input/sdl_joypad.o
|
|
|
|
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)
|
|
|
|
OBJ += gfx/omap_gfx.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_EXYNOS), 1)
|
|
|
|
OBJ += gfx/exynos_gfx.o mem/neon/memcpy-neon.o
|
|
|
|
LIBS += $(DRM_LIBS) $(EXYNOS_LIBS)
|
|
|
|
DEFINES += $(DRM_CFLAGS) $(EXYNOS_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
2014-09-13 23:58:57 +00:00
|
|
|
ifeq ($(HAVE_VG), 1)
|
|
|
|
OBJ += gfx/vg.o gfx/math/matrix_3x3.o
|
|
|
|
DEFINES += $(VG_CFLAGS)
|
|
|
|
LIBS += $(VG_LIBS)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_XVIDEO), 1)
|
|
|
|
OBJ += gfx/xvideo.o
|
|
|
|
LIBS += $(XVIDEO_LIBS)
|
|
|
|
DEFINES += $(XVIDEO_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
2014-09-14 00:05:17 +00:00
|
|
|
ifeq ($(HAVE_CG), 1)
|
|
|
|
DEFINES += -DHAVE_CG
|
2014-10-02 13:19:21 +00:00
|
|
|
OBJ += gfx/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 \
|
|
|
|
gfx/d3d/render_chain.o \
|
|
|
|
gfx/d3d/d3d_wrapper.o \
|
2014-09-14 00:05:17 +00:00
|
|
|
gfx/fonts/d3d_font.o \
|
|
|
|
gfx/fonts/d3d_w32_font.o \
|
|
|
|
gfx/context/d3d_ctx.o
|
|
|
|
DEFINES += -DHAVE_WIN32_D3D9
|
|
|
|
LIBS += -ld3d9 -ld3dx9 -ldxguid
|
2014-09-16 20:45:45 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_CG), 1)
|
|
|
|
LIBS += -lcgD3D9
|
|
|
|
endif
|
2014-09-14 00:05:17 +00:00
|
|
|
endif
|
2014-09-14 00:15:41 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_LIBXML2), 1)
|
|
|
|
LIBS += $(LIBXML2_LIBS)
|
|
|
|
DEFINES += $(LIBXML2_CFLAGS)
|
|
|
|
else
|
|
|
|
OBJ += compat/rxml/rxml.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
# 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)
|
|
|
|
JOYCONFIG_OBJ += $(7ZOBJ)
|
|
|
|
endif
|
2014-09-14 00:52:30 +00:00
|
|
|
|
2014-09-14 02:50:10 +00:00
|
|
|
ifeq ($(HAVE_ZLIB), 1)
|
|
|
|
ZLIB_OBJS = decompress/zip_support.o
|
|
|
|
OBJ += gfx/rpng/rpng.o file_extract.o
|
|
|
|
OBJ += $(ZLIB_OBJS)
|
|
|
|
JOYCONFIG_OBJ += $(ZLIB_OBJS)
|
|
|
|
DEFINES += -DHAVE_ZLIB
|
|
|
|
HAVE_COMPRESSION = 1
|
|
|
|
ifeq ($(WANT_MINIZ), 1)
|
|
|
|
DEFINES += -DWANT_MINIZ
|
|
|
|
else
|
|
|
|
LIBS += -lz
|
|
|
|
JOYCONFIG_LIBS += -lz
|
|
|
|
HAVE_ZLIB_DEFLATE = 1
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2014-09-16 17:20:15 +00:00
|
|
|
ifdef HAVE_COMPRESSION
|
|
|
|
DEFINES += -DHAVE_COMPRESSION
|
|
|
|
endif
|
|
|
|
|
2014-09-14 02:50:10 +00:00
|
|
|
ifeq ($(WANT_MINIZ),1)
|
|
|
|
OBJ += deps/rzlib/adler32.o \
|
|
|
|
deps/rzlib/compress.o \
|
|
|
|
deps/rzlib/crc32.o \
|
|
|
|
deps/rzlib/deflate.o \
|
|
|
|
deps/rzlib/gzclose.o \
|
|
|
|
deps/rzlib/gzlib.o \
|
|
|
|
deps/rzlib/gzread.o \
|
|
|
|
deps/rzlib/gzwrite.o \
|
|
|
|
deps/rzlib/inffast.o \
|
|
|
|
deps/rzlib/inflate.o \
|
|
|
|
deps/rzlib/inftrees.o \
|
|
|
|
deps/rzlib/trees.o \
|
|
|
|
deps/rzlib/uncompr.o \
|
|
|
|
deps/rzlib/zutil.o \
|
|
|
|
deps/rzlib/ioapi.o \
|
|
|
|
deps/rzlib/unzip.o
|
|
|
|
else
|
2014-09-17 16:44:48 +00:00
|
|
|
ifeq ($(HAVE_ZLIB),1)
|
2014-09-14 02:50:10 +00:00
|
|
|
ZLIB_OBJS = deps/rzlib/unzip.o deps/rzlib/ioapi.o
|
|
|
|
OBJ += $(ZLIB_OBJS)
|
|
|
|
JOYCONFIG_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)
|
|
|
|
OBJ += camera/video4linux2.o
|
|
|
|
DEFINES += -DHAVE_V4L2
|
|
|
|
endif
|
|
|
|
|
2014-09-14 01:38:36 +00:00
|
|
|
# Netplay
|
|
|
|
|
|
|
|
ifeq ($(HAVE_NETPLAY), 1)
|
|
|
|
DEFINES += -DHAVE_NETPLAY -DHAVE_NETWORK_CMD
|
|
|
|
OBJ += netplay.o
|
|
|
|
ifneq ($(findstring Win32,$(OS)),)
|
|
|
|
LIBS += -lws2_32
|
|
|
|
endif
|
|
|
|
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 \
|
|
|
|
gfx/context/win32_common.o
|
2014-09-14 02:00:27 +00:00
|
|
|
endif
|
2014-09-14 02:43:18 +00:00
|
|
|
|
|
|
|
# Record
|
|
|
|
|
|
|
|
ifeq ($(HAVE_FFMPEG), 1)
|
|
|
|
OBJ += record/ffmpeg.o
|
|
|
|
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
|
|
|
|
|
2014-10-16 05:34:59 +00:00
|
|
|
# Joyconfig binary
|
2014-09-15 16:46:07 +00:00
|
|
|
|
|
|
|
JOYCONFIG_OBJ += tools/retroarch-joyconfig.o \
|
|
|
|
conf/config_file.o \
|
2014-10-21 21:33:20 +00:00
|
|
|
file_path.o \
|
2014-10-21 17:59:27 +00:00
|
|
|
libretro-sdk/string/string_list.o \
|
2014-10-21 05:58:58 +00:00
|
|
|
libretro-sdk/compat/compat.o \
|
2014-09-15 16:46:07 +00:00
|
|
|
tools/input_common_joyconfig.o
|