mirror of
https://github.com/libretro/gambatte-libretro.git
synced 2024-11-23 07:49:48 +00:00
(OSX) Add universal rules
This commit is contained in:
parent
88dd644046
commit
59fb6a652e
@ -26,6 +26,14 @@ endif
|
|||||||
|
|
||||||
TARGET_NAME := gambatte
|
TARGET_NAME := gambatte
|
||||||
|
|
||||||
|
ifeq ($(ARCHFLAGS),)
|
||||||
|
ifeq ($(archs),ppc)
|
||||||
|
ARCHFLAGS = -arch ppc -arch ppc64
|
||||||
|
else
|
||||||
|
ARCHFLAGS = -arch i386 -arch x86_64
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# Unix
|
# Unix
|
||||||
ifeq ($(platform), unix)
|
ifeq ($(platform), unix)
|
||||||
TARGET := $(TARGET_NAME)_libretro.so
|
TARGET := $(TARGET_NAME)_libretro.so
|
||||||
@ -248,6 +256,14 @@ include $(THEOS_MAKE_PATH)/library.mk
|
|||||||
else
|
else
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
|
ifeq ($(platform), osx)
|
||||||
|
ifndef ($(NOUNIVERSAL))
|
||||||
|
CFLAGS += $(ARCHFLAGS)
|
||||||
|
CXXFLAGS += $(ARCHFLAGS)
|
||||||
|
LFLAGS += $(ARCHFLAGS)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
$(TARGET): $(OBJS)
|
$(TARGET): $(OBJS)
|
||||||
ifeq ($(STATIC_LINKING), 1)
|
ifeq ($(STATIC_LINKING), 1)
|
||||||
$(AR) rcs $@ $(OBJS)
|
$(AR) rcs $@ $(OBJS)
|
||||||
|
Loading…
Reference in New Issue
Block a user