mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2025-01-13 11:49:06 +01:00
Add option to build against shared libvorbis (tremor by default).
This commit is contained in:
parent
bb6fa78347
commit
345402774e
@ -248,6 +248,9 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
LDFLAGS += $(LIBM)
|
LDFLAGS += $(LIBM)
|
||||||
|
ifeq ($(SHARED_LIBVORBIS), 1)
|
||||||
|
LDFLAGS += -lvorbisfile
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
CFLAGS += -O0 -g
|
CFLAGS += -O0 -g
|
||||||
@ -261,8 +264,10 @@ endif
|
|||||||
|
|
||||||
CORE_DIR := .
|
CORE_DIR := .
|
||||||
|
|
||||||
TREMOR_SRC_DIR := $(CORE_DIR)/core/tremor
|
ifeq ($(SHARED_LIBVORBIS),)
|
||||||
LIBRETRO_DIR := $(CORE_DIR)/libretro
|
TREMOR_SRC_DIR := $(CORE_DIR)/core/tremor
|
||||||
|
endif
|
||||||
|
LIBRETRO_DIR := $(CORE_DIR)/libretro
|
||||||
|
|
||||||
include $(LIBRETRO_DIR)/Makefile.common
|
include $(LIBRETRO_DIR)/Makefile.common
|
||||||
|
|
||||||
@ -272,7 +277,11 @@ ifeq ($(LOGSOUND), 1)
|
|||||||
LIBRETRO_CFLAGS := -DLOGSOUND
|
LIBRETRO_CFLAGS := -DLOGSOUND
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DEFINES := -DUSE_LIBTREMOR
|
ifeq ($(SHARED_LIBVORBIS), 1)
|
||||||
|
DEFINES := -DUSE_LIBVORBIS
|
||||||
|
else
|
||||||
|
DEFINES := -DUSE_LIBTREMOR
|
||||||
|
endif
|
||||||
CFLAGS += $(fpic) $(DEFINES) $(CODE_DEFINES)
|
CFLAGS += $(fpic) $(DEFINES) $(CODE_DEFINES)
|
||||||
|
|
||||||
ifeq ($(FRONTEND_SUPPORTS_RGB565), 1)
|
ifeq ($(FRONTEND_SUPPORTS_RGB565), 1)
|
||||||
|
@ -8,9 +8,13 @@ GENPLUS_SRC_DIR := $(CORE_DIR)/core \
|
|||||||
$(CORE_DIR)/core/cart_hw \
|
$(CORE_DIR)/core/cart_hw \
|
||||||
$(CORE_DIR)/core/cart_hw/svp
|
$(CORE_DIR)/core/cart_hw/svp
|
||||||
|
|
||||||
SOURCES_C = $(foreach dir,$(GENPLUS_SRC_DIR),$(wildcard $(dir)/*.c)) \
|
SOURCES_C = $(foreach dir,$(GENPLUS_SRC_DIR),$(wildcard $(dir)/*.c))
|
||||||
$(foreach dir,$(TREMOR_SRC_DIR),$(wildcard $(dir)/*.c)) \
|
|
||||||
$(LIBRETRO_DIR)/libretro.c
|
ifeq ($(SHARED_LIBVORBIS),)
|
||||||
|
SOURCES_C += $(foreach dir,$(TREMOR_SRC_DIR),$(wildcard $(dir)/*.c))
|
||||||
|
endif
|
||||||
|
|
||||||
|
SOURCES_C += $(LIBRETRO_DIR)/libretro.c
|
||||||
|
|
||||||
SOURCES_C += $(LIBRETRO_DIR)/scrc32.c
|
SOURCES_C += $(LIBRETRO_DIR)/scrc32.c
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user