Improve Makefile pt. 2

This commit is contained in:
twinaphex 2022-03-18 17:35:20 +01:00
parent 4586dd666f
commit 7b16293ebb

View File

@ -156,6 +156,14 @@ else ifeq ($(platform), osx)
fpic := -fPIC
SHARED := -dynamiclib -framework OpenGL
ifeq ($(CROSS_COMPILE),1)
TARGET_RULE = -target $(LIBRETRO_APPLE_PLATFORM) -isysroot $(LIBRETRO_APPLE_ISYSROOT)
CFLAGS += $(TARGET_RULE)
CPPFLAGS += $(TARGET_RULE)
CXXFLAGS += $(TARGET_RULE)
LDFLAGS += $(TARGET_RULE)
endif
ifeq ($(UNIVERSAL),1)
ifeq ($(ARCHFLAGS),)
ARCHFLAGS = -arch i386 -arch x86_64