X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/6d2010ae8f7a6078e10b361c6962983bab233e0f..f427ee49d309d8fc33ebf3042c3a775f2f530ded:/tools/tests/jitter/Makefile diff --git a/tools/tests/jitter/Makefile b/tools/tests/jitter/Makefile index ade16e7f4..b5c086e2f 100644 --- a/tools/tests/jitter/Makefile +++ b/tools/tests/jitter/Makefile @@ -1,16 +1,19 @@ +include ../Makefile.common -ARCHS=x86_64 i386 -SDKROOT=/ -CC=xcrun -sdk "$(SDKROOT)" cc -CFLAGS=$(patsubst %, -arch %,$(ARCHS)) -g -Wall -Os -isysroot $(SDKROOT) +DSTROOT?=$(shell /bin/pwd) +SYMROOT?=$(shell /bin/pwd) +OBJROOT?=$(shell /bin/pwd) -all: jitter +CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc) -timer_jitter.o: timer_jitter.c - $(CC) -c -o $@ $< $(CFLAGS) +CFLAGS:=$(ARCH_FLAGS) -g -Wall -Os -isysroot $(SDKROOT) -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders +CFLAGS += -Wl,-sectcreate,__INFO_FILTER,__disable,/dev/null -cpu_number.o: cpu_number.s - $(CC) -c -o $@ $< $(CFLAGS) +all: $(DSTROOT)/jitter -jitter: timer_jitter.o cpu_number.o +$(DSTROOT)/jitter: timer_jitter.c $(CC) -o $@ $^ $(CFLAGS) + +clean: + rm -f $(DSTROOT)/jitter $(OBJROOT)/*.o + rm -rf $(SYMROOT)/*.dSYM