include ../Makefile.common
+DSTROOT?=$(shell /bin/pwd)
+SYMROOT?=$(shell /bin/pwd)
OBJROOT?=$(shell /bin/pwd)
CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc)
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