mirror of
https://github.com/libretro/Mu.git
synced 2026-07-19 23:26:21 +00:00
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
EMU_PATH := $(CORE_DIR)/../src
|
|
LIBRETRO_COMM_DIR := $(CORE_DIR)/libretro-common
|
|
COREDEFINES :=
|
|
|
|
INCFLAGS := -I$(LIBRETRO_COMM_DIR)/include
|
|
|
|
ifeq ($(DEBUG), 1)
|
|
COREDEFINES += -DEMU_DEBUG -DEMU_SANDBOX
|
|
else
|
|
COREDEFINES += -DEMU_NO_SAFETY
|
|
endif
|
|
|
|
ifneq (,$(findstring msvc200,$(platform)))
|
|
INCFLAGS += -I$(LIBRETRO_COMM_DIR)/include/compat/msvc
|
|
endif
|
|
|
|
ifneq (,$(findstring msvc20,$(platform)))
|
|
# Mu is dependent on stdbool.h and the standard inline directive existing
|
|
INCFLAGS += -I$(CORE_DIR)/fixIncludes/stdbool
|
|
COREDEFINES += -Dinline=_inline -DINLINE=_inline
|
|
endif
|
|
|
|
ifneq (,$(filter ps3 sncps3 psl1ght ngc wii wiiu,$(platform)))
|
|
COREDEFINES += -DEMU_BIG_ENDIAN
|
|
else ifeq ($(platform), osx)
|
|
ifeq ($(arch), ppc)
|
|
COREDEFINES += -DEMU_BIG_ENDIAN
|
|
endif
|
|
endif
|
|
|
|
include $(EMU_PATH)/makefile.all
|
|
|
|
COREDEFINES += $(EMU_DEFINES)
|
|
|
|
SOURCES_C := $(CORE_DIR)/libretro.c \
|
|
$(CORE_DIR)/cursors.c \
|
|
$(EMU_SOURCES_C)
|
|
|
|
SOURCES_ASM :=
|
|
|
|
ifneq ($(STATIC_LINKING), 1)
|
|
SOURCES_C += $(LIBRETRO_COMM_DIR)/compat/compat_strl.c \
|
|
$(LIBRETRO_COMM_DIR)/compat/compat_posix_string.c \
|
|
$(LIBRETRO_COMM_DIR)/compat/fopen_utf8.c \
|
|
$(LIBRETRO_COMM_DIR)/encodings/encoding_utf.c \
|
|
$(LIBRETRO_COMM_DIR)/memmap/memmap.c \
|
|
$(LIBRETRO_COMM_DIR)/streams/file_stream.c \
|
|
$(LIBRETRO_COMM_DIR)/string/stdstring.c \
|
|
$(LIBRETRO_COMM_DIR)/vfs/vfs_implementation.c
|
|
endif
|