libretro, build fixes for ios

This commit is contained in:
kub 2020-07-13 07:20:04 +02:00
parent 18538b2ce8
commit 35984c2198
8 changed files with 127 additions and 5 deletions

View file

@ -2,7 +2,11 @@ TARGETS = amalgamate textfilter
HOSTCC ?= cc
all:
CC="$(XCC)" CFLAGS="$(XCFLAGS)" sh ./mkoffsets.sh ../pico
if [ -f "offsets/$(XPLATFORM)-offsets.h" ]; then \
ln -sf "../tools/offsets/$(XPLATFORM)-offsets.h" ../pico/pico_int_offs.h; \
else \
CC="$(XCC)" CFLAGS="$(XCFLAGS)" sh ./mkoffsets.sh ../pico; \
fi
$(TARGETS): $(addsuffix .c,$(TARGETS))
$(HOSTCC) -o $@ -O $@.c