Bundle libOpenMPT as a dynamic framework, which should be safe once again, now that there is only one version to bundle. Also, now it is using the versions of libvorbisfile and libmpg123 that are bundled with the player, instead of compiling minimp3 and stbvorbis. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
50 lines
1 KiB
Makefile
50 lines
1 KiB
Makefile
|
|
ifeq ($(origin CC),default)
|
|
CC = $(TOOLCHAIN_PREFIX)clang$(TOOLCHAIN_SUFFIX)
|
|
endif
|
|
ifeq ($(origin CXX),default)
|
|
CXX = $(TOOLCHAIN_PREFIX)clang++$(TOOLCHAIN_SUFFIX)
|
|
endif
|
|
ifeq ($(origin LD),default)
|
|
LD = $(CXX)
|
|
endif
|
|
ifeq ($(origin AR),default)
|
|
AR = $(TOOLCHAIN_PREFIX)ar$(TOOLCHAIN_SUFFIX)
|
|
endif
|
|
|
|
ifneq ($(STDCXX),)
|
|
CXXFLAGS_STDCXX = -std=$(STDCXX)
|
|
else
|
|
ifeq ($(shell printf '\n' > bin/empty.cpp ; if $(CXX) -std=c++17 -c bin/empty.cpp -o bin/empty.out > /dev/null 2>&1 ; then echo 'c++17' ; fi ), c++17)
|
|
CXXFLAGS_STDCXX = -std=c++17
|
|
endif
|
|
endif
|
|
CFLAGS_STDC = -std=c99
|
|
CXXFLAGS += $(CXXFLAGS_STDCXX)
|
|
CFLAGS += $(CFLAGS_STDC)
|
|
|
|
CPPFLAGS +=
|
|
CXXFLAGS += -fPIC
|
|
CFLAGS += -fPIC
|
|
LDFLAGS +=
|
|
LDLIBS += -lm
|
|
ARFLAGS := rcs
|
|
|
|
ifeq ($(OPTIMIZE_LTO),1)
|
|
CXXFLAGS += -flto=thin
|
|
CFLAGS += -flto=thin
|
|
endif
|
|
|
|
ifeq ($(CHECKED_ADDRESS),1)
|
|
CXXFLAGS += -fsanitize=address
|
|
CFLAGS += -fsanitize=address
|
|
endif
|
|
|
|
ifeq ($(CHECKED_UNDEFINED),1)
|
|
CXXFLAGS += -fsanitize=undefined
|
|
CFLAGS += -fsanitize=undefined
|
|
endif
|
|
|
|
include build/make/warnings-clang.mk
|
|
|
|
EXESUFFIX=
|