]> git.saurik.com Git - apple/xnu.git/blob - tools/tests/kernpost_test_report/Makefile
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tools / tests / kernpost_test_report / 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 CFLAGS:=$(ARCH_FLAGS) -g -Wall -Os -isysroot $(SDKROOT) -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders -lkdd -framework Foundation
10
11 all: $(DSTROOT)/kernpost_test_report
12
13 $(DSTROOT)/kernpost_test_report: kernpost_test_report.m
14 $(CC) -o $@ $^ $(subst -arch i386,,$(CFLAGS))
15
16 clean:
17 rm -f $(DSTROOT)/kernpost_test_report $(OBJROOT)/*.o
18 rm -rf $(SYMROOT)/*.dSYM