2015-07-26 15:25:48 +00:00
|
|
|
SOURCES_CXX :=
|
|
|
|
SOURCES_C :=
|
|
|
|
|
2015-10-01 01:11:33 +00:00
|
|
|
LIBRETRO_DIR := $(CORE_DIR)/libretro-common
|
2015-07-26 15:25:48 +00:00
|
|
|
MEDNAFEN_DIR := $(CORE_DIR)/mednafen
|
|
|
|
CORE_EMU_DIR := $(MEDNAFEN_DIR)/pce_fast
|
2016-08-14 09:54:31 +00:00
|
|
|
CDROM_DIR := $(MEDNAFEN_DIR)/cdrom
|
2015-07-26 15:25:48 +00:00
|
|
|
|
2015-10-01 01:11:33 +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 -I$(LIBRETRO_DIR)/include
|
2015-07-26 15:25:48 +00:00
|
|
|
|
|
|
|
ifneq ($(HAVE_GRIFFIN),1)
|
|
|
|
SOURCES_CXX += \
|
|
|
|
$(CORE_EMU_DIR)/huc6280.cpp \
|
|
|
|
$(CORE_EMU_DIR)/input.cpp \
|
|
|
|
$(CORE_EMU_DIR)/pcecd.cpp \
|
|
|
|
$(CORE_EMU_DIR)/pcecd_drive.cpp \
|
|
|
|
$(CORE_EMU_DIR)/psg.cpp \
|
|
|
|
$(CORE_EMU_DIR)/vdc.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/hw_misc/arcade_card/arcade_card.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_BLIP), 1)
|
2016-08-10 03:57:58 +00:00
|
|
|
SOURCES_C += $(MEDNAFEN_DIR)/sound/Blip_Buffer.c
|
2015-07-26 15:25:48 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(HAVE_HES), 1)
|
|
|
|
SOURCES_CXX += $(CORE_EMU_DIR)/hes.cpp
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_DEINTERLACER), 1)
|
|
|
|
FLAGS += -DNEED_DEINTERLACER
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_BPP), 8)
|
|
|
|
FLAGS += -DWANT_8BPP
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_BPP), 16)
|
|
|
|
FLAGS += -DWANT_16BPP
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(NEED_BPP), 32)
|
|
|
|
FLAGS += -DWANT_32BPP
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(WANT_NEW_API), 1)
|
|
|
|
FLAGS += -DWANT_NEW_API
|
|
|
|
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
|
|
|
|
|
|
|
|
ifneq ($(HAVE_GRIFFIN),1)
|
2016-08-14 09:54:31 +00:00
|
|
|
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
|
2015-07-26 15:25:48 +00:00
|
|
|
endif
|
|
|
|
FLAGS += -DNEED_CD
|
|
|
|
|
|
|
|
ifeq ($(NEED_TREMOR), 1)
|
2017-04-06 20:24:11 +00:00
|
|
|
SOURCES_C += $(sort $(wildcard $(MEDNAFEN_DIR)/tremor/*.c))
|
2015-07-26 15:25:48 +00:00
|
|
|
FLAGS += -DNEED_TREMOR
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(HAVE_GRIFFIN), 1)
|
|
|
|
SOURCES_CXX += \
|
|
|
|
$(MEDNAFEN_DIR)/error.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/settings.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/general.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/FileStream.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/MemoryStream.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/Stream.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/state.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/mempatcher.cpp \
|
|
|
|
$(MEDNAFEN_DIR)/okiadpcm.cpp \
|
|
|
|
$(CORE_DIR)/libretro.cpp
|
|
|
|
|
|
|
|
SOURCES_C += \
|
2016-07-21 03:20:31 +00:00
|
|
|
$(MEDNAFEN_DIR)/file.c \
|
2015-07-26 15:25:48 +00:00
|
|
|
$(MEDNAFEN_DIR)/mednafen-endian.c
|
|
|
|
endif
|
|
|
|
|
2015-10-01 01:11:33 +00:00
|
|
|
ifneq ($(STATIC_LINKING), 1)
|
2016-03-24 05:33:52 +00:00
|
|
|
SOURCES_C += $(LIBRETRO_DIR)/streams/file_stream.c \
|
2016-06-09 06:12:51 +00:00
|
|
|
$(LIBRETRO_DIR)/file/retro_stat.c \
|
|
|
|
$(LIBRETRO_DIR)/string/stdstring.c
|
2015-10-01 01:11:33 +00:00
|
|
|
endif
|