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