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