2 ifeq "$(RC_TARGET_CONFIG)" "iPhone"
5 Embedded?=$(shell echo $(SDKROOT) | grep -iq iphoneos && echo YES || echo NO)
8 OBJROOT?=$(shell /bin/pwd)
10 CC:=xcrun -sdk "$(SDKROOT)" cc
15 ifeq "$(Embedded)" "YES"
24 DSTROOT?=$(shell /bin/pwd)
26 CFLAGS:=$(patsubst %, -arch %,$(ARCHS)) -g -Wall -Os $(ISYSROOT)
28 all: $(DSTROOT)/jitter
30 $(OBJROOT)/timer_jitter.o: timer_jitter.c
31 $(CC) -c -o $@ $< $(CFLAGS)
33 $(OBJROOT)/cpu_number.o: cpu_number.s
34 $(CC) -c -o $@ $< $(CFLAGS)
36 $(DSTROOT)/jitter: $(OBJROOT)/timer_jitter.o $(OBJROOT)/cpu_number.o
37 $(CC) -o $@ $^ $(CFLAGS)
40 rm -f $(DSTROOT)/jitter $(OBJROOT)/*.o