]> git.saurik.com Git - apple/xnu.git/blob - tools/tests/mktimer/Makefile
xnu-4570.20.62.tar.gz
[apple/xnu.git] / tools / tests / mktimer / Makefile
1 include ../Makefile.common
2
3 OBJROOT?=$(shell /bin/pwd)
4
5 CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc)
6
7 ifdef 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
15 endif
16
17 DSTROOT?=$(shell /bin/pwd)
18
19 CFLAGS:=$(patsubst %, -arch %,$(ARCHS)) -g -Wall -Os -isysroot $(SDKROOT) -framework CoreFoundation
20
21 all: $(DSTROOT)/mktimer_test
22
23 $(DSTROOT)/mktimer_test: $(OBJROOT)/mktimer_test.c
24 $(CC) -o $@ $^ $(CFLAGS)
25
26 clean:
27 rm -rf $(DSTROOT)/mktimer_test $(DSTROOT)/mk_timer_test.dSYM