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)
25 all: $(addprefix $(DSTROOT)/, file timer)
28 $(CC) $(CFLAGS) -o $(SYMROOT)/file_tests kqueue_file_tests.c
29 if [ ! -e $(DSTROOT)/file_tests ]; then ditto $(SYMROOT)/file_tests $(DSTROOT)/file_tests; fi
32 $(CC) $(CFLAGS) -o $(SYMROOT)/timer_tests kqueue_timer_tests.c
33 if [ ! -e $(DSTROOT)/timer_tests ]; then ditto $(SYMROOT)/timer_tests $(DSTROOT)/timer_tests; fi
36 rm -rf $(DSTROOT)/file_tests $(DSTROOT)/timer_tests $(SYMROOT)/*.dSYM $(SYMROOT)/file_tests $(SYMROOT)/timer_tests