]> git.saurik.com Git - apple/xnu.git/blob - tools/tests/zero-to-n/Makefile
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / tools / tests / zero-to-n / Makefile
1 include ../Makefile.common
2
3 CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc)
4
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
7
8 DSTROOT?=$(shell /bin/pwd)
9 SYMROOT?=$(shell /bin/pwd)
10
11 DEBUG:=0
12
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
16
17 clean:
18 rm -rf $(DSTROOT)/zn $(SYMROOT)/*.dSYM $(SYMROOT)/zn