]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/tests/jitter/Makefile
xnu-4570.1.46.tar.gz
[apple/xnu.git] / tools / tests / jitter / Makefile
index f78950c1a86682260818cbfedffe9c57deb67028..901814c6e4944a6d4a3be2fd6e4b96f0dc87fec2 100644 (file)
@@ -1,5 +1,7 @@
 include ../Makefile.common
 
+DSTROOT?=$(shell /bin/pwd)
+SYMROOT?=$(shell /bin/pwd)
 OBJROOT?=$(shell /bin/pwd)
 
 CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc)
@@ -14,20 +16,14 @@ ifdef RC_ARCHS
   endif
 endif
 
-DSTROOT?=$(shell /bin/pwd)
 
 CFLAGS:=$(patsubst %, -arch %,$(ARCHS)) -g -Wall -Os -isysroot $(SDKROOT) -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders
 
 all: $(DSTROOT)/jitter
 
-$(OBJROOT)/timer_jitter.o: timer_jitter.c
-       $(CC) -c -o $@ $< $(CFLAGS)
-
-$(OBJROOT)/cpu_number.o: cpu_number.s
-       $(CC) -c -o $@ $< $(CFLAGS)
-
-$(DSTROOT)/jitter: $(OBJROOT)/timer_jitter.o $(OBJROOT)/cpu_number.o
+$(DSTROOT)/jitter: timer_jitter.c
        $(CC) -o $@ $^ $(CFLAGS)
 
 clean:
        rm -f $(DSTROOT)/jitter $(OBJROOT)/*.o
+       rm -rf $(SYMROOT)/*.dSYM