diff options
author | twinaphex | 2021-03-27 15:09:01 +0100 |
---|---|---|
committer | twinaphex | 2021-03-27 15:09:01 +0100 |
commit | fd2079354572372f4516fcc13c51992ef4b4c715 (patch) | |
tree | 2a3767aa81f7d0386a68f3947f3adf5faca28960 /Makefile | |
parent | 08d2fa1ebe9e259da228dfa5e5086bd5b62c4347 (diff) | |
download | picogpsp-fd2079354572372f4516fcc13c51992ef4b4c715.tar.gz picogpsp-fd2079354572372f4516fcc13c51992ef4b4c715.tar.bz2 picogpsp-fd2079354572372f4516fcc13c51992ef4b4c715.zip |
Add CROSS_COMPILE rules
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -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))) |