]> git.saurik.com Git - apple/xnu.git/blame - tools/tests/jitter/Makefile
xnu-6153.11.26.tar.gz
[apple/xnu.git] / tools / tests / jitter / Makefile
CommitLineData
3e170ce0 1include ../Makefile.common
6d2010ae 2
5ba3f43e
A
3DSTROOT?=$(shell /bin/pwd)
4SYMROOT?=$(shell /bin/pwd)
39236c6e 5OBJROOT?=$(shell /bin/pwd)
6d2010ae 6
fe8ab488 7CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc)
6d2010ae 8
39236c6e
A
9ifdef RC_ARCHS
10 ARCHS:=$(RC_ARCHS)
11 else
12 ifeq "$(Embedded)" "YES"
fe8ab488 13 ARCHS:=armv7 armv7s arm64
39236c6e
A
14 else
15 ARCHS:=x86_64 i386
16 endif
17endif
18
39236c6e 19
3e170ce0 20CFLAGS:=$(patsubst %, -arch %,$(ARCHS)) -g -Wall -Os -isysroot $(SDKROOT) -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
39236c6e
A
21
22all: $(DSTROOT)/jitter
23
5ba3f43e 24$(DSTROOT)/jitter: timer_jitter.c
6d2010ae 25 $(CC) -o $@ $^ $(CFLAGS)
39236c6e
A
26
27clean:
28 rm -f $(DSTROOT)/jitter $(OBJROOT)/*.o
5ba3f43e 29 rm -rf $(SYMROOT)/*.dSYM