]> git.saurik.com Git - apple/xnu.git/blame - tools/tests/zero-to-n/Makefile
xnu-3247.1.106.tar.gz
[apple/xnu.git] / tools / tests / zero-to-n / Makefile
CommitLineData
3e170ce0 1include ../Makefile.common
6d2010ae 2
fe8ab488 3CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc)
39236c6e
A
4
5ifdef RC_ARCHS
6 ARCHS:=$(RC_ARCHS)
7 else
8 ifeq "$(Embedded)" "YES"
3e170ce0 9 ARCHS:=armv7 armv7s arm64 armv7k
39236c6e
A
10 else
11 ARCHS:=x86_64 i386
12 endif
13endif
14
3e170ce0 15CFLAGS := -g $(patsubst %, -arch %, $(ARCHS)) -isysroot $(SDKROOT) -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
39236c6e
A
16
17DSTROOT?=$(shell /bin/pwd)
18SYMROOT?=$(shell /bin/pwd)
19
20DEBUG:=0
21
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
25
26clean:
27 rm -rf $(DSTROOT)/zn $(SYMROOT)/*.dSYM $(SYMROOT)/zn