1 include ../Makefile.common
3 CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc)
5 CFLAGS := -Os -g $(ARCH_FLAGS) -isysroot $(SDKROOT) -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
6 CFLAGS += -Wl,-sectcreate,__INFO_FILTER,__disable,/dev/null
8 DSTROOT?=$(shell /bin/pwd)
9 SYMROOT?=$(shell /bin/pwd)
13 $(DSTROOT)/zn: zero-to-n.c
14 $(CC) $(CFLAGS) -Wall zero-to-n.c -o $(SYMROOT)/$(notdir $@) -DDEBUG=$(DEBUG) -ggdb
15 if [ ! -e $@ ]; then ditto $(SYMROOT)/$(notdir $@) $@; fi
18 rm -rf $(DSTROOT)/zn $(SYMROOT)/*.dSYM $(SYMROOT)/zn