]> git.saurik.com Git - apple/xnu.git/blame_incremental - tools/tests/zero-to-n/Makefile
xnu-7195.50.7.100.1.tar.gz
[apple/xnu.git] / tools / tests / zero-to-n / Makefile
... / ...
CommitLineData
1include ../Makefile.common
2
3CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc)
4
5CFLAGS := -Os -g $(ARCH_FLAGS) -isysroot $(SDKROOT) -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
6CFLAGS += -Wl,-sectcreate,__INFO_FILTER,__disable,/dev/null
7
8DSTROOT?=$(shell /bin/pwd)
9SYMROOT?=$(shell /bin/pwd)
10
11DEBUG:=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
17clean:
18 rm -rf $(DSTROOT)/zn $(SYMROOT)/*.dSYM $(SYMROOT)/zn