mirror of https://github.com/bsnes-emu/bsnes.git
libretro Makefile improvements [orbea]
This commit is contained in:
parent
c6f92b782c
commit
7b66e1c531
|
@ -1,4 +1,4 @@
|
||||||
name := libretro.so
|
name := bsnes_libretro
|
||||||
local := false
|
local := false
|
||||||
openmp := true
|
openmp := true
|
||||||
flags += -Wno-narrowing -Wno-multichar -g -fPIC
|
flags += -Wno-narrowing -Wno-multichar -g -fPIC
|
||||||
|
@ -10,19 +10,19 @@ obj/libretro.o: target-libretro/libretro.cpp
|
||||||
|
|
||||||
all: $(objects)
|
all: $(objects)
|
||||||
ifeq ($(platform),linux)
|
ifeq ($(platform),linux)
|
||||||
$(strip $(compiler) -o out/bsnes_libretro.so -shared $(objects) -Wl,--no-undefined -Wl,--version-script=target-libretro/link.T -Wl,-Bdynamic -lpthread -ldl -lgomp)
|
$(strip $(compiler) -o out/$(name).so -shared $(objects) -Wl,--no-undefined -Wl,--version-script=target-libretro/link.T -Wl,-Bdynamic -lpthread -ldl -lgomp)
|
||||||
else ifeq ($(platform),windows)
|
else ifeq ($(platform),windows)
|
||||||
$(strip $(compiler) -o out/bsnes_libretro.dll -shared $(objects) -Wl,--no-undefined -Wl,--version-script=target-libretro/link.T -static-libgcc -static-libstdc++ -Wl,-Bstatic -lws2_32 -lpthread -lgomp -Wl,-Bdynamic)
|
$(strip $(compiler) -o out/$(name).dll -shared $(objects) -Wl,--no-undefined -Wl,--version-script=target-libretro/link.T -static-libgcc -static-libstdc++ -Wl,-Bstatic -lws2_32 -lpthread -lgomp -Wl,-Bdynamic)
|
||||||
else ifeq ($(platform),macos)
|
else ifeq ($(platform),macos)
|
||||||
$(strip $(compiler) -o out/bsnes_libretro.dylib -shared $(objects) -lpthread -ldl)
|
$(strip $(compiler) -o out/$(name).dylib -shared $(objects) -lpthread -ldl)
|
||||||
else ifeq ($(platform), ios-arm64)
|
else ifeq ($(platform), ios-arm64)
|
||||||
ifeq ($(IOSSDK),)
|
ifeq ($(IOSSDK),)
|
||||||
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
|
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
|
||||||
endif
|
endif
|
||||||
$(strip c++ -arch arm64 -marm -miphoneos-version-min=11.0 -isysroot $(IOSSDK) -o out/bsnes_libretro_ios.dylib -shared $(objects) -lpthread -ldl)
|
$(strip c++ -arch arm64 -marm -miphoneos-version-min=11.0 -isysroot $(IOSSDK) -o out/$(name)_ios.dylib -shared $(objects) -lpthread -ldl)
|
||||||
else ifeq ($(platform), tvos-arm64)
|
else ifeq ($(platform), tvos-arm64)
|
||||||
ifeq ($(IOSSDK),)
|
ifeq ($(IOSSDK),)
|
||||||
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
|
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
|
||||||
endif
|
endif
|
||||||
$(strip c++ -arch arm64 -marm -mtvos-version-min=11.0 -isysroot $(IOSSDK) -o out/bsnes_libretro_tvos.dylib -shared $(objects) -lpthread -ldl)
|
$(strip c++ -arch arm64 -marm -mtvos-version-min=11.0 -isysroot $(IOSSDK) -o out/$(name)_tvos.dylib -shared $(objects) -lpthread -ldl)
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue