1 include ../Makefile.common
3 CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc)
8 ifeq "$(Embedded)" "YES"
9 ARCHS:=armv7 armv7s arm64
15 CFLAGS :=-g $(patsubst %, -arch %,$(ARCHS)) -isysroot $(SDKROOT)
17 DSTROOT?=$(shell /bin/pwd)
18 SYMROOT?=$(shell /bin/pwd)
20 all: $(addprefix $(DSTROOT)/, file_tests timer_tests)
22 $(DSTROOT)/file_tests: kqueue_file_tests.c
23 $(CC) $(CFLAGS) -o $(SYMROOT)/file_tests kqueue_file_tests.c
24 ditto $(SYMROOT)/file_tests $(DSTROOT)/file_tests
26 $(DSTROOT)/timer_tests: kqueue_timer_tests.c
27 $(CC) $(CFLAGS) -o $(SYMROOT)/timer_tests kqueue_timer_tests.c
28 ditto $(SYMROOT)/timer_tests $(DSTROOT)/timer_tests
31 rm -rf $(DSTROOT)/file_tests $(DSTROOT)/timer_tests $(SYMROOT)/*.dSYM $(SYMROOT)/file_tests $(SYMROOT)/timer_tests