]> git.saurik.com Git - apple/xnu.git/blob - tools/tests/superpages/Makefile
xnu-4570.20.62.tar.gz
[apple/xnu.git] / tools / tests / superpages / Makefile
1 include ../Makefile.common
2
3 DSTROOT?=$(shell /bin/pwd)
4 TARGETS := $(addprefix $(DSTROOT)/, measure_tlbs testsp)
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 CFLAGS += $(patsubst %, -arch %, $(ARCHS)) -isysroot $(SDKROOT)
18
19 all: $(TARGETS)
20
21 clean:
22 rm -f $(TARGETS)
23
24 $(TARGETS): $(DSTROOT)/%: %.c
25 $(CC) $(CFLAGS) -o $@ $<