2 ifeq "$(RC_TARGET_CONFIG)" "iPhone"
5 Embedded?=$(shell echo $(SDKROOT) | grep -iq iphoneos && echo YES || echo NO)
8 CC:=xcrun -sdk "$(SDKROOT)" cc
13 ifeq "$(Embedded)" "YES"
20 CFLAGS := -g $(patsubst %, -arch %, $(ARCHS))
22 DSTROOT?=$(shell /bin/pwd)
23 SYMROOT?=$(shell /bin/pwd)
27 $(DSTROOT)/zn: zero-to-n.c
28 $(CC) $(CFLAGS) -Wall zero-to-n.c -o $(SYMROOT)/$(notdir $@) -DDEBUG=$(DEBUG) -ggdb
29 if [ ! -e $@ ]; then ditto $(SYMROOT)/$(notdir $@) $@; fi
32 rm -rf $(DSTROOT)/zn $(SYMROOT)/*.dSYM $(SYMROOT)/zn