X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/3e170ce000f1506b7b5d2c5c7faec85ceabb573d..HEAD:/tools/tests/perf_index/Makefile?ds=sidebyside diff --git a/tools/tests/perf_index/Makefile b/tools/tests/perf_index/Makefile index ba1218867..0c0823fae 100644 --- a/tools/tests/perf_index/Makefile +++ b/tools/tests/perf_index/Makefile @@ -1,26 +1,15 @@ include ../Makefile.common CC:=$(shell xcrun -sdk "$(SDKROOT)" -find cc) -CFLAGS:=-c -Wall -pedantic -Os -isysroot $(SDKROOT) -LDFLAGS:= +CFLAGS:=-c -Wall -pedantic -Os -isysroot $(SDKROOT) $(ARCH_FLAGS) +CFLAGS += -Wl,-sectcreate,__INFO_FILTER,__disable,/dev/null +LDFLAGS:= $(ARCH_FLAGS) -isysroot $(SDKROOT) SRCROOT?=$(shell /bin/pwd) DSTROOT?=$(shell /bin/pwd)/BUILD/dst OBJROOT?=$(shell /bin/pwd)/BUILD/obj SYMROOT?=$(shell /bin/pwd)/BUILD/sym -ifdef RC_ARCHS - ARCHS:=$(RC_ARCHS) -else - ifeq ($(ARCHS),) - ifeq "$(Embedded)" "YES" - ARCHS:=armv7 armv7s arm64 -else - ARCHS:=x86_64 i386 -endif -endif -endif - ifeq "$(Embedded)" "YES" TARGET_NAME:=PerfIndex.bundle-ios @@ -28,9 +17,6 @@ else TARGET_NAME:=PerfIndex.bundle-osx endif -CFLAGS += $(patsubst %, -arch %, $(ARCHS)) -LDFLAGS += $(patsubst %, -arch %, $(ARCHS)) - all: $(DSTROOT) $(OBJROOT) $(SYMROOT) \ $(DSTROOT)/perf_index \ $(DSTROOT)/perfindex-cpu.dylib \ @@ -71,13 +57,13 @@ $(OBJROOT)/%.o: $(SRCROOT)/%.c $(CC) $(CFLAGS) $? -o $@ $(DSTROOT): - mkdir -p $(DSTROOT); + mkdir -p $(DSTROOT) $(OBJROOT): - mkdir -p $(OBJROOT); + mkdir -p $(OBJROOT) $(SYMROOT): - mkdir -p $(SYMROOT); + mkdir -p $(SYMROOT) clean: rm -rf $(OBJROOT)