1 include ../Makefile.common
3 CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc)
8 ifeq "$(Embedded)" "YES"
9 ARCHS:=armv7 armv7s arm64 armv7k
15 CFLAGS := -Os -g $(patsubst %, -arch %, $(ARCHS)) -isysroot $(SDKROOT) -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
17 DSTROOT?=$(shell /bin/pwd)
18 SYMROOT?=$(shell /bin/pwd)
22 $(DSTROOT)/zn: zero-to-n.c
23 $(CC) $(CFLAGS) -Wall zero-to-n.c -o $(SYMROOT)/$(notdir $@) -DDEBUG=$(DEBUG) -ggdb
24 if [ ! -e $@ ]; then ditto $(SYMROOT)/$(notdir $@) $@; fi
27 rm -rf $(DSTROOT)/zn $(SYMROOT)/*.dSYM $(SYMROOT)/zn