2015-07-26 15:02:51 +00:00
|
|
|
SOURCES_CXX :=
|
|
|
|
SOURCES_C :=
|
|
|
|
|
2016-05-02 19:24:25 +00:00
|
|
|
DEPS_DIR := $(CORE_DIR)/deps
|
2020-06-29 22:29:58 +00:00
|
|
|
LIBRETRO_COMM_DIR := $(CORE_DIR)/libretro-common
|
2016-05-04 23:06:13 +00:00
|
|
|
LIBKIRK_DIR := $(DEPS_DIR)/libkirk
|
2015-07-26 15:02:51 +00:00
|
|
|
MEDNAFEN_DIR := $(CORE_DIR)/mednafen
|
|
|
|
CORE_EMU_DIR := $(MEDNAFEN_DIR)/psx
|
2019-07-02 02:16:36 +00:00
|
|
|
RSXGL_DIR := $(CORE_DIR)/rustation-libretro/src
|
2017-12-15 20:34:22 +00:00
|
|
|
CDROM_DIR := $(MEDNAFEN_DIR)/cdrom
|
2021-04-11 23:17:20 +00:00
|
|
|
LIBZMA_DIR := $(DEPS_DIR)/lzma-19.00
|
|
|
|
ZLIB_DIR := $(DEPS_DIR)/zlib-1.2.11
|
2015-07-26 15:02:51 +00:00
|
|
|
|
2020-11-03 13:00:11 +00:00
|
|
|
LIBCHDR_INCFLAGS = \
|
2021-04-11 23:17:20 +00:00
|
|
|
-I$(LIBZMA_DIR)/include \
|
2020-11-03 13:00:11 +00:00
|
|
|
-I$(DEPS_DIR)/libchdr/include
|
|
|
|
LIBCHDR_SOURCES_C = \
|
2021-04-11 23:17:20 +00:00
|
|
|
$(LIBZMA_DIR)/src/Alloc.c \
|
|
|
|
$(LIBZMA_DIR)/src/Bra86.c \
|
|
|
|
$(LIBZMA_DIR)/src/BraIA64.c \
|
|
|
|
$(LIBZMA_DIR)/src/CpuArch.c \
|
|
|
|
$(LIBZMA_DIR)/src/Delta.c \
|
|
|
|
$(LIBZMA_DIR)/src/LzFind.c \
|
|
|
|
$(LIBZMA_DIR)/src/Lzma86Dec.c \
|
|
|
|
$(LIBZMA_DIR)/src/LzmaDec.c \
|
|
|
|
$(LIBZMA_DIR)/src/LzmaEnc.c \
|
2020-11-03 13:00:11 +00:00
|
|
|
$(DEPS_DIR)/libchdr/src/libchdr_bitstream.c \
|
|
|
|
$(DEPS_DIR)/libchdr/src/libchdr_cdrom.c \
|
|
|
|
$(DEPS_DIR)/libchdr/src/libchdr_chd.c \
|
|
|
|
$(DEPS_DIR)/libchdr/src/libchdr_flac.c \
|
|
|
|
$(DEPS_DIR)/libchdr/src/libchdr_huffman.c
|
|
|
|
|
2021-04-11 23:17:20 +00:00
|
|
|
ZLIB_INCFLAGS = -I$(ZLIB_DIR)
|
|
|
|
ZLIB_SOURCES_C = \
|
2021-10-03 22:33:43 +00:00
|
|
|
$(ZLIB_DIR)/adler32.c \
|
|
|
|
$(ZLIB_DIR)/crc32.c \
|
|
|
|
$(ZLIB_DIR)/inffast.c \
|
|
|
|
$(ZLIB_DIR)/inflate.c \
|
2021-11-27 14:41:25 +00:00
|
|
|
$(ZLIB_DIR)/inftrees.c \
|
|
|
|
$(ZLIB_DIR)/zutil.c
|
2020-06-05 09:44:47 +00:00
|
|
|
|
2016-03-24 17:12:12 +00:00
|
|
|
ifeq ($(HAVE_OPENGL), 1)
|
2022-07-07 01:17:16 +00:00
|
|
|
ifeq ($(GLES3), 1)
|
|
|
|
GLFLAGS := -DHAVE_OPENGLES -DHAVE_OPENGLES3
|
|
|
|
CFLAGS += $(GLFLAGS)
|
|
|
|
CXXFLAGS += $(GLFLAGS)
|
|
|
|
SOURCES_C += $(LIBRETRO_COMM_DIR)/glsym/glsym_es3.c
|
|
|
|
else ifeq ($(GLES), 1)
|
2017-11-09 07:52:08 +00:00
|
|
|
GLFLAGS := -DHAVE_OPENGLES -DHAVE_OPENGLES2
|
|
|
|
CFLAGS += $(GLFLAGS)
|
|
|
|
CXXFLAGS += $(GLFLAGS)
|
2020-06-29 22:29:58 +00:00
|
|
|
SOURCES_C += $(LIBRETRO_COMM_DIR)/glsym/glsym_es2.c
|
2017-11-09 07:52:08 +00:00
|
|
|
else
|
|
|
|
GLFLAGS := -DHAVE_OPENGL -DCORE
|
|
|
|
CFLAGS += $(GLFLAGS)
|
|
|
|
CXXFLAGS += $(GLFLAGS)
|
2020-06-29 22:29:58 +00:00
|
|
|
SOURCES_C += $(LIBRETRO_COMM_DIR)/glsym/glsym_gl.c
|
2017-11-09 07:52:08 +00:00
|
|
|
endif
|
2016-02-11 21:45:48 +00:00
|
|
|
|
2020-06-29 22:29:58 +00:00
|
|
|
SOURCES_C += $(LIBRETRO_COMM_DIR)/glsm/glsm.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/glsym/rglgen.c
|
2019-12-13 20:46:06 +00:00
|
|
|
|
|
|
|
SOURCES_CXX += $(CORE_DIR)/rsx/rsx_lib_gl.cpp
|
2016-05-20 23:49:48 +00:00
|
|
|
endif
|
2016-05-02 18:32:55 +00:00
|
|
|
|
2017-11-09 07:52:08 +00:00
|
|
|
INCFLAGS := -I$(CORE_DIR) \
|
|
|
|
-I$(MEDNAFEN_DIR) \
|
|
|
|
-I$(MEDNAFEN_DIR)/include \
|
|
|
|
-I$(MEDNAFEN_DIR)/intl \
|
|
|
|
-I$(MEDNAFEN_DIR)/hw_sound \
|
|
|
|
-I$(MEDNAFEN_DIR)/hw_cpu \
|
|
|
|
-I$(MEDNAFEN_DIR)/hw_misc \
|
2020-06-29 22:29:58 +00:00
|
|
|
-I$(LIBRETRO_COMM_DIR)/include \
|
2018-07-01 02:25:41 +00:00
|
|
|
-I$(DEPS_DIR)/ugui
|
2016-05-02 18:32:55 +00:00
|
|
|
|
2017-12-19 15:08:04 +00:00
|
|
|
ifneq (,$(findstring msvc,$(platform)))
|
2020-06-05 09:44:47 +00:00
|
|
|
INCFLAGS += -I$(CORE_DIR)/msvc
|
2017-12-19 15:08:04 +00:00
|
|
|
endif
|
|
|
|
|
2020-06-05 09:44:47 +00:00
|
|
|
SOURCES_C += $(DEPS_DIR)/ugui/ugui.c \
|
2019-07-02 02:15:43 +00:00
|
|
|
$(CORE_DIR)/ugui_tools.c
|
2016-05-02 19:24:25 +00:00
|
|
|
|
2020-06-05 09:44:47 +00:00
|
|
|
ifeq ($(SYSTEM_ZLIB), 1)
|
|
|
|
CFLAGS += $(shell pkg-config --cflags zlib)
|
|
|
|
LIBS += $(shell pkg-config --libs zlib)
|
|
|
|
else
|
|
|
|
INCFLAGS += $(ZLIB_INCFLAGS)
|
|
|
|
SOURCES_C += $(ZLIB_SOURCES_C)
|
|
|
|
endif
|
|
|
|
|
2014-11-02 06:47:01 +00:00
|
|
|
ifeq ($(HAVE_GRIFFIN),1)
|
2017-11-09 07:52:08 +00:00
|
|
|
SOURCES_CXX += beetle_psx_griffin.cpp \
|
2017-11-09 08:10:34 +00:00
|
|
|
$(CORE_EMU_DIR)/dma.cpp \
|
|
|
|
$(CORE_EMU_DIR)/sio.cpp
|
2016-01-31 10:36:13 +00:00
|
|
|
|
2017-11-09 07:52:08 +00:00
|
|
|
SOURCES_C += beetle_psx_griffin_c.c
|
2014-11-02 06:47:01 +00:00
|
|
|
endif
|
|
|
|
|
2016-08-14 11:15:13 +00:00
|
|
|
FLAGS += -DHAVE_PBP
|
|
|
|
|
2015-07-29 16:32:39 +00:00
|
|
|
ifeq ($(DEBUG), 1)
|
2017-11-09 18:22:45 +00:00
|
|
|
SOURCES_CXX += $(CORE_EMU_DIR)/dis.cpp
|
2015-07-29 16:32:39 +00:00
|
|
|
endif
|
|
|
|
|
2014-11-02 06:47:01 +00:00
|
|
|
ifeq ($(NEED_THREADING), 1)
|
2016-02-09 17:02:52 +00:00
|
|
|
FLAGS += -DWANT_THREADING -DHAVE_THREADS
|
2014-11-02 06:47:01 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_CRC32), 1)
|
|
|
|
FLAGS += -DWANT_CRC32
|
2017-11-09 18:22:45 +00:00
|
|
|
SOURCES_C += $(CORE_DIR)/scrc32.c
|
2014-11-02 06:47:01 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_DEINTERLACER), 1)
|
|
|
|
FLAGS += -DNEED_DEINTERLACER
|
|
|
|
endif
|
|
|
|
|
2015-07-26 15:02:51 +00:00
|
|
|
ifeq ($(IS_X86), 1)
|
2017-11-09 07:52:08 +00:00
|
|
|
FLAGS += -DARCH_X86
|
2015-07-26 15:02:51 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_BPP), 8)
|
2017-11-09 07:52:08 +00:00
|
|
|
FLAGS += -DWANT_8BPP
|
2015-07-26 15:02:51 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_BPP), 16)
|
2017-11-09 07:52:08 +00:00
|
|
|
FLAGS += -DWANT_16BPP
|
2015-07-26 15:02:51 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_BPP), 32)
|
2017-11-09 07:52:08 +00:00
|
|
|
FLAGS += -DWANT_32BPP
|
2015-07-26 15:02:51 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NO_COMPUTED_GOTO), 1)
|
2017-11-09 07:52:08 +00:00
|
|
|
FLAGS += -DNO_COMPUTED_GOTO
|
2015-07-26 15:02:51 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(FRONTEND_SUPPORTS_RGB565), 1)
|
2017-11-09 07:52:08 +00:00
|
|
|
FLAGS += -DFRONTEND_SUPPORTS_RGB565
|
2015-07-26 15:02:51 +00:00
|
|
|
endif
|
|
|
|
|
2016-01-31 10:36:13 +00:00
|
|
|
ifeq ($(NEED_CD), 1)
|
|
|
|
FLAGS += -DNEED_CD
|
|
|
|
endif
|
|
|
|
|
2019-07-02 02:16:36 +00:00
|
|
|
ifeq ($(HAVE_CHD), 1)
|
2021-03-22 11:28:42 +00:00
|
|
|
FLAGS += -DHAVE_CHD -D_7ZIP_ST
|
2020-06-05 09:44:47 +00:00
|
|
|
|
|
|
|
ifeq ($(SYSTEM_LIBCHDR), 1)
|
|
|
|
INCFLAGS += $(shell pkg-config --cflags libchdr)
|
|
|
|
LIBS += $(shell pkg-config --libs libchdr)
|
|
|
|
else
|
2020-11-03 13:06:51 +00:00
|
|
|
INCFLAGS += $(LIBCHDR_INCFLAGS)
|
2019-07-02 02:16:36 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2016-01-31 10:36:13 +00:00
|
|
|
ifeq ($(NEED_TREMOR), 1)
|
|
|
|
FLAGS += -DNEED_TREMOR
|
|
|
|
endif
|
|
|
|
|
2020-01-21 23:26:20 +00:00
|
|
|
ifeq ($(HAVE_LIGHTREC), 1)
|
|
|
|
FLAGS += -DHAVE_LIGHTREC
|
|
|
|
|
2021-05-11 23:05:23 +00:00
|
|
|
ifeq ($(LIGHTREC_LOG_LEVEL),)
|
2021-08-21 01:56:46 +00:00
|
|
|
FLAGS += -DLOG_LEVEL=3 \
|
2021-05-11 23:05:23 +00:00
|
|
|
-DENABLE_DISASSEMBLER=0
|
|
|
|
else
|
|
|
|
ifeq ($(LIGHTREC_LOG_LEVEL), 4)
|
|
|
|
FLAGS += -DLOG_LEVEL=4 \
|
|
|
|
-DENABLE_DISASSEMBLER=1
|
|
|
|
else
|
|
|
|
FLAGS += -DLOG_LEVEL=$(LIGHTREC_LOG_LEVEL) \
|
|
|
|
-DENABLE_DISASSEMBLER=0
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2021-04-21 04:09:46 +00:00
|
|
|
ifeq ($(NO_GCC), 1)
|
|
|
|
FLAGS += -DHAS_DEFAULT_ELM=0
|
|
|
|
else
|
|
|
|
FLAGS += -DHAS_DEFAULT_ELM=1
|
|
|
|
endif
|
|
|
|
|
2020-01-24 03:34:36 +00:00
|
|
|
ifeq ($(THREADED_RECOMPILER), 0)
|
2020-01-21 23:26:20 +00:00
|
|
|
FLAGS += -DENABLE_THREADED_COMPILER=0
|
2020-01-24 03:34:36 +00:00
|
|
|
else
|
|
|
|
ifeq ($(DEBUG), 0)
|
|
|
|
FLAGS += -DENABLE_THREADED_COMPILER=1
|
|
|
|
else
|
|
|
|
FLAGS += -DENABLE_THREADED_COMPILER=0
|
|
|
|
endif
|
2020-01-21 23:26:20 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(findstring win,$(platform)))
|
|
|
|
FLAGS += -DLIGHTREC_STATIC=1
|
|
|
|
INCFLAGS += -isystem$(DEPS_DIR)/mman
|
|
|
|
endif
|
|
|
|
|
|
|
|
INCFLAGS += -I$(DEPS_DIR)/lightning/include \
|
2021-04-24 23:14:00 +00:00
|
|
|
-I$(DEPS_DIR)/lightrec \
|
2021-08-24 23:21:14 +00:00
|
|
|
-I$(CORE_DIR)/lightning-lightrec-include \
|
|
|
|
-include $(CORE_DIR)/lightning-lightrec-include/debug.h
|
2020-01-21 23:26:20 +00:00
|
|
|
endif
|
|
|
|
|
2016-01-31 10:36:13 +00:00
|
|
|
ifneq ($(HAVE_GRIFFIN), 1)
|
2017-11-09 07:52:08 +00:00
|
|
|
SOURCES_CXX += $(CORE_EMU_DIR)/irq.cpp \
|
2017-11-09 08:10:34 +00:00
|
|
|
$(CORE_EMU_DIR)/timer.cpp \
|
|
|
|
$(CORE_EMU_DIR)/dma.cpp \
|
|
|
|
$(CORE_EMU_DIR)/frontio.cpp \
|
|
|
|
$(CORE_EMU_DIR)/sio.cpp \
|
|
|
|
$(CORE_EMU_DIR)/cpu.cpp \
|
|
|
|
$(CORE_EMU_DIR)/gte.cpp \
|
|
|
|
$(CORE_EMU_DIR)/cdc.cpp \
|
|
|
|
$(CORE_EMU_DIR)/spu.cpp \
|
|
|
|
$(CORE_EMU_DIR)/gpu.cpp \
|
2020-09-18 13:07:30 +00:00
|
|
|
$(CORE_EMU_DIR)/gpu_polygon_sub.cpp \
|
2017-11-09 08:10:34 +00:00
|
|
|
$(CORE_EMU_DIR)/mdec.cpp \
|
|
|
|
$(CORE_EMU_DIR)/input/gamepad.cpp \
|
|
|
|
$(CORE_EMU_DIR)/input/dualanalog.cpp \
|
|
|
|
$(CORE_EMU_DIR)/input/dualshock.cpp \
|
|
|
|
$(CORE_EMU_DIR)/input/justifier.cpp \
|
|
|
|
$(CORE_EMU_DIR)/input/guncon.cpp \
|
|
|
|
$(CORE_EMU_DIR)/input/negcon.cpp \
|
2024-07-18 20:32:18 +00:00
|
|
|
$(CORE_EMU_DIR)/input/negconrumble.cpp \
|
2017-11-09 08:10:34 +00:00
|
|
|
$(CORE_EMU_DIR)/input/memcard.cpp \
|
|
|
|
$(CORE_EMU_DIR)/input/multitap.cpp \
|
|
|
|
$(CORE_EMU_DIR)/input/mouse.cpp
|
2017-11-09 07:52:08 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_JIT), 1)
|
2017-11-09 18:22:45 +00:00
|
|
|
SOURCES_CXX += $(CORE_EMU_DIR)/decomp.cpp
|
2017-11-09 07:52:08 +00:00
|
|
|
endif
|
2016-06-05 15:18:11 +00:00
|
|
|
|
2019-12-08 17:26:41 +00:00
|
|
|
SOURCES_C += $(CORE_DIR)/libretro_cbs.c \
|
|
|
|
$(CORE_DIR)/beetle_psx_globals.c
|
2016-05-25 16:14:19 +00:00
|
|
|
|
2017-11-09 07:52:08 +00:00
|
|
|
ifeq ($(NEED_TREMOR), 1)
|
|
|
|
SOURCES_C += $(sort $(wildcard $(MEDNAFEN_DIR)/tremor/*.c))
|
|
|
|
endif
|
2015-07-26 15:02:51 +00:00
|
|
|
|
2017-12-15 20:34:22 +00:00
|
|
|
SOURCES_CXX += $(CDROM_DIR)/CDAccess.cpp \
|
2019-12-07 18:07:29 +00:00
|
|
|
$(CDROM_DIR)/CDAccess_Image.cpp \
|
|
|
|
$(CDROM_DIR)/CDAccess_CCD.cpp \
|
|
|
|
$(CDROM_DIR)/CDAccess_PBP.cpp \
|
|
|
|
$(CDROM_DIR)/audioreader.cpp \
|
|
|
|
$(CDROM_DIR)/misc.cpp \
|
|
|
|
$(CDROM_DIR)/cdromif.cpp
|
2017-12-15 20:34:22 +00:00
|
|
|
|
|
|
|
SOURCES_C += $(CDROM_DIR)/CDUtility.c \
|
2019-12-07 18:07:29 +00:00
|
|
|
$(CDROM_DIR)/galois.c \
|
|
|
|
$(CDROM_DIR)/l-ec.c \
|
|
|
|
$(CDROM_DIR)/lec.c \
|
|
|
|
$(CDROM_DIR)/recover-raw.c \
|
|
|
|
$(CDROM_DIR)/edc_crc32.c
|
2016-08-14 12:17:05 +00:00
|
|
|
|
2017-11-09 07:52:08 +00:00
|
|
|
SOURCES_CXX += $(MEDNAFEN_DIR)/error.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/general.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/FileStream.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/MemoryStream.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/Stream.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/mempatcher.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/video/Deinterlacer.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/video/surface.cpp \
|
2017-11-19 10:45:16 +00:00
|
|
|
$(CORE_DIR)/libretro.cpp \
|
2019-12-07 18:07:29 +00:00
|
|
|
$(MEDNAFEN_DIR)/mednafen-endian.cpp \
|
2019-07-07 06:52:23 +00:00
|
|
|
$(CORE_DIR)/input.cpp \
|
2019-12-07 18:07:29 +00:00
|
|
|
$(CORE_DIR)/rsx/rsx_intf.cpp
|
2017-11-09 07:52:08 +00:00
|
|
|
|
2020-09-18 20:14:03 +00:00
|
|
|
SOURCES_C += \
|
2020-09-14 04:52:05 +00:00
|
|
|
$(MEDNAFEN_DIR)/settings.c \
|
2020-07-01 16:20:31 +00:00
|
|
|
$(MEDNAFEN_DIR)/state.c
|
2017-11-09 07:52:08 +00:00
|
|
|
|
|
|
|
ifneq ($(RSX_DUMP),)
|
|
|
|
SOURCES_CXX += $(CORE_DIR)/rsx/rsx_dump.cpp
|
2017-11-09 18:22:45 +00:00
|
|
|
CFLAGS += -DRSX_DUMP
|
|
|
|
CXXFLAGS += -DRSX_DUMP
|
2017-11-09 07:52:08 +00:00
|
|
|
endif
|
2016-11-29 19:21:04 +00:00
|
|
|
|
2017-11-09 07:52:08 +00:00
|
|
|
ifeq ($(HAVE_VULKAN), 1)
|
2020-06-16 23:53:12 +00:00
|
|
|
CFLAGS += -DTEXTURE_DUMPING_ENABLED
|
|
|
|
CXXFLAGS += -DTEXTURE_DUMPING_ENABLED
|
2017-11-09 18:22:45 +00:00
|
|
|
SOURCES_CXX += $(wildcard $(CORE_DIR)/parallel-psx/renderer/*.cpp) \
|
2020-05-13 22:40:38 +00:00
|
|
|
$(wildcard $(CORE_DIR)/parallel-psx/custom-textures/*.cpp) \
|
2017-11-09 08:10:34 +00:00
|
|
|
$(wildcard $(CORE_DIR)/parallel-psx/atlas/*.cpp) \
|
|
|
|
$(wildcard $(CORE_DIR)/parallel-psx/vulkan/*.cpp) \
|
2018-12-12 11:23:05 +00:00
|
|
|
$(wildcard $(CORE_DIR)/parallel-psx/SPIRV-Cross/*.cpp) \
|
2019-12-14 00:20:48 +00:00
|
|
|
$(CORE_DIR)/parallel-psx/util/timer.cpp \
|
|
|
|
$(CORE_DIR)/rsx/rsx_lib_vulkan.cpp
|
2017-11-09 08:10:34 +00:00
|
|
|
|
2018-12-12 11:23:05 +00:00
|
|
|
SOURCES_C += $(wildcard $(CORE_DIR)/parallel-psx/volk/*.c)
|
|
|
|
|
|
|
|
EXTRA_INCLUDES += -I$(CORE_DIR)/parallel-psx/SPIRV-Cross \
|
2017-11-09 08:10:34 +00:00
|
|
|
-I$(CORE_DIR)/parallel-psx/renderer \
|
|
|
|
-I$(CORE_DIR)/parallel-psx/khronos/include \
|
|
|
|
-I$(CORE_DIR)/parallel-psx/atlas \
|
|
|
|
-I$(CORE_DIR)/parallel-psx/vulkan \
|
2018-12-12 11:23:05 +00:00
|
|
|
-I$(CORE_DIR)/parallel-psx/util \
|
|
|
|
-I$(CORE_DIR)/parallel-psx/volk \
|
2017-11-09 08:10:34 +00:00
|
|
|
-I$(CORE_DIR)/parallel-psx/glsl/prebuilt
|
2017-11-09 07:52:08 +00:00
|
|
|
|
2018-12-15 20:48:02 +00:00
|
|
|
CXXFLAGS += -std=c++11 -DHAVE_LIBRETRO
|
2017-11-09 07:52:08 +00:00
|
|
|
ifneq ($(VULKAN_DEBUG),)
|
|
|
|
FLAGS += -DVULKAN_DEBUG
|
|
|
|
endif
|
2019-07-02 02:16:36 +00:00
|
|
|
endif
|
2016-11-29 19:21:04 +00:00
|
|
|
|
2017-11-09 07:52:08 +00:00
|
|
|
ifneq ($(STATIC_LINKING), 1)
|
2020-06-29 22:29:58 +00:00
|
|
|
SOURCES_C += $(LIBRETRO_COMM_DIR)/streams/file_stream.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/streams/file_stream_transforms.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/file/file_path.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/file/retro_dirent.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/lists/dir_list.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/lists/string_list.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/string/stdstring.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_strl.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/compat/fopen_utf8.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_strcasestr.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_posix_string.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/memmap/memalign.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/time/rtime.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/hash/rhash.c
|
2017-10-08 12:48:06 +00:00
|
|
|
|
2019-06-30 06:02:34 +00:00
|
|
|
ifeq ($(HAVE_CDROM), 1)
|
2019-12-07 18:07:29 +00:00
|
|
|
CFLAGS += -DHAVE_CDROM
|
|
|
|
CXXFLAGS += -DHAVE_CDROM
|
2020-06-29 22:29:58 +00:00
|
|
|
SOURCES_C += $(LIBRETRO_COMM_DIR)/cdrom/cdrom.c \
|
|
|
|
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation_cdrom.c
|
2019-06-30 06:02:34 +00:00
|
|
|
|
|
|
|
ifeq ($(CDROM_DEBUG), 1)
|
2019-12-07 18:07:29 +00:00
|
|
|
CFLAGS += -DCDROM_DEBUG
|
|
|
|
CXXFLAGS += -DCDROM_DEBUG
|
|
|
|
endif
|
2019-06-30 06:02:34 +00:00
|
|
|
endif
|
|
|
|
|
2017-11-09 07:52:08 +00:00
|
|
|
ifeq ($(NEED_THREADING), 1)
|
2020-06-29 22:29:58 +00:00
|
|
|
SOURCES_C += $(LIBRETRO_COMM_DIR)/rthreads/rthreads.c
|
2017-11-09 07:52:08 +00:00
|
|
|
endif
|
2019-07-02 02:16:36 +00:00
|
|
|
|
2017-11-09 07:52:08 +00:00
|
|
|
endif
|
|
|
|
endif ## ifneq($(HAVE_GRIFFIN, 1))
|
2017-04-26 14:08:21 +00:00
|
|
|
|
2019-07-02 02:16:36 +00:00
|
|
|
SOURCES_C += $(LIBKIRK_DIR)/aes.c \
|
|
|
|
$(LIBKIRK_DIR)/amctrl.c \
|
|
|
|
$(LIBKIRK_DIR)/bn.c \
|
|
|
|
$(LIBKIRK_DIR)/des.c \
|
|
|
|
$(LIBKIRK_DIR)/ec.c \
|
|
|
|
$(LIBKIRK_DIR)/kirk_engine.c \
|
|
|
|
$(LIBKIRK_DIR)/sha1.c
|
|
|
|
|
|
|
|
SOURCES_C += $(CORE_DIR)/pgxp/pgxp_cpu.c \
|
|
|
|
$(CORE_DIR)/pgxp/pgxp_debug.c \
|
|
|
|
$(CORE_DIR)/pgxp/pgxp_gpu.c \
|
|
|
|
$(CORE_DIR)/pgxp/pgxp_gte.c \
|
|
|
|
$(CORE_DIR)/pgxp/pgxp_main.c \
|
|
|
|
$(CORE_DIR)/pgxp/pgxp_mem.c \
|
|
|
|
$(CORE_DIR)/pgxp/pgxp_value.c
|
2017-09-01 09:25:39 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_CHD), 1)
|
2020-06-05 09:44:47 +00:00
|
|
|
ifneq ($(SYSTEM_LIBCHDR), 1)
|
|
|
|
SOURCES_C += $(LIBCHDR_SOURCES_C)
|
2017-09-01 09:25:39 +00:00
|
|
|
endif
|
|
|
|
|
2017-11-09 07:52:08 +00:00
|
|
|
SOURCES_CXX += $(CDROM_DIR)/CDAccess_CHD.cpp
|
|
|
|
endif ## ifeq ($(HAVE_CHD), 1)
|
2020-01-21 23:26:20 +00:00
|
|
|
|
|
|
|
ifeq ($(HAVE_LIGHTREC), 1)
|
2022-07-16 17:19:12 +00:00
|
|
|
SOURCES_C += $(DEPS_DIR)/lightning/lib/jit_memory.c \
|
2020-01-21 23:26:20 +00:00
|
|
|
$(DEPS_DIR)/lightning/lib/jit_names.c \
|
|
|
|
$(DEPS_DIR)/lightning/lib/jit_note.c \
|
|
|
|
$(DEPS_DIR)/lightning/lib/jit_size.c \
|
|
|
|
$(DEPS_DIR)/lightning/lib/lightning.c \
|
|
|
|
$(DEPS_DIR)/lightrec/blockcache.c \
|
|
|
|
$(DEPS_DIR)/lightrec/emitter.c \
|
|
|
|
$(DEPS_DIR)/lightrec/interpreter.c \
|
|
|
|
$(DEPS_DIR)/lightrec/lightrec.c \
|
|
|
|
$(DEPS_DIR)/lightrec/memmanager.c \
|
|
|
|
$(DEPS_DIR)/lightrec/optimizer.c \
|
2020-04-27 16:55:59 +00:00
|
|
|
$(DEPS_DIR)/lightrec/reaper.c \
|
2020-01-21 23:26:20 +00:00
|
|
|
$(DEPS_DIR)/lightrec/regcache.c
|
|
|
|
|
2020-01-24 03:34:36 +00:00
|
|
|
ifeq ($(THREADED_RECOMPILER), 1)
|
|
|
|
ifeq ($(DEBUG), 0)
|
|
|
|
SOURCES_C += $(DEPS_DIR)/lightrec/recompiler.c
|
|
|
|
endif
|
2020-01-21 23:26:20 +00:00
|
|
|
endif
|
|
|
|
|
2021-05-11 23:05:23 +00:00
|
|
|
ifeq ($(LIGHTREC_LOG_LEVEL), 4)
|
|
|
|
SOURCES_C += $(DEPS_DIR)/lightrec/disassembler.c
|
|
|
|
endif
|
|
|
|
|
2020-01-21 23:26:20 +00:00
|
|
|
ifneq (,$(findstring win,$(platform)))
|
2021-05-11 23:05:23 +00:00
|
|
|
SOURCES_C += $(DEPS_DIR)/mman/sys/mman.c
|
2020-01-21 23:26:20 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
endif ##ifeq ($(HAVE_LIGHTREC), 1)
|