Tupfile for super-repositories
- Revert Genode Make rules - Tweak Makefile.common for compatiblity - Allow LIBRETRO_COMM_DIR override
This commit is contained in:
@@ -1,19 +1,8 @@
|
|||||||
|
ifeq ($(LIBRETRO_COMM_DIR),)
|
||||||
LIBRETRO_COMM_DIR := $(CORE_DIR)/drivers/libretro/libretro-common
|
LIBRETRO_COMM_DIR := $(CORE_DIR)/drivers/libretro/libretro-common
|
||||||
|
endif
|
||||||
INCFLAGS := -I$(CORE_DIR)/drivers/libretro -I$(LIBRETRO_COMM_DIR)/include -I$(CORE_DIR) -I$(CORE_DIR)/input -I$(CORE_DIR)/boards
|
INCFLAGS := -I$(CORE_DIR)/drivers/libretro -I$(LIBRETRO_COMM_DIR)/include -I$(CORE_DIR) -I$(CORE_DIR)/input -I$(CORE_DIR)/boards
|
||||||
COREDEFINES = -D__LIBRETRO__ -DSOUND_QUALITY=0 -DPATH_MAX=1024 -DFCEU_VERSION_NUMERIC=9813 -DFRONTEND_SUPPORTS_RGB565
|
COREDEFINES = -D__LIBRETRO__ -DSOUND_QUALITY=0 -DPATH_MAX=1024 -DFCEU_VERSION_NUMERIC=9813 -DFRONTEND_SUPPORTS_RGB565
|
||||||
|
|
||||||
INCLUDE_STDINT = 0
|
|
||||||
ifneq (,$(findstring msvc200,$(platform)))
|
|
||||||
INCLUDE_STDINT = 1
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(INCLUDE_STDINT), 1)
|
|
||||||
INCFLAGS += -I$(LIBRETRO_COMM_DIR)/include/compat/msvc
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq (,$(findstring msvc,$(platform)))
|
|
||||||
COREDEFINES += -DINLINE=_inline
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(PSS_STYLE),2)
|
ifeq ($(PSS_STYLE),2)
|
||||||
COREDEFINES += -DPSS_STYLE=2
|
COREDEFINES += -DPSS_STYLE=2
|
||||||
@@ -21,8 +10,12 @@ else
|
|||||||
COREDEFINES += -DPSS_STYLE=1
|
COREDEFINES += -DPSS_STYLE=1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TUP_CWD),)
|
||||||
FCEU_SRC_DIRS := $(CORE_DIR)/boards $(CORE_DIR)/input
|
FCEU_SRC_DIRS := $(CORE_DIR)/boards $(CORE_DIR)/input
|
||||||
SOURCES_C := $(foreach dir,$(FCEU_SRC_DIRS),$(wildcard $(dir)/*.c))
|
SOURCES_C := $(foreach dir,$(FCEU_SRC_DIRS),$(wildcard $(dir)/*.c))
|
||||||
|
else
|
||||||
|
SOURCES_C = $(CORE_DIR)/boards/*.c $(CORE_DIR)/input/*.c
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(HAVE_GRIFFIN),1)
|
ifeq ($(HAVE_GRIFFIN),1)
|
||||||
SOURCES_C += $(CORE_DIR)/drivers/libretro/griffin.c
|
SOURCES_C += $(CORE_DIR)/drivers/libretro/griffin.c
|
||||||
|
|||||||
@@ -386,16 +386,6 @@ else ifeq ($(platform), gcw0)
|
|||||||
PLATFORM_DEFINES += -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
|
PLATFORM_DEFINES += -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float
|
||||||
EXTERNAL_ZLIB = 1
|
EXTERNAL_ZLIB = 1
|
||||||
|
|
||||||
# Genode
|
|
||||||
else ifeq ($(platform), genode)
|
|
||||||
TARGET := $(TARGET_NAME)_libretro.lib.so
|
|
||||||
CC := $(shell pkg-config genode-base --variable=cc)
|
|
||||||
LD := $(shell pkg-config genode-base --variable=ld)
|
|
||||||
CFLAGS += $(shell pkg-config --cflags genode-libc)
|
|
||||||
LDFLAGS += -shared --version-script=src/drivers/libretro/link.T
|
|
||||||
LDFLAGS += $(shell pkg-config --libs genode-lib genode-libc)
|
|
||||||
LIBM =
|
|
||||||
|
|
||||||
# Windows MSVC 2017 all architectures
|
# Windows MSVC 2017 all architectures
|
||||||
else ifneq (,$(findstring windows_msvc2017,$(platform)))
|
else ifneq (,$(findstring windows_msvc2017,$(platform)))
|
||||||
CC = cl.exe
|
CC = cl.exe
|
||||||
@@ -673,6 +663,19 @@ CORE_DIR := src
|
|||||||
|
|
||||||
include Makefile.common
|
include Makefile.common
|
||||||
|
|
||||||
|
INCLUDE_STDINT = 0
|
||||||
|
ifneq (,$(findstring msvc200,$(platform)))
|
||||||
|
INCLUDE_STDINT = 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(INCLUDE_STDINT), 1)
|
||||||
|
INCFLAGS += -I$(LIBRETRO_COMM_DIR)/include/compat/msvc
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(findstring msvc,$(platform)))
|
||||||
|
COREDEFINES += -DINLINE=_inline
|
||||||
|
endif
|
||||||
|
|
||||||
CFLAGS += -DWANT_GRIFFIN
|
CFLAGS += -DWANT_GRIFFIN
|
||||||
|
|
||||||
OBJECTS := $(SOURCES_C:.c=.o)
|
OBJECTS := $(SOURCES_C:.c=.o)
|
||||||
@@ -714,9 +717,6 @@ else ifeq ($(platform), switch)
|
|||||||
OBJOUT = -o
|
OBJOUT = -o
|
||||||
LINKOUT = -o
|
LINKOUT = -o
|
||||||
# libtransistor.mk sets LD for us
|
# libtransistor.mk sets LD for us
|
||||||
else ifeq ($(platform), genode)
|
|
||||||
OBJOUT = -o
|
|
||||||
LINKOUT = -o
|
|
||||||
else
|
else
|
||||||
OBJOUT = -o
|
OBJOUT = -o
|
||||||
LINKOUT = -o
|
LINKOUT = -o
|
||||||
|
|||||||
Reference in New Issue
Block a user