mirror of
https://github.com/libretro/beetle-pce-fast-libretro.git
synced 2024-11-23 07:50:03 +00:00
185 lines
4.9 KiB
Makefile
185 lines
4.9 KiB
Makefile
SOURCES_CXX :=
|
|
SOURCES_C :=
|
|
|
|
DEPS_DIR := $(CORE_DIR)/deps
|
|
LIBRETRO_COMM_DIR := $(CORE_DIR)/libretro-common
|
|
MEDNAFEN_DIR := $(CORE_DIR)/mednafen
|
|
CORE_EMU_DIR := $(MEDNAFEN_DIR)/pce_fast
|
|
CDROM_DIR := $(MEDNAFEN_DIR)/cdrom
|
|
|
|
INCFLAGS := -I$(CORE_DIR) \
|
|
-I$(MEDNAFEN_DIR) \
|
|
-I$(MEDNAFEN_DIR)/include \
|
|
-I$(MEDNAFEN_DIR)/hw_sound \
|
|
-I$(MEDNAFEN_DIR)/hw_cpu \
|
|
-I$(MEDNAFEN_DIR)/hw_misc \
|
|
-I$(LIBRETRO_COMM_DIR)/include
|
|
|
|
LIBCHDR_INCFLAGS = \
|
|
-I$(DEPS_DIR)/lzma-19.00/include \
|
|
-I$(DEPS_DIR)/libchdr/include
|
|
LIBCHDR_SOURCES_C = \
|
|
$(DEPS_DIR)/lzma-19.00/src/Alloc.c \
|
|
$(DEPS_DIR)/lzma-19.00/src/Bra86.c \
|
|
$(DEPS_DIR)/lzma-19.00/src/BraIA64.c \
|
|
$(DEPS_DIR)/lzma-19.00/src/CpuArch.c \
|
|
$(DEPS_DIR)/lzma-19.00/src/Delta.c \
|
|
$(DEPS_DIR)/lzma-19.00/src/LzFind.c \
|
|
$(DEPS_DIR)/lzma-19.00/src/Lzma86Dec.c \
|
|
$(DEPS_DIR)/lzma-19.00/src/LzmaDec.c \
|
|
$(DEPS_DIR)/lzma-19.00/src/LzmaEnc.c \
|
|
$(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
|
|
|
|
ZLIB_INCFLAGS = -I$(DEPS_DIR)/zlib-1.2.11
|
|
ZLIB_SOURCES_C = \
|
|
$(DEPS_DIR)/zlib-1.2.11/adler32.c \
|
|
$(DEPS_DIR)/zlib-1.2.11/crc32.c \
|
|
$(DEPS_DIR)/zlib-1.2.11/inffast.c \
|
|
$(DEPS_DIR)/zlib-1.2.11/inflate.c \
|
|
$(DEPS_DIR)/zlib-1.2.11/inftrees.c
|
|
|
|
ifneq (,$(findstring msvc2003,$(platform)))
|
|
INCFLAGS += -I$(LIBRETRO_COMM_DIR)/include/compat/msvc
|
|
endif
|
|
|
|
ifeq ($(HAVE_CDROM), 1)
|
|
SOURCES_C += \
|
|
$(LIBRETRO_COMM_DIR)/cdrom/cdrom.c \
|
|
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation_cdrom.c
|
|
endif
|
|
|
|
ifneq ($(HAVE_GRIFFIN), 1)
|
|
SOURCES_CXX += \
|
|
$(CORE_EMU_DIR)/pcecd.cpp \
|
|
$(CORE_EMU_DIR)/pcecd_drive.cpp \
|
|
$(CORE_EMU_DIR)/psg.cpp \
|
|
$(MEDNAFEN_DIR)/hw_misc/arcade_card/arcade_card.cpp
|
|
SOURCES_C += \
|
|
$(CORE_EMU_DIR)/huc6280.c \
|
|
$(CORE_EMU_DIR)/input.c \
|
|
$(CORE_EMU_DIR)/vdc.c
|
|
endif
|
|
|
|
ifeq ($(NEED_BLIP), 1)
|
|
SOURCES_C += $(MEDNAFEN_DIR)/sound/Blip_Buffer.c
|
|
endif
|
|
|
|
ifeq ($(HAVE_HES), 1)
|
|
SOURCES_CXX += $(CORE_EMU_DIR)/hes.cpp
|
|
endif
|
|
|
|
ifeq ($(NEED_DEINTERLACER), 1)
|
|
FLAGS += -DNEED_DEINTERLACER
|
|
endif
|
|
|
|
ifeq ($(NO_COMPUTED_GOTO), 1)
|
|
FLAGS += -DNO_COMPUTED_GOTO
|
|
endif
|
|
|
|
ifeq ($(NEED_STEREO_SOUND), 1)
|
|
FLAGS += -DWANT_STEREO_SOUND
|
|
endif
|
|
|
|
ifeq ($(FRONTEND_SUPPORTS_RGB565), 1)
|
|
FLAGS += -DFRONTEND_SUPPORTS_RGB565
|
|
endif
|
|
|
|
ifeq ($(CACHE_CD), 1)
|
|
FLAGS += -D__LIBRETRO_CACHE_CD__
|
|
endif
|
|
|
|
ifeq ($(USE_CHEATS), 1)
|
|
FLAGS += -DUSE_CHEATS
|
|
endif
|
|
|
|
ifneq ($(HAVE_GRIFFIN),1)
|
|
SOURCES_CXX += \
|
|
$(CDROM_DIR)/CDAccess.cpp \
|
|
$(CDROM_DIR)/CDAccess_Image.cpp \
|
|
$(CDROM_DIR)/CDAccess_CCD.cpp \
|
|
$(CDROM_DIR)/CDAFReader.cpp \
|
|
$(CDROM_DIR)/CDAFReader_Vorbis.cpp \
|
|
$(CDROM_DIR)/cdromif.cpp \
|
|
$(CDROM_DIR)/CDUtility.cpp \
|
|
$(CDROM_DIR)/lec.cpp \
|
|
$(CDROM_DIR)/galois.cpp \
|
|
$(CDROM_DIR)/recover-raw.cpp \
|
|
$(CDROM_DIR)/l-ec.cpp \
|
|
$(CDROM_DIR)/edc_crc32.cpp
|
|
endif
|
|
FLAGS += -DNEED_CD
|
|
|
|
ifeq ($(HAVE_CHD), 1)
|
|
FLAGS += -DHAVE_CHD -D_7ZIP_ST
|
|
|
|
ifeq ($(SYSTEM_LIBCHDR), 1)
|
|
INCFLAGS += $(shell pkg-config --cflags libchdr)
|
|
LIBS += $(shell pkg-config --libs libchdr)
|
|
else
|
|
INCFLAGS += $(LIBCHDR_INCFLAGS)
|
|
SOURCES_C += $(LIBCHDR_SOURCES_C)
|
|
endif
|
|
|
|
ifeq ($(SYSTEM_ZLIB), 1)
|
|
INCFLAGS += $(shell pkg-config --cflags zlib)
|
|
LIBS += $(shell pkg-config --libs zlib)
|
|
else
|
|
INCFLAGS += $(ZLIB_INCFLAGS)
|
|
SOURCES_C += $(ZLIB_SOURCES_C)
|
|
endif
|
|
|
|
SOURCES_CXX += $(CDROM_DIR)/CDAccess_CHD.cpp
|
|
endif
|
|
|
|
ifeq ($(NEED_TREMOR), 1)
|
|
SOURCES_C += $(sort $(filter-out %ivorbisfile_example.c, $(wildcard $(MEDNAFEN_DIR)/tremor/*.c)))
|
|
FLAGS += -DNEED_TREMOR
|
|
endif
|
|
|
|
ifneq ($(HAVE_GRIFFIN), 1)
|
|
SOURCES_CXX += \
|
|
$(MEDNAFEN_DIR)/general.cpp \
|
|
$(MEDNAFEN_DIR)/FileStream.cpp \
|
|
$(MEDNAFEN_DIR)/MemoryStream.cpp \
|
|
$(MEDNAFEN_DIR)/Stream.cpp \
|
|
$(MEDNAFEN_DIR)/mempatcher.cpp \
|
|
$(MEDNAFEN_DIR)/okiadpcm.cpp \
|
|
$(CORE_DIR)/libretro.cpp
|
|
|
|
SOURCES_C += \
|
|
$(MEDNAFEN_DIR)/file.c \
|
|
$(MEDNAFEN_DIR)/settings.c \
|
|
$(MEDNAFEN_DIR)/state.c \
|
|
$(MEDNAFEN_DIR)/mednafen-endian.c
|
|
endif
|
|
|
|
ifneq ($(STATIC_LINKING), 1)
|
|
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)/lists/string_list.c \
|
|
$(LIBRETRO_COMM_DIR)/lists/dir_list.c \
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_strl.c \
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_snprintf.c \
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_posix_string.c \
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_strcasestr.c \
|
|
$(LIBRETRO_COMM_DIR)/compat/fopen_utf8.c \
|
|
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.c \
|
|
$(LIBRETRO_COMM_DIR)/encodings/encoding_crc32.c \
|
|
$(LIBRETRO_COMM_DIR)/memmap/memalign.c \
|
|
$(LIBRETRO_COMM_DIR)/string/stdstring.c \
|
|
$(LIBRETRO_COMM_DIR)/time/rtime.c
|
|
|
|
ifneq (,$(findstring uwp,$(PlatformSuffix)))
|
|
SOURCES_CXX += $(LIBRETRO_COMM_DIR)/vfs/vfs_implementation_uwp.cpp
|
|
else
|
|
SOURCES_C += $(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c
|
|
endif
|
|
endif
|