]> git.saurik.com Git - apple/xnu.git/blame - tools/tests/superpages/Makefile
xnu-3247.1.106.tar.gz
[apple/xnu.git] / tools / tests / superpages / Makefile
CommitLineData
3e170ce0 1include ../Makefile.common
39236c6e
A
2
3DSTROOT?=$(shell /bin/pwd)
4TARGETS := $(addprefix $(DSTROOT)/, measure_tlbs testsp)
fe8ab488 5CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc)
39236c6e
A
6
7ifdef RC_ARCHS
8 ARCHS:=$(RC_ARCHS)
9 else
10 ifeq "$(Embedded)" "YES"
fe8ab488 11 ARCHS:=armv7 armv7s arm64
39236c6e
A
12 else
13 ARCHS:=x86_64 i386
14 endif
15endif
16
3e170ce0 17CFLAGS += $(patsubst %, -arch %, $(ARCHS)) -isysroot $(SDKROOT)
39236c6e
A
18
19all: $(TARGETS)
20
21clean:
22 rm -f $(TARGETS)
23
24$(TARGETS): $(DSTROOT)/%: %.c
25 $(CC) $(CFLAGS) -o $@ $<