summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortwinaphex2021-03-27 15:09:01 +0100
committertwinaphex2021-03-27 15:09:01 +0100
commitfd2079354572372f4516fcc13c51992ef4b4c715 (patch)
tree2a3767aa81f7d0386a68f3947f3adf5faca28960 /Makefile
parent08d2fa1ebe9e259da228dfa5e5086bd5b62c4347 (diff)
downloadpicogpsp-fd2079354572372f4516fcc13c51992ef4b4c715.tar.gz
picogpsp-fd2079354572372f4516fcc13c51992ef4b4c715.tar.bz2
picogpsp-fd2079354572372f4516fcc13c51992ef4b4c715.zip
Add CROSS_COMPILE rules
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index dfc7c37..4a5806d 100644
--- a/Makefile
+++ b/Makefile
@@ -104,10 +104,18 @@ else ifeq ($(platform), osx)
ifeq ($(HAVE_DYNAREC),1)
HAVE_MMAP = 1
endif
- ifndef ($(NOUNIVERSAL))
- CFLAGS += $(ARCHFLAGS)
- LDFLAGS += $(ARCHFLAGS)
- endif
+
+ 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
+
+ CFLAGS += $(ARCHFLAGS)
+ CXXFLAGS += $(ARCHFLAGS)
+ LDFLAGS += $(ARCHFLAGS)
# iOS
else ifneq (,$(findstring ios,$(platform)))