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
|
||||
openmp := true
|
||||
flags += -Wno-narrowing -Wno-multichar -g -fPIC
|
||||
|
@ -10,19 +10,19 @@ obj/libretro.o: target-libretro/libretro.cpp
|
|||
|
||||
all: $(objects)
|
||||
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)
|
||||
$(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)
|
||||
$(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)
|
||||
ifeq ($(IOSSDK),)
|
||||
IOSSDK := $(shell xcodebuild -version -sdk iphoneos Path)
|
||||
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)
|
||||
ifeq ($(IOSSDK),)
|
||||
IOSSDK := $(shell xcodebuild -version -sdk appletvos Path)
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue