1*94d3b452SApple OSS DistributionsPROJECT := xnu/darwintests 2*94d3b452SApple OSS Distributions 3*94d3b452SApple OSS Distributions# When building as part of xnu_tests, we get passed a DSTROOT that's got the 4*94d3b452SApple OSS Distributions# unit test path in it already. But, BASEDSTROOT doesn't, so use that instead. 5*94d3b452SApple OSS Distributionsifdef BASEDSTROOT 6*94d3b452SApple OSS Distributionsoverride DSTROOT = $(BASEDSTROOT) 7*94d3b452SApple OSS Distributionsendif 8*94d3b452SApple OSS Distributions 9*94d3b452SApple OSS DistributionsINVALID_ARCHS = i386 $(filter armv7%,$(ARCH_CONFIGS)) 10*94d3b452SApple OSS DistributionsENABLE_LTE_TESTS=YES 11*94d3b452SApple OSS Distributions 12*94d3b452SApple OSS DistributionsOTHER_LTE_INCLUDE_FILES += \ 13*94d3b452SApple OSS Distributions /System/Library/PrivateFrameworks/LoggingSupport.framework, \ 14*94d3b452SApple OSS Distributions /System/Library/PrivateFrameworks/MobileKeyBag.framework, \ 15*94d3b452SApple OSS Distributions /System/Library/Frameworks/IOSurface.framework, \ 16*94d3b452SApple OSS Distributions /usr/local/lib/libdarwintest_utils.dylib, \ 17*94d3b452SApple OSS Distributions /usr/lib/libapple_crypto.dylib, 18*94d3b452SApple OSS Distributions 19*94d3b452SApple OSS DistributionsDEVELOPER_DIR ?= $(shell xcode-select -p) 20*94d3b452SApple OSS Distributions 21*94d3b452SApple OSS Distributions 22*94d3b452SApple OSS Distributions# the xnu build system will only ever call us with the default target 23*94d3b452SApple OSS Distributions.DEFAULT_GOAL := install 24*94d3b452SApple OSS Distributions 25*94d3b452SApple OSS Distributionsinclude $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.common 26*94d3b452SApple OSS Distributions 27*94d3b452SApple OSS DistributionsOTHER_CFLAGS = -Weverything -Wno-gnu-union-cast -Wno-missing-field-initializers -Wno-partial-availability 28*94d3b452SApple OSS DistributionsOTHER_CFLAGS += -Wno-missing-noreturn -Wno-vla -Wno-reserved-id-macro -Wno-documentation-unknown-command 29*94d3b452SApple OSS DistributionsOTHER_CFLAGS += -Wno-padded -Wno-used-but-marked-unused -Wno-covered-switch-default -Wno-nullability-extension 30*94d3b452SApple OSS DistributionsOTHER_CFLAGS += -Wno-gnu-empty-initializer -Wno-unused-macros -Wno-undef -Wno-fixed-enum-extension 31*94d3b452SApple OSS DistributionsOTHER_CFLAGS += -Wno-gnu-auto-type -Wno-switch-enum -Wno-variadic-macros 32*94d3b452SApple OSS DistributionsOTHER_CFLAGS += --std=gnu11 -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders 33*94d3b452SApple OSS DistributionsOTHER_CFLAGS += -UT_NAMESPACE_PREFIX -DT_NAMESPACE_PREFIX=xnu -DT_LEAKS_DISABLE=1 34*94d3b452SApple OSS DistributionsOTHER_CFLAGS += -F $(SDKROOT)/System/Library/PrivateFrameworks 35*94d3b452SApple OSS Distributions 36*94d3b452SApple OSS Distributions 37*94d3b452SApple OSS DistributionsCODESIGN:=$(shell xcrun -sdk "$(TARGETSDK)" -find codesign) 38*94d3b452SApple OSS DistributionsCODESIGN_HARDENED_RUNTIME:=$(CODESIGN) -o runtime 39*94d3b452SApple OSS DistributionsCODESIGN_ALLOCATE:=$(shell xcrun -sdk "$(TARGETSDK)" -find codesign_allocate) 40*94d3b452SApple OSS Distributions 41*94d3b452SApple OSS Distributionsifeq ($(PLATFORM),iPhoneOS) 42*94d3b452SApple OSS Distributions IOS_TEST_COMPAT = YES 43*94d3b452SApple OSS Distributionselse 44*94d3b452SApple OSS Distributions IOS_TEST_COMPAT = NO 45*94d3b452SApple OSS Distributionsendif 46*94d3b452SApple OSS Distributions 47*94d3b452SApple OSS Distributions# Subsystems 48*94d3b452SApple OSS Distributions 49*94d3b452SApple OSS Distributionsinclude ktrace/Makefile 50*94d3b452SApple OSS Distributions 51*94d3b452SApple OSS DistributionsINCLUDED_TEST_SOURCE_DIRS += recount 52*94d3b452SApple OSS Distributionsinclude recount/Makefile 53*94d3b452SApple OSS DistributionsINCLUDED_TEST_SOURCE_DIRS += cpu_counters 54*94d3b452SApple OSS Distributionsinclude cpu_counters/Makefile 55*94d3b452SApple OSS Distributions 56*94d3b452SApple OSS Distributions# Miscellaneous Tests 57*94d3b452SApple OSS Distributions 58*94d3b452SApple OSS Distributionsatm_diagnostic_flag: OTHER_CFLAGS += drop_priv.c 59*94d3b452SApple OSS Distributions 60*94d3b452SApple OSS Distributionsatm_diagnostic_flag_entitled: CODE_SIGN_ENTITLEMENTS = atm_diagnostic_flag.entitlements 61*94d3b452SApple OSS Distributionsatm_diagnostic_flag_entitled: OTHER_CFLAGS += drop_priv.c 62*94d3b452SApple OSS Distributions 63*94d3b452SApple OSS Distributionsavx: INVALID_ARCHS = $(filter arm%,$(ARCH_CONFIGS)) 64*94d3b452SApple OSS Distributionsavx: OTHER_CFLAGS += -mavx512f -mavx512bw -mavx512vl 65*94d3b452SApple OSS Distributionsavx: OTHER_CFLAGS += -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders 66*94d3b452SApple OSS Distributionsavx: CONFIG_FLAGS := $(filter-out -O%,$(CONFIG_FLAGS)) 67*94d3b452SApple OSS Distributions# Add -mno-implicit-float to prevent the compiler from touching SIMD regs 68*94d3b452SApple OSS Distributions# unexpectedly 69*94d3b452SApple OSS Distributionsavx: CONFIG_FLAGS += -mno-implicit-float 70*94d3b452SApple OSS Distributions# Disable vzeroupper insertion to work around rdar://problem/35035096 71*94d3b452SApple OSS Distributionsavx: CONFIG_FLAGS += -mllvm -x86-use-vzeroupper=0 72*94d3b452SApple OSS Distributionsifneq (osx,$(TARGET_NAME)) 73*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += avx.c 74*94d3b452SApple OSS Distributionsendif 75*94d3b452SApple OSS Distributions 76*94d3b452SApple OSS DistributionsCUSTOM_TARGETS = sr_entitlement_helper 77*94d3b452SApple OSS Distributions 78*94d3b452SApple OSS Distributionssr_entitlement_helper: sr_entitlement_helper.c 79*94d3b452SApple OSS Distributions mkdir -p $(SYMROOT) 80*94d3b452SApple OSS Distributions $(CC) -I $(OBJROOT) $(CFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) sr_entitlement_helper.c -o $(SYMROOT)/$@ 81*94d3b452SApple OSS Distributions echo $(CODESIGN) --force --sign - --timestamp=none --entitlements sr_entitlement.entitlements $(SYMROOT)/$@; \ 82*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none --entitlements sr_entitlement.entitlements $(SYMROOT)/$@; 83*94d3b452SApple OSS Distributions 84*94d3b452SApple OSS Distributionsinstall-sr_entitlement_helper: sr_entitlement_helper 85*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 86*94d3b452SApple OSS Distributions cp $(SYMROOT)/sr_entitlement_helper $(INSTALLDIR) 87*94d3b452SApple OSS Distributions 88*94d3b452SApple OSS Distributionssr_entitlement: OTHER_LDFLAGS += -ldarwintest_utils 89*94d3b452SApple OSS Distributions 90*94d3b452SApple OSS Distributionsrestrict_jit: CODE_SIGN_ENTITLEMENTS = restrict_jit.entitlements 91*94d3b452SApple OSS Distributions 92*94d3b452SApple OSS Distributionsbacktracing_tests: OTHER_LDFLAGS += -framework CoreSymbolication 93*94d3b452SApple OSS Distributionsbacktracing_tests: CODE_SIGN_ENTITLEMENTS = kernel_symbolication_entitlements.plist 94*94d3b452SApple OSS Distributions 95*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += corpse_backtrace2 96*94d3b452SApple OSS Distributions 97*94d3b452SApple OSS Distributionscorpse_backtrace2: 98*94d3b452SApple OSS Distributions $(MIG) $(CFLAGS) \ 99*94d3b452SApple OSS Distributions -DMACH_EXC_SERVER_TASKIDTOKEN \ 100*94d3b452SApple OSS Distributions -DMACH_EXC_SERVER_BACKTRACE \ 101*94d3b452SApple OSS Distributions -sheader $(OBJROOT)/excserver_backtrace.h \ 102*94d3b452SApple OSS Distributions -server $(OBJROOT)/excserver_backtrace.c \ 103*94d3b452SApple OSS Distributions -header /dev/null -user /dev/null \ 104*94d3b452SApple OSS Distributions excserver_backtrace.defs 105*94d3b452SApple OSS Distributions 106*94d3b452SApple OSS Distributionsinstall-corpse_backtrace2: ; 107*94d3b452SApple OSS Distributions 108*94d3b452SApple OSS Distributionscorpse_backtrace: corpse_backtrace2 exc_helpers.c 109*94d3b452SApple OSS Distributionscorpse_backtrace: OTHER_CFLAGS += $(OBJROOT)/excserver_backtrace.c 110*94d3b452SApple OSS Distributionscorpse_backtrace: OTHER_CFLAGS += -I $(OBJROOT) 111*94d3b452SApple OSS Distributionscorpse_backtrace: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 112*94d3b452SApple OSS Distributions 113*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += immovable_send_client vm_spawn_tool port_exhaustion_client port_table_limits_client fd_table_limits_client posix_spawnattr_set_crash_behavior_np_child kqworkloop_limits_client 114*94d3b452SApple OSS Distributions 115*94d3b452SApple OSS Distributionsexception_tests: excserver_protect exc_helpers.c 116*94d3b452SApple OSS Distributionsexception_tests: CODE_SIGN_ENTITLEMENTS = exception_tests.entitlements 117*94d3b452SApple OSS Distributionsexception_tests: OTHER_CFLAGS += $(OBJROOT)/excserver_protect.c 118*94d3b452SApple OSS Distributionsexception_tests: OTHER_CFLAGS += -I $(OBJROOT) 119*94d3b452SApple OSS Distributionsexception_tests: OTHER_CFLAGS += -DENTITLED=1 120*94d3b452SApple OSS Distributions 121*94d3b452SApple OSS Distributionsimmovable_send: excserver 122*94d3b452SApple OSS Distributionsimmovable_send: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 123*94d3b452SApple OSS Distributionsimmovable_send: OTHER_LDFLAGS += -ldarwintest_utils -lpthread -framework IOKit 124*94d3b452SApple OSS Distributionsimmovable_send: immovable_send_client 125*94d3b452SApple OSS Distributionsimmovable_send: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 126*94d3b452SApple OSS Distributions 127*94d3b452SApple OSS Distributionslocks: OTHER_LDFLAGS += -ldarwintest_utils 128*94d3b452SApple OSS Distributions 129*94d3b452SApple OSS Distributionsimmovable_send_client: immovable_send_client.c 130*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) immovable_send_client.c -o $(SYMROOT)/immovable_send_client 131*94d3b452SApple OSS Distributions 132*94d3b452SApple OSS Distributionsinstall-immovable_send_client: immovable_send_client 133*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 134*94d3b452SApple OSS Distributions cp $(SYMROOT)/immovable_send_client $(INSTALLDIR)/ 135*94d3b452SApple OSS Distributions 136*94d3b452SApple OSS Distributions 137*94d3b452SApple OSS Distributionsposix_spawnattr_set_crash_behavior_np: posix_spawnattr_set_crash_behavior_np_child 138*94d3b452SApple OSS Distributionsposix_spawnattr_set_crash_behavior_np: CODE_SIGN_ENTITLEMENTS = posix_spawnattr_set_crash_behavior_np_entitlements.plist 139*94d3b452SApple OSS Distributions 140*94d3b452SApple OSS Distributionsposix_spawnattr_set_crash_behavior_np_child: posix_spawnattr_set_crash_behavior_np_child.c 141*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) posix_spawnattr_set_crash_behavior_np_child.c -o $(SYMROOT)/posix_spawnattr_set_crash_behavior_np_child 142*94d3b452SApple OSS Distributions $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@ 143*94d3b452SApple OSS Distributions 144*94d3b452SApple OSS Distributionsinstall-posix_spawnattr_set_crash_behavior_np_child: posix_spawnattr_set_crash_behavior_np_child 145*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 146*94d3b452SApple OSS Distributions cp $(SYMROOT)/posix_spawnattr_set_crash_behavior_np_child $(INSTALLDIR)/ 147*94d3b452SApple OSS Distributions 148*94d3b452SApple OSS Distributionsposix_spawnattr_set_launch_type_np: posix_spawnattr_set_launch_type_test 149*94d3b452SApple OSS Distributionsposix_spawnattr_set_launch_type_np: OTHER_CFLAGS += -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders 150*94d3b452SApple OSS Distributions 151*94d3b452SApple OSS Distributionsposix_spawn_launch_type: CODE_SIGN_ENTITLEMENTS = posix_spawn_launch_type-entitlements.plist 152*94d3b452SApple OSS Distributions 153*94d3b452SApple OSS Distributionsport_exhaustion: OTHER_LDFLAGS += -ldarwintest_utils -lpthread 154*94d3b452SApple OSS Distributionsport_exhaustion: port_exhaustion_client 155*94d3b452SApple OSS Distributions 156*94d3b452SApple OSS Distributionsport_exhaustion_client: port_exhaustion_client.c 157*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) port_exhaustion_client.c -o $(SYMROOT)/port_exhaustion_client 158*94d3b452SApple OSS Distributions 159*94d3b452SApple OSS Distributionsinstall-port_exhaustion_client: port_exhaustion_client 160*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 161*94d3b452SApple OSS Distributions cp $(SYMROOT)/port_exhaustion_client $(INSTALLDIR)/ 162*94d3b452SApple OSS Distributions 163*94d3b452SApple OSS Distributionsport_table_limits: rnserver 164*94d3b452SApple OSS Distributionsport_table_limits: CODE_SIGN_ENTITLEMENTS = task_for_pid_entitlement.plist 165*94d3b452SApple OSS Distributionsport_table_limits: OTHER_CFLAGS += $(OBJROOT)/rnServer.c -I $(OBJROOT) 166*94d3b452SApple OSS Distributionsport_table_limits: OTHER_LDFLAGS += -ldarwintest_utils -lpthread 167*94d3b452SApple OSS Distributionsport_table_limits: port_table_limits_client 168*94d3b452SApple OSS Distributions 169*94d3b452SApple OSS Distributionsport_table_limits_client: port_table_limits_client.c 170*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) port_table_limits_client.c -o $(SYMROOT)/port_table_limits_client 171*94d3b452SApple OSS Distributions $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@ 172*94d3b452SApple OSS Distributions 173*94d3b452SApple OSS Distributionsinstall-port_table_limits_client: port_table_limits_client 174*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 175*94d3b452SApple OSS Distributions cp $(SYMROOT)/port_table_limits_client $(INSTALLDIR)/ 176*94d3b452SApple OSS Distributions 177*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += kqwl_rnserver 178*94d3b452SApple OSS Distributions 179*94d3b452SApple OSS Distributionskqwl_rnserver: 180*94d3b452SApple OSS Distributions $(MIG) $(CFLAGS) \ 181*94d3b452SApple OSS Distributions -DKQWORKLOOPS_VIOLATION_SUPPORTED \ 182*94d3b452SApple OSS Distributions -user /dev/null \ 183*94d3b452SApple OSS Distributions -header $(OBJROOT)/kqwl_rn.h \ 184*94d3b452SApple OSS Distributions -sheader $(OBJROOT)/kqwl_rnServer.h \ 185*94d3b452SApple OSS Distributions -server $(OBJROOT)/kqwl_rnServer.c \ 186*94d3b452SApple OSS Distributions rnserver.defs 187*94d3b452SApple OSS Distributionsinstall-kqwl_rnserver: ; 188*94d3b452SApple OSS Distributions 189*94d3b452SApple OSS Distributionskqworkloop_limits: kqwl_rnserver 190*94d3b452SApple OSS Distributionskqworkloop_limits: OTHER_CFLAGS += $(OBJROOT)/kqwl_rnServer.c -I $(OBJROOT) 191*94d3b452SApple OSS Distributionskqworkloop_limits: OTHER_LDFLAGS += -ldarwintest_utils -lpthread 192*94d3b452SApple OSS Distributionskqworkloop_limits: kqworkloop_limits_client 193*94d3b452SApple OSS Distributions 194*94d3b452SApple OSS Distributionskqworkloop_limits_client: kqworkloop_limits_client.c 195*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) kqworkloop_limits_client.c -o $(SYMROOT)/kqworkloop_limits_client 196*94d3b452SApple OSS Distributions $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@ 197*94d3b452SApple OSS Distributions 198*94d3b452SApple OSS Distributionsinstall-kqworkloop_limits_client: kqworkloop_limits_client 199*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 200*94d3b452SApple OSS Distributions cp $(SYMROOT)/kqworkloop_limits_client $(INSTALLDIR)/ 201*94d3b452SApple OSS Distributions 202*94d3b452SApple OSS Distributionsipc/task_name_for_pid: CODE_SIGN_ENTITLEMENTS = ipc/task_name_for_pid_entitlement.plist 203*94d3b452SApple OSS Distributions 204*94d3b452SApple OSS Distributionsfd_table_limits: rnserver 205*94d3b452SApple OSS Distributionsfd_table_limits: OTHER_CFLAGS += $(OBJROOT)/rnServer.c -I $(OBJROOT) 206*94d3b452SApple OSS Distributionsfd_table_limits: OTHER_LDFLAGS += -ldarwintest_utils -lpthread 207*94d3b452SApple OSS Distributionsfd_table_limits: fd_table_limits_client 208*94d3b452SApple OSS Distributions 209*94d3b452SApple OSS Distributionsfd_table_limits_client: fd_table_limits_client.c 210*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) fd_table_limits_client.c -o $(SYMROOT)/fd_table_limits_client 211*94d3b452SApple OSS Distributions $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@ 212*94d3b452SApple OSS Distributions 213*94d3b452SApple OSS Distributionsinstall-fd_table_limits_client: fd_table_limits_client 214*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 215*94d3b452SApple OSS Distributions cp $(SYMROOT)/fd_table_limits_client $(INSTALLDIR)/ 216*94d3b452SApple OSS Distributions 217*94d3b452SApple OSS Distributionsvm_spawn_tool: INVALID_ARCHS = i386 218*94d3b452SApple OSS Distributionsvm_spawn_tool: vm_spawn_tool.c 219*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) vm_spawn_tool.c -o $(SYMROOT)/vm_spawn_tool 220*94d3b452SApple OSS Distributions 221*94d3b452SApple OSS Distributionsinstall-vm_spawn_tool: vm_spawn_tool 222*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/tools 223*94d3b452SApple OSS Distributions cp $(SYMROOT)/vm_spawn_tool $(INSTALLDIR)/tools/ 224*94d3b452SApple OSS Distributions 225*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += imm_pinned_control_port_crasher 226*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += imm_pinned_control_port_crasher_3P_hardened 227*94d3b452SApple OSS Distributions 228*94d3b452SApple OSS Distributionsimm_pinned_control_port: excserver_protect 229*94d3b452SApple OSS Distributionsimm_pinned_control_port: CODE_SIGN_ENTITLEMENTS = task_for_pid_entitlement.plist 230*94d3b452SApple OSS Distributionsimm_pinned_control_port: OTHER_CFLAGS += $(OBJROOT)/excserver_protect.c -I $(OBJROOT) 231*94d3b452SApple OSS Distributionsimm_pinned_control_port: OTHER_LDFLAGS += -ldarwintest_utils -lpthread 232*94d3b452SApple OSS Distributionsimm_pinned_control_port: imm_pinned_control_port_crasher imm_pinned_control_port_crasher_3P_hardened 233*94d3b452SApple OSS Distributions 234*94d3b452SApple OSS Distributionsimm_pinned_control_port_crasher: imm_pinned_control_port_crasher.c cs_helpers.c 235*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders \ 236*94d3b452SApple OSS Distributions $^ -o $(SYMROOT)/$@ 237*94d3b452SApple OSS Distributions $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@ 238*94d3b452SApple OSS Distributions 239*94d3b452SApple OSS Distributionsimm_pinned_control_port_crasher_3P_hardened: CODE_SIGN_ENTITLEMENTS = entitlements/hardened-binary-entitlements-1.plist 240*94d3b452SApple OSS Distributionsimm_pinned_control_port_crasher_3P_hardened: imm_pinned_control_port_crasher.c cs_helpers.c 241*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders \ 242*94d3b452SApple OSS Distributions $^ -o $(SYMROOT)/$@ 243*94d3b452SApple OSS Distributions $(CODESIGN) --force --sign - --entitlements $(CODE_SIGN_ENTITLEMENTS) --timestamp=none $(SYMROOT)/$@ 244*94d3b452SApple OSS Distributions 245*94d3b452SApple OSS Distributionsinstall-imm_pinned_control_port_crasher: imm_pinned_control_port_crasher 246*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 247*94d3b452SApple OSS Distributions cp $(SYMROOT)/$^ $(INSTALLDIR)/ 248*94d3b452SApple OSS Distributions 249*94d3b452SApple OSS Distributionsinstall-imm_pinned_control_port_crasher_3P_hardened: imm_pinned_control_port_crasher_3P_hardened 250*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 251*94d3b452SApple OSS Distributions cp $(SYMROOT)/$^ $(INSTALLDIR)/ 252*94d3b452SApple OSS Distributions 253*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += reply_port_defense_client 254*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += reply_port_defense_client_3P_hardened 255*94d3b452SApple OSS Distributions 256*94d3b452SApple OSS Distributionsreply_port_defense: excserver_protect 257*94d3b452SApple OSS Distributionsreply_port_defense: OTHER_CFLAGS += $(OBJROOT)/excserver_protect.c -I $(OBJROOT) 258*94d3b452SApple OSS Distributionsreply_port_defense: OTHER_LDFLAGS += -ldarwintest_utils -lpthread 259*94d3b452SApple OSS Distributionsreply_port_defense: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 260*94d3b452SApple OSS Distributionsreply_port_defense: reply_port_defense_client reply_port_defense_client_3P_hardened 261*94d3b452SApple OSS Distributions 262*94d3b452SApple OSS Distributionsreply_port_defense_client: reply_port_defense_client.c cs_helpers.c 263*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders \ 264*94d3b452SApple OSS Distributions $^ -o $(SYMROOT)/$@ 265*94d3b452SApple OSS Distributions $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@ 266*94d3b452SApple OSS Distributions 267*94d3b452SApple OSS Distributionsreply_port_defense_client_3P_hardened: CODE_SIGN_ENTITLEMENTS=entitlements/hardened-binary-entitlements-1.plist 268*94d3b452SApple OSS Distributionsreply_port_defense_client_3P_hardened: reply_port_defense_client.c cs_helpers.c 269*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders \ 270*94d3b452SApple OSS Distributions $^ -o $(SYMROOT)/$@ 271*94d3b452SApple OSS Distributions $(CODESIGN) --force --sign - --entitlements $(CODE_SIGN_ENTITLEMENTS) --timestamp=none $(SYMROOT)/$@ 272*94d3b452SApple OSS Distributions 273*94d3b452SApple OSS Distributionsinstall-reply_port_defense_client: reply_port_defense_client 274*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 275*94d3b452SApple OSS Distributions cp $(SYMROOT)/$< $(INSTALLDIR)/ 276*94d3b452SApple OSS Distributions 277*94d3b452SApple OSS Distributionsinstall-reply_port_defense_client_3P_hardened: reply_port_defense_client_3P_hardened 278*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 279*94d3b452SApple OSS Distributions cp $(SYMROOT)/$< $(INSTALLDIR)/ 280*94d3b452SApple OSS Distributions 281*94d3b452SApple OSS Distributionskas_info: OTHER_LDFLAGS += -framework CoreSymbolication 282*94d3b452SApple OSS Distributionskas_info: CODE_SIGN_ENTITLEMENTS = kernel_symbolication_entitlements.plist 283*94d3b452SApple OSS Distributions 284*94d3b452SApple OSS Distributionshost_statistics_rate_limiting: cs_helpers.c host_statistics_rate_limiting.c 285*94d3b452SApple OSS Distributions 286*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += drop_priv.c xnu_quick_test_helpers.c memorystatus_assertion_helpers.c bpflib.c in_cksum.c test_utils.c inet_transfer.c net_test_lib.c cs_helpers.c 287*94d3b452SApple OSS Distributions 288*94d3b452SApple OSS Distributionsifneq ($(IOS_TEST_COMPAT),YES) 289*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += jumbo_va_spaces_28530648.c perf_compressor.c vm/entitlement_increased_memory_limit.c vm/ios13extended_footprint.c vm/entitlement_internal_bands.c 290*94d3b452SApple OSS Distributionsendif 291*94d3b452SApple OSS Distributions 292*94d3b452SApple OSS Distributionsperf_compressor: OTHER_LDFLAGS += -ldarwintest_utils 293*94d3b452SApple OSS Distributionsperf_compressor: CODE_SIGN_ENTITLEMENTS=./private_entitlement.plist 294*94d3b452SApple OSS Distributions 295*94d3b452SApple OSS Distributions 296*94d3b452SApple OSS Distributionsvm/memorystatus_freeze_test: CODE_SIGN_ENTITLEMENTS=./task_for_pid_entitlement.plist 297*94d3b452SApple OSS Distributionsvm/memorystatus_freeze_test: OTHER_LDFLAGS += -ldarwintest_utils 298*94d3b452SApple OSS Distributionsvm/memorystatus_freeze_test: memorystatus_assertion_helpers.c test_utils.c vm/memorystatus_freeze_test.c 299*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $^ -o $(SYMROOT)/$@ 300*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none --entitlements $(CODE_SIGN_ENTITLEMENTS) $(SYMROOT)/$@; 301*94d3b452SApple OSS Distributions 302*94d3b452SApple OSS Distributionsvm/memorystatus_freeze_test_entitled: CODE_SIGN_ENTITLEMENTS=./vm/memorystatus_freeze_test_entitled.plist 303*94d3b452SApple OSS Distributionsvm/memorystatus_freeze_test_entitled: OTHER_LDFLAGS += -ldarwintest_utils 304*94d3b452SApple OSS Distributionsvm/memorystatus_freeze_test_entitled: test_utils.c vm/memorystatus_freeze_test_entitled.c 305*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $^ -o $(SYMROOT)/$@ 306*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none --entitlements $(CODE_SIGN_ENTITLEMENTS) $(SYMROOT)/$@; 307*94d3b452SApple OSS Distributions 308*94d3b452SApple OSS Distributionsmemorystatus_is_assertion: OTHER_LDFLAGS += -ldarwintest_utils 309*94d3b452SApple OSS Distributionsmemorystatus_is_assertion: OTHER_CFLAGS += memorystatus_assertion_helpers.c 310*94d3b452SApple OSS Distributions 311*94d3b452SApple OSS Distributionsmemorystatus_vm_map_fork: OTHER_CFLAGS += test_utils.c 312*94d3b452SApple OSS Distributionsmemorystatus_vm_map_fork: OTHER_LDFLAGS += -ldarwintest_utils 313*94d3b452SApple OSS Distributions 314*94d3b452SApple OSS Distributionsshared_cache_tests: OTHER_LDFLAGS += -ldarwintest_utils 315*94d3b452SApple OSS Distributions 316*94d3b452SApple OSS Distributionsstackshot_tests: ./stackshot-entitlements.plist stackshot_tests.m 317*94d3b452SApple OSS Distributionsstackshot_tests: CODE_SIGN_ENTITLEMENTS=./stackshot-entitlements.plist 318*94d3b452SApple OSS Distributionsstackshot_tests: OTHER_CFLAGS += -Wno-objc-messaging-id 319*94d3b452SApple OSS Distributionsstackshot_tests: OTHER_LDFLAGS += -lkdd -lz -ldarwintest_utils -framework Foundation -framework IOKit 320*94d3b452SApple OSS Distributions 321*94d3b452SApple OSS Distributionsstackshot_accuracy: ./stackshot-entitlements.plist 322*94d3b452SApple OSS Distributionsstackshot_accuracy: CODE_SIGN_ENTITLEMENTS=./stackshot-entitlements.plist 323*94d3b452SApple OSS Distributionsstackshot_accuracy: OTHER_CFLAGS += -ldarwintest_utils -Wno-objc-messaging-id 324*94d3b452SApple OSS Distributionsstackshot_accuracy: OTHER_LDFLAGS += -lkdd -ldarwintest_utils -framework Foundation 325*94d3b452SApple OSS Distributionsstackshot_accuracy: INVALID_ARCHS = i386 326*94d3b452SApple OSS Distributions 327*94d3b452SApple OSS Distributionsstackshot_spawn_exit_stress: ./stackshot-entitlements.plist 328*94d3b452SApple OSS Distributionsstackshot_spawn_exit_stress: CODE_SIGN_ENTITLEMENTS=./stackshot-entitlements.plist 329*94d3b452SApple OSS Distributions 330*94d3b452SApple OSS Distributionsifeq ($(PLATFORM),MacOSX) 331*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += stackshot_translated_child 332*94d3b452SApple OSS Distributions 333*94d3b452SApple OSS Distributionsstackshot_translated_child: INVALID_ARCHS = arm64 arm64e 334*94d3b452SApple OSS Distributionsstackshot_translated_child: stackshot_translated_child.c 335*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) stackshot_translated_child.c -o $(SYMROOT)/stackshot_translated_child 336*94d3b452SApple OSS Distributions 337*94d3b452SApple OSS Distributionsinstall-stackshot_translated_child: stackshot_translated_child 338*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 339*94d3b452SApple OSS Distributions cp $(SYMROOT)/stackshot_translated_child $(INSTALLDIR)/ 340*94d3b452SApple OSS Distributionselse 341*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += stackshot_translated_child.c 342*94d3b452SApple OSS Distributionsendif 343*94d3b452SApple OSS Distributions 344*94d3b452SApple OSS Distributionsmicrostackshot_tests: ./stackshot-entitlements.plist 345*94d3b452SApple OSS Distributionsmicrostackshot_tests: CODE_SIGN_ENTITLEMENTS=./stackshot-entitlements.plist 346*94d3b452SApple OSS Distributionsmicrostackshot_tests: OTHER_LDFLAGS = -ldarwintest_utils -framework ktrace -framework kperf -framework CoreFoundation 347*94d3b452SApple OSS Distributions 348*94d3b452SApple OSS Distributionsmemorystatus_zone_test: ./stackshot-entitlements.plist 349*94d3b452SApple OSS Distributionsmemorystatus_zone_test: CODE_SIGN_ENTITLEMENTS=./stackshot-entitlements.plist 350*94d3b452SApple OSS Distributionsmemorystatus_zone_test: OTHER_CFLAGS += -isystem $(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders 351*94d3b452SApple OSS Distributionsmemorystatus_zone_test: OTHER_LDFLAGS += -framework ktrace 352*94d3b452SApple OSS Distributionsmemorystatus_zone_test: OTHER_LDFLAGS += -ldarwintest_utils 353*94d3b452SApple OSS Distributions 354*94d3b452SApple OSS Distributionsmemcmp_zero: OTHER_CFLAGS += ../osfmk/arm64/memcmp_zero.s 355*94d3b452SApple OSS Distributions 356*94d3b452SApple OSS Distributionstext_corruption: OTHER_LDFLAGS += -ldarwintest_utils 357*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += text_corruption_helper 358*94d3b452SApple OSS Distributions 359*94d3b452SApple OSS Distributionstext_corruption_helper: 360*94d3b452SApple OSS Distributions $(CC) $(LDFLAGS) $(CFLAGS) text_corruption_helper.c -lm -o $(SYMROOT)/$@; 361*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; 362*94d3b452SApple OSS Distributions 363*94d3b452SApple OSS Distributionsinstall-text_corruption_helper: text_corruption_helper 364*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 365*94d3b452SApple OSS Distributions cp $(SYMROOT)/text_corruption_helper $(INSTALLDIR)/ 366*94d3b452SApple OSS Distributions 367*94d3b452SApple OSS Distributionscodesigntests: CODE_SIGN_ENTITLEMENTS=codesigntests-entitlements.plist 368*94d3b452SApple OSS Distributionscodesigntests: OTHER_CFLAGS += -DTESTNAME=codesigntests 369*94d3b452SApple OSS Distributions# Adding a custom target and build/install rules since CODE_SIGN_ENTITLEMENTS 370*94d3b452SApple OSS Distributions# does not take in arguments, and we need to sign this test using a sha256T 371*94d3b452SApple OSS Distributions# digest 372*94d3b452SApple OSS Distributions 373*94d3b452SApple OSS DistributionsOTHER_TEST_TARGETS += codesigntests_sha256t 374*94d3b452SApple OSS Distributionscodesigntests_sha256t: OTHER_CFLAGS += -DTESTNAME=codesigntests_sha256t 375*94d3b452SApple OSS Distributions 376*94d3b452SApple OSS Distributionscodesigntests_sha256t: codesigntests.c 377*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(DT_LDFLAGS) $(LDFLAGS) $(CFLAGS) codesigntests.c -o $(SYMROOT)/$@; 378*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --digest=sha256T -s - --entitlements codesigntests-entitlements.plist $(SYMROOT)/$@; 379*94d3b452SApple OSS Distributionsinstall-codesigntests_sha256t: codesigntests_sha256t 380*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 381*94d3b452SApple OSS Distributions cp $(SYMROOT)/codesigntests_sha256t $(INSTALLDIR)/ 382*94d3b452SApple OSS Distributions 383*94d3b452SApple OSS Distributions 384*94d3b452SApple OSS Distributionsecc_test: OTHER_LDFLAGS += -ldarwintest_utils 385*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += ecc_test_helper 386*94d3b452SApple OSS Distributions 387*94d3b452SApple OSS Distributionsecc_test_helper: 388*94d3b452SApple OSS Distributions $(CC) $(LDFLAGS) $(CFLAGS) ecc_test_helper.c -lm -o $(SYMROOT)/$@; 389*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; 390*94d3b452SApple OSS Distributions 391*94d3b452SApple OSS Distributionsinstall-ecc_test_helper: ecc_test_helper 392*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 393*94d3b452SApple OSS Distributions cp $(SYMROOT)/ecc_test_helper $(INSTALLDIR)/ 394*94d3b452SApple OSS Distributions 395*94d3b452SApple OSS Distributionsvm/test_vm_no_pager: excserver 396*94d3b452SApple OSS Distributionsvm/test_vm_no_pager: OTHER_LDFLAGS += -ldarwintest_utils -lpthread -lkdd -framework Foundation 397*94d3b452SApple OSS Distributionsvm/test_vm_no_pager: OTHER_CFLAGS += -I$(SDKROOT)/System/Library/Frameworks/System.framework/PrivateHeaders $(OBJROOT)/excserver.c -I$(OBJROOT) 398*94d3b452SApple OSS Distributionsvm,/test_vm_no_pager: vm/test_vm_no_pager_helper 399*94d3b452SApple OSS Distributionsvm/test_vm_no_pager: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 400*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += vm/test_vm_no_pager_helper 401*94d3b452SApple OSS Distributions 402*94d3b452SApple OSS Distributionsvm/test_vm_no_pager_helper: vm/test_vm_no_pager_helper.c 403*94d3b452SApple OSS Distributions $(CC) $(CFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $^ -lm -o $(SYMROOT)/$@; 404*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; 405*94d3b452SApple OSS Distributions 406*94d3b452SApple OSS Distributionsinstall-vm/test_vm_no_pager_helper: vm/test_vm_no_pager_helper 407*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/vm 408*94d3b452SApple OSS Distributions cp $(SYMROOT)/vm/test_vm_no_pager_helper $(INSTALLDIR)/vm/ 409*94d3b452SApple OSS Distributions 410*94d3b452SApple OSS Distributions 411*94d3b452SApple OSS Distributionskevent_qos: OTHER_CFLAGS += -Wno-unused-macros 412*94d3b452SApple OSS Distributionskevent_qos: OTHER_CFLAGS += -I $(OBJROOT)/ 413*94d3b452SApple OSS Distributions 414*94d3b452SApple OSS Distributionstest_knote_use_after_free: OTHER_CFLAGS += -Wno-unused-macros 415*94d3b452SApple OSS Distributionstest_knote_use_after_free: OTHER_LDFLAGS += -ldarwintest_utils -lpthread 416*94d3b452SApple OSS Distributions 417*94d3b452SApple OSS Distributionsmach_get_times: OTHER_LDFLAGS += -ldarwintest_utils 418*94d3b452SApple OSS Distributions 419*94d3b452SApple OSS Distributionsmonotonic_core: ./stackshot-entitlements.plist 420*94d3b452SApple OSS Distributionsmonotonic_core: CODE_SIGN_ENTITLEMENTS=./stackshot-entitlements.plist 421*94d3b452SApple OSS Distributionsmonotonic_core: OTHER_LDFLAGS += -framework ktrace 422*94d3b452SApple OSS Distributions 423*94d3b452SApple OSS Distributionsperf_exit: perf_exit_proc 424*94d3b452SApple OSS Distributionsperf_exit: ./stackshot-entitlements.plist 425*94d3b452SApple OSS Distributionsperf_exit: CODE_SIGN_ENTITLEMENTS=./stackshot-entitlements.plist 426*94d3b452SApple OSS Distributionsperf_exit: OTHER_LDFLAGS = -framework ktrace -ldarwintest_utils 427*94d3b452SApple OSS Distributionsperf_exit: CODE_SIGN_ENTITLEMENTS=./private_entitlement.plist 428*94d3b452SApple OSS Distributions 429*94d3b452SApple OSS Distributionsipc/mach_exc_port_substitute: excserver 430*94d3b452SApple OSS Distributionsipc/mach_exc_port_substitute: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 431*94d3b452SApple OSS Distributionsipc/mach_exc_port_substitute: CODE_SIGN_ENTITLEMENTS = ipc/mach_exc_port_substitute.plist 432*94d3b452SApple OSS Distributions 433*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += prioritize_process_launch_helper 434*94d3b452SApple OSS Distributionsprioritize_process_launch: prioritize_process_launch_helper 435*94d3b452SApple OSS Distributions 436*94d3b452SApple OSS Distributionsprioritize_process_launch_helper: prioritize_process_launch_helper.c 437*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) prioritize_process_launch_helper.c -o $(SYMROOT)/prioritize_process_launch_helper 438*94d3b452SApple OSS Distributions echo $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; \ 439*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; 440*94d3b452SApple OSS Distributions 441*94d3b452SApple OSS Distributionsinstall-prioritize_process_launch_helper: prioritize_process_launch_helper 442*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 443*94d3b452SApple OSS Distributions cp $(SYMROOT)/prioritize_process_launch_helper $(INSTALLDIR)/ 444*94d3b452SApple OSS Distributions 445*94d3b452SApple OSS Distributions 446*94d3b452SApple OSS Distributionsperf_spawn_fork: CODE_SIGN_ENTITLEMENTS=./private_entitlement.plist 447*94d3b452SApple OSS Distributions 448*94d3b452SApple OSS Distributionsmach_exception_reply: OTHER_CFLAGS += -Wno-cast-align 449*94d3b452SApple OSS Distributionsmach_exception_reply: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 450*94d3b452SApple OSS Distributions 451*94d3b452SApple OSS Distributionsos_thread_self_restrict: os_thread_self_restrict.c os_thread_self_restrict-entitlements.plist 452*94d3b452SApple OSS Distributionsos_thread_self_restrict: CODE_SIGN_ENTITLEMENTS=os_thread_self_restrict-entitlements.plist 453*94d3b452SApple OSS Distributionsos_thread_self_restrict: OTHER_LDFLAGS += -sectcreate __TEXT __info_plist os_thread_self_restrict-identifier.plist 454*94d3b452SApple OSS Distributions 455*94d3b452SApple OSS Distributions# Temporarily disabled. See rdar://121952316 456*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += os_thread_self_restrict.c 457*94d3b452SApple OSS Distributions 458*94d3b452SApple OSS Distributionssubsystem_root_path: subsystem_root_path.c subsystem_root_path-entitlements.plist 459*94d3b452SApple OSS Distributionssubsystem_root_path: CODE_SIGN_ENTITLEMENTS=subsystem_root_path-entitlements.plist 460*94d3b452SApple OSS Distributions 461*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += $(wildcard bounded_ptr_src/*.cpp) 462*94d3b452SApple OSS Distributionsbounded_ptr: OTHER_CXXFLAGS += -Werror=implicit-int-conversion -Werror=shorten-64-to-32 -I$(SRCROOT)/../libkern -std=c++17 463*94d3b452SApple OSS Distributionsbounded_ptr: $(wildcard bounded_ptr_src/*.cpp) bounded_ptr.cpp 464*94d3b452SApple OSS Distributions 465*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += bounded_ptr_03.cpp 466*94d3b452SApple OSS Distributionsbounded_ptr_03: OTHER_CXXFLAGS += -Werror=implicit-int-conversion -Werror=shorten-64-to-32 -I$(SRCROOT)/../libkern -std=c++03 $(DT_LDFLAGS) 467*94d3b452SApple OSS Distributionsbounded_ptr_03: bounded_ptr_03.cpp 468*94d3b452SApple OSS Distributions 469*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += $(wildcard bounded_array_src/*.cpp) 470*94d3b452SApple OSS Distributionsbounded_array: OTHER_CXXFLAGS += -Werror=implicit-int-conversion -Werror=shorten-64-to-32 -I$(SRCROOT)/../libkern -std=c++17 471*94d3b452SApple OSS Distributionsbounded_array: $(wildcard bounded_array_src/*.cpp) bounded_array.cpp 472*94d3b452SApple OSS Distributions 473*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += $(wildcard bounded_array_ref_src/*.cpp) 474*94d3b452SApple OSS Distributionsbounded_array_ref: OTHER_CXXFLAGS += -Werror=implicit-int-conversion -Werror=shorten-64-to-32 -I$(SRCROOT)/../libkern -std=c++17 475*94d3b452SApple OSS Distributionsbounded_array_ref: $(wildcard bounded_array_ref_src/*.cpp) bounded_array_ref.cpp 476*94d3b452SApple OSS Distributions 477*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += $(wildcard intrusive_shared_ptr_src/*.cpp) 478*94d3b452SApple OSS Distributionsintrusive_shared_ptr: OTHER_CXXFLAGS += -Werror=implicit-int-conversion -Werror=shorten-64-to-32 -I$(SRCROOT)/../libkern -std=c++17 479*94d3b452SApple OSS Distributionsintrusive_shared_ptr: $(wildcard intrusive_shared_ptr_src/*.cpp) intrusive_shared_ptr.cpp 480*94d3b452SApple OSS Distributions 481*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += $(wildcard safe_allocation_src/*.cpp) 482*94d3b452SApple OSS Distributionssafe_allocation: OTHER_CXXFLAGS += -Werror=implicit-int-conversion -Werror=shorten-64-to-32 -I$(SRCROOT)/../libkern -std=c++17 483*94d3b452SApple OSS Distributionssafe_allocation: $(wildcard safe_allocation_src/*.cpp) safe_allocation.cpp 484*94d3b452SApple OSS Distributions 485*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += osptr_compat.cpp 486*94d3b452SApple OSS Distributionsosptr_98: OTHER_CXXFLAGS += -I$(SRCROOT)/../libkern -std=c++98 -DOSPTR_STD="98" 487*94d3b452SApple OSS Distributionsosptr_98: osptr_compat.cpp 488*94d3b452SApple OSS Distributions $(CXX) $(DT_CXXFLAGS) $(OTHER_CXXFLAGS) $(CXXFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@ 489*94d3b452SApple OSS Distributionsosptr_11: OTHER_CXXFLAGS += -I$(SRCROOT)/../libkern -std=c++11 -DOSPTR_STD="11" 490*94d3b452SApple OSS Distributionsosptr_11: osptr_compat.cpp 491*94d3b452SApple OSS Distributions $(CXX) $(DT_CXXFLAGS) $(OTHER_CXXFLAGS) $(CXXFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@ 492*94d3b452SApple OSS Distributionsosptr_14: OTHER_CXXFLAGS += -I$(SRCROOT)/../libkern -std=c++14 -DOSPTR_STD="14" 493*94d3b452SApple OSS Distributionsosptr_14: osptr_compat.cpp 494*94d3b452SApple OSS Distributions $(CXX) $(DT_CXXFLAGS) $(OTHER_CXXFLAGS) $(CXXFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@ 495*94d3b452SApple OSS Distributionsosptr_17: OTHER_CXXFLAGS += -I$(SRCROOT)/../libkern -std=c++17 -DOSPTR_STD="17" 496*94d3b452SApple OSS Distributionsosptr_17: osptr_compat.cpp 497*94d3b452SApple OSS Distributions $(CXX) $(DT_CXXFLAGS) $(OTHER_CXXFLAGS) $(CXXFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@ 498*94d3b452SApple OSS Distributions 499*94d3b452SApple OSS Distributionspriority_queue: OTHER_CXXFLAGS += -std=c++17 500*94d3b452SApple OSS Distributionsvm/zalloc: OTHER_LDFLAGS += -ldarwintest_utils 501*94d3b452SApple OSS Distributionsvm/zalloc_buddy: OTHER_CFLAGS += -Wno-format-pedantic 502*94d3b452SApple OSS Distributions 503*94d3b452SApple OSS Distributionsos_refcnt: OTHER_CFLAGS += -I$(SRCROOT)/../libkern/ -Wno-gcc-compat -Wno-undef -O3 -flto 504*94d3b452SApple OSS Distributions 505*94d3b452SApple OSS Distributionskernel_inspection: CODE_SIGN_ENTITLEMENTS = ./task_for_pid_entitlement.plist 506*94d3b452SApple OSS Distributionskernel_inspection: OTHER_CFLAGS += -DENTITLED=1 507*94d3b452SApple OSS Distributions 508*94d3b452SApple OSS Distributionsturnstile_multihop: OTHER_CFLAGS += -Wno-unused-macros 509*94d3b452SApple OSS Distributionsturnstile_multihop: OTHER_CFLAGS += -I $(OBJROOT)/ 510*94d3b452SApple OSS Distributions 511*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += perf_exit_proc 512*94d3b452SApple OSS Distributions 513*94d3b452SApple OSS Distributionsperf_exit_proc: 514*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) perf_exit_proc.c -o $(SYMROOT)/perf_exit_proc 515*94d3b452SApple OSS Distributions 516*94d3b452SApple OSS Distributionsinstall-perf_exit_proc: perf_exit_proc 517*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 518*94d3b452SApple OSS Distributions cp $(SYMROOT)/perf_exit_proc $(INSTALLDIR)/ 519*94d3b452SApple OSS Distributions 520*94d3b452SApple OSS Distributions# Stackshot 521*94d3b452SApple OSS Distributions 522*94d3b452SApple OSS Distributions 523*94d3b452SApple OSS Distributionsstackshot_idle_25570396: ./stackshot-entitlements.plist 524*94d3b452SApple OSS Distributionsstackshot_idle_25570396: CODE_SIGN_ENTITLEMENTS=./stackshot-entitlements.plist 525*94d3b452SApple OSS Distributionsstackshot_idle_25570396: OTHER_LDFLAGS += -lkdd -framework Foundation 526*94d3b452SApple OSS Distributionsstackshot_idle_25570396: OTHER_LDFLAGS += -lkdd -framework Foundation 527*94d3b452SApple OSS Distributions 528*94d3b452SApple OSS Distributionsstackshot_block_owner_14362384: ./stackshot-entitlements.plist 529*94d3b452SApple OSS Distributionsstackshot_block_owner_14362384: CODE_SIGN_ENTITLEMENTS=./stackshot-entitlements.plist 530*94d3b452SApple OSS Distributionsstackshot_block_owner_14362384: OTHER_LDFLAGS += -framework Foundation -lpthread -lkdd 531*94d3b452SApple OSS Distributionsifeq ($(PLATFORM),MacOSX) 532*94d3b452SApple OSS Distributionsstackshot_block_owner_14362384: OTHER_LDFLAGS += -lpcre 533*94d3b452SApple OSS Distributionsendif 534*94d3b452SApple OSS Distributions 535*94d3b452SApple OSS Distributionsall: $(DSTROOT)/usr/local/bin/kcdata 536*94d3b452SApple OSS Distributions 537*94d3b452SApple OSS Distributions$(DSTROOT)/usr/local/bin/kcdata: $(SRCROOT)/../tools/lldbmacros/kcdata.py 538*94d3b452SApple OSS Distributions mkdir -p $(dir $@) 539*94d3b452SApple OSS Distributions cp $< $@ 540*94d3b452SApple OSS Distributions chmod a+x $@ 541*94d3b452SApple OSS Distributions 542*94d3b452SApple OSS Distributionsxnu_quick_test: OTHER_CFLAGS += xnu_quick_test_helpers.c 543*94d3b452SApple OSS Distributions 544*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += vm_set_max_addr_helper 545*94d3b452SApple OSS Distributions 546*94d3b452SApple OSS Distributionsvm_set_max_addr_helper: vm_set_max_addr_helper.c 547*94d3b452SApple OSS Distributions $(CC) $(OTHER_CFLAGS) $(CFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) vm_set_max_addr_helper.c -o $(SYMROOT)/vm_set_max_addr_helper; \ 548*94d3b452SApple OSS Distributions echo $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; \ 549*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; 550*94d3b452SApple OSS Distributions 551*94d3b452SApple OSS Distributionsinstall-vm_set_max_addr_helper: vm_set_max_addr_helper 552*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 553*94d3b452SApple OSS Distributions cp $(SYMROOT)/vm_set_max_addr_helper $(INSTALLDIR)/ 554*94d3b452SApple OSS Distributions 555*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += subsystem_root_path_helper_entitled 556*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += subsystem_root_path_helper 557*94d3b452SApple OSS Distributions 558*94d3b452SApple OSS Distributionssubsystem_root_path_helper_entitled: subsystem_root_path_helper.c subsystem_root_path-entitlements.plist 559*94d3b452SApple OSS Distributions $(CC) $(OTHER_CFLAGS) $(CFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) subsystem_root_path_helper.c -o $(SYMROOT)/subsystem_root_path_helper_entitled; \ 560*94d3b452SApple OSS Distributions echo $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; \ 561*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none --entitlements subsystem_root_path-entitlements.plist $(SYMROOT)/$@; 562*94d3b452SApple OSS Distributions 563*94d3b452SApple OSS Distributionsinstall-subsystem_root_path_helper_entitled: subsystem_root_path_helper_entitled 564*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 565*94d3b452SApple OSS Distributions cp $(SYMROOT)/subsystem_root_path_helper_entitled $(INSTALLDIR)/ 566*94d3b452SApple OSS Distributions 567*94d3b452SApple OSS Distributionssubsystem_root_path_helper: subsystem_root_path_helper.c 568*94d3b452SApple OSS Distributions $(CC) $(OTHER_CFLAGS) $(CFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) subsystem_root_path_helper.c -o $(SYMROOT)/subsystem_root_path_helper; \ 569*94d3b452SApple OSS Distributions echo $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; \ 570*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; 571*94d3b452SApple OSS Distributions 572*94d3b452SApple OSS Distributionsinstall-subsystem_root_path_helper: subsystem_root_path_helper 573*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 574*94d3b452SApple OSS Distributions cp $(SYMROOT)/subsystem_root_path_helper $(INSTALLDIR)/ 575*94d3b452SApple OSS Distributions 576*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += vm_test_code_signing_helper 577*94d3b452SApple OSS Distributions 578*94d3b452SApple OSS Distributionsvm_test_code_signing_helper: vm_test_code_signing_helper.c 579*94d3b452SApple OSS Distributions $(CC) $(OTHER_CFLAGS) $(CFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) vm_test_code_signing_helper.c -o $(SYMROOT)/vm_test_code_signing_helper; \ 580*94d3b452SApple OSS Distributions echo $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; \ 581*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; 582*94d3b452SApple OSS Distributions 583*94d3b452SApple OSS Distributionsinstall-vm_test_code_signing_helper: vm_test_code_signing_helper 584*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 585*94d3b452SApple OSS Distributions cp $(SYMROOT)/vm_test_code_signing_helper $(INSTALLDIR)/ 586*94d3b452SApple OSS Distributions 587*94d3b452SApple OSS Distributionsvm_test_code_signing: OTHER_LDFLAGS += -ldarwintest_utils 588*94d3b452SApple OSS Distributions 589*94d3b452SApple OSS DistributionsINCLUDED_TEST_SOURCE_DIRS += vm ipc rm workq 590*94d3b452SApple OSS Distributions 591*94d3b452SApple OSS Distributions# Revert to legacy vm_test suite until <rdar://problem/56675212> gets solved 592*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += vm/vm_allocation.c 593*94d3b452SApple OSS Distributions 594*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += jumbo_va_spaces_common.c 595*94d3b452SApple OSS Distributions 596*94d3b452SApple OSS Distributionsifeq ($(IOS_TEST_COMPAT),YES) 597*94d3b452SApple OSS DistributionsOTHER_TEST_TARGETS += jumbo_va_spaces_28530648_unentitled jumbo_va_spaces_52551256 vm_phys_footprint_legacy vm/entitlement_increased_memory_limit vm/entitlement_increased_memory_limit_unentitled vm/ios13extended_footprint vm/memorystatus_freeze_test vm/memorystatus_freeze_test_entitled vm/entitlement_internal_bands vm/entitlement_internal_bands_unentitled 598*94d3b452SApple OSS Distributions 599*94d3b452SApple OSS Distributionsjumbo_va_spaces_28530648: CODE_SIGN_ENTITLEMENTS = jumbo_va_spaces_28530648.entitlements 600*94d3b452SApple OSS Distributionsjumbo_va_spaces_28530648: OTHER_CFLAGS += -DENTITLED=1 -DTESTNAME=jumbo_va_spaces_28530648 601*94d3b452SApple OSS Distributionsjumbo_va_spaces_28530648: jumbo_va_spaces_common.c 602*94d3b452SApple OSS Distributionsjumbo_va_spaces_28530648: OTHER_LDFLAGS += -ldarwintest_utils 603*94d3b452SApple OSS Distributionsjumbo_va_spaces_28530648: OTHER_LDFLAGS += -sectcreate __TEXT __info_plist jumbo_va_spaces_28530648-identifier.plist 604*94d3b452SApple OSS Distributions 605*94d3b452SApple OSS Distributionsjumbo_va_spaces_52551256: CODE_SIGN_ENTITLEMENTS = jumbo_va_spaces_52551256.entitlements 606*94d3b452SApple OSS Distributionsjumbo_va_spaces_52551256: OTHER_CFLAGS += -DENTITLED=1 -DTESTNAME=jumbo_va_spaces_52551256 607*94d3b452SApple OSS Distributionsjumbo_va_spaces_52551256: OTHER_LDFLAGS += -ldarwintest_utils 608*94d3b452SApple OSS Distributionsjumbo_va_spaces_52551256: jumbo_va_spaces_28530648.c jumbo_va_spaces_common.c 609*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $^ -o $(SYMROOT)/$@ 610*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none --entitlements $(CODE_SIGN_ENTITLEMENTS) $(SYMROOT)/$@; 611*94d3b452SApple OSS Distributions 612*94d3b452SApple OSS Distributionsjumbo_va_spaces_28530648_unentitled: OTHER_LDFLAGS += -ldarwintest_utils 613*94d3b452SApple OSS Distributionsjumbo_va_spaces_28530648_unentitled: OTHER_CFLAGS += -DTESTNAME=jumbo_va_spaces_28530648_unentitled 614*94d3b452SApple OSS Distributions 615*94d3b452SApple OSS Distributionsjumbo_va_spaces_28530648_unentitled: jumbo_va_spaces_28530648.c jumbo_va_spaces_common.c 616*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $^ -o $(SYMROOT)/$@ 617*94d3b452SApple OSS Distributions 618*94d3b452SApple OSS Distributionsvm/entitlement_increased_memory_limit: CODE_SIGN_ENTITLEMENTS = vm/entitlement_increased_memory_limit.entitlements 619*94d3b452SApple OSS Distributionsvm/entitlement_increased_memory_limit: OTHER_CFLAGS += -DENTITLED=1 jumbo_va_spaces_common.c 620*94d3b452SApple OSS Distributionsvm/entitlement_increased_memory_limit: OTHER_LDFLAGS += -ldarwintest_utils memorystatus_assertion_helpers.c 621*94d3b452SApple OSS Distributionsvm/entitlement_increased_memory_limit: vm/entitlement_increased_memory_limit.c 622*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $^ -o $(SYMROOT)/$@ 623*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none --entitlements $(CODE_SIGN_ENTITLEMENTS) $(SYMROOT)/$@; 624*94d3b452SApple OSS Distributions 625*94d3b452SApple OSS Distributionsvm/entitlement_increased_memory_limit_unentitled: OTHER_LDFLAGS += -ldarwintest_utils memorystatus_assertion_helpers.c 626*94d3b452SApple OSS Distributionsvm/entitlement_increased_memory_limit_unentitled: vm/entitlement_increased_memory_limit.c jumbo_va_spaces_common.c 627*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $^ -o $(SYMROOT)/$@ 628*94d3b452SApple OSS Distributions 629*94d3b452SApple OSS Distributionsvm/entitlement_internal_bands: CODE_SIGN_ENTITLEMENTS = vm/entitlement_internal_bands.entitlements 630*94d3b452SApple OSS Distributionsvm/entitlement_internal_bands: OTHER_CFLAGS += -DENTITLED=1 631*94d3b452SApple OSS Distributionsvm/entitlement_internal_bands: OTHER_LDFLAGS += -ldarwintest_utils 632*94d3b452SApple OSS Distributionsvm/entitlement_internal_bands: vm/entitlement_internal_bands.c memorystatus_assertion_helpers.c 633*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $^ -o $(SYMROOT)/$@ 634*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none --entitlements $(CODE_SIGN_ENTITLEMENTS) $(SYMROOT)/$@; 635*94d3b452SApple OSS Distributions 636*94d3b452SApple OSS Distributionsvm/entitlement_internal_bands_unentitled: OTHER_LDFLAGS += -ldarwintest_utils 637*94d3b452SApple OSS Distributionsvm/entitlement_internal_bands_unentitled: vm/entitlement_internal_bands.c memorystatus_assertion_helpers.c 638*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $^ -o $(SYMROOT)/$@ 639*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; 640*94d3b452SApple OSS Distributions 641*94d3b452SApple OSS Distributionsvm/ios13extended_footprint: CODE_SIGN_ENTITLEMENTS = vm/ios13extended_footprint.entitlements 642*94d3b452SApple OSS Distributionsvm/ios13extended_footprint: vm/ios13extended_footprint.c 643*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@ 644*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none --entitlements $(CODE_SIGN_ENTITLEMENTS) $(SYMROOT)/$@; 645*94d3b452SApple OSS Distributions 646*94d3b452SApple OSS Distributionsvm_phys_footprint_legacy: OTHER_LDFLAGS += -framework CoreFoundation -framework IOSurface 647*94d3b452SApple OSS Distributionsvm_phys_footprint_legacy: OTHER_CFLAGS += -DLEGACY_FOOTPRINT_ENTITLED=1 648*94d3b452SApple OSS Distributionsvm_phys_footprint_legacy: CODE_SIGN_ENTITLEMENTS=./legacy_footprint.entitlement 649*94d3b452SApple OSS Distributionsvm_phys_footprint_legacy: vm_phys_footprint.c 650*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@ 651*94d3b452SApple OSS Distributions 652*94d3b452SApple OSS Distributionsendif 653*94d3b452SApple OSS Distributions 654*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += vm/hello 655*94d3b452SApple OSS Distributions 656*94d3b452SApple OSS Distributionsvm/hello: vm/hello.c 657*94d3b452SApple OSS Distributions $(CC) $(LDFLAGS) $(CFLAGS) $< -o $(SYMROOT)/$@ 658*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; 659*94d3b452SApple OSS Distributions 660*94d3b452SApple OSS Distributions.PHONY: install-vm/hello 661*94d3b452SApple OSS Distributionsinstall-vm/hello: vm/hello 662*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/vm 663*94d3b452SApple OSS Distributions cp $(SYMROOT)/vm/hello $(INSTALLDIR)/vm/ 664*94d3b452SApple OSS Distributions 665*94d3b452SApple OSS Distributionsvm/vm_tainted_executable: vm/hello 666*94d3b452SApple OSS Distributions 667*94d3b452SApple OSS Distributionstask_info_28439149: CODE_SIGN_ENTITLEMENTS = ./task_for_pid_entitlement.plist 668*94d3b452SApple OSS Distributions 669*94d3b452SApple OSS Distributionsipc_read_inspect: CODE_SIGN_ENTITLEMENTS = ./task_for_pid_entitlement.plist 670*94d3b452SApple OSS Distributions 671*94d3b452SApple OSS Distributionsipc_thread_ports_race: CODE_SIGN_ENTITLEMENTS = ./task_for_pid_entitlement.plist 672*94d3b452SApple OSS Distributionsipc_thread_ports_race: OTHER_LDFLAGS += -ldarwintest_utils 673*94d3b452SApple OSS Distributions 674*94d3b452SApple OSS Distributionsproc_info: recount/recount_test_utils.c 675*94d3b452SApple OSS Distributionsproc_info: CODE_SIGN_ENTITLEMENTS = ./task_for_pid_entitlement.plist 676*94d3b452SApple OSS Distributionsproc_info: OTHER_LDFLAGS += -ldarwintest_utils 677*94d3b452SApple OSS Distributions 678*94d3b452SApple OSS Distributionsproc_info_list_kthreads: CODE_SIGN_ENTITLEMENTS = ./proc_info_list_kthreads.entitlements 679*94d3b452SApple OSS Distributions 680*94d3b452SApple OSS Distributionsproc_info_44873309: CODE_SIGN_ENTITLEMENTS = ./proc_info_44873309.entitlements 681*94d3b452SApple OSS Distributions 682*94d3b452SApple OSS Distributionsdisk_mount_conditioner: disk_mount_conditioner* 683*94d3b452SApple OSS Distributionsdisk_mount_conditioner: CODE_SIGN_ENTITLEMENTS=./disk_mount_conditioner-entitlements.plist 684*94d3b452SApple OSS Distributionsdisk_mount_conditioner: OTHER_LDFLAGS += -ldarwintest_utils 685*94d3b452SApple OSS Distributions 686*94d3b452SApple OSS Distributionsdisk_mount_conditioner: OTHER_TEST_TARGETS += disk_mount_conditioner_unentitled 687*94d3b452SApple OSS Distributionsdisk_mount_conditioner_unentitled: OTHER_CFLAGS += -DTEST_UNENTITLED 688*94d3b452SApple OSS Distributionsdisk_mount_conditioner_unentitled: OTHER_LDFLAGS += -ldarwintest_utils 689*94d3b452SApple OSS Distributionsdisk_mount_conditioner_unentitled: disk_mount_conditioner.c 690*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@ 691*94d3b452SApple OSS Distributions 692*94d3b452SApple OSS Distributionswork_interval_test: CODE_SIGN_ENTITLEMENTS = work_interval_test.entitlements 693*94d3b452SApple OSS Distributionswork_interval_test: OTHER_CFLAGS += -DENTITLED=1 694*94d3b452SApple OSS Distributions 695*94d3b452SApple OSS Distributionswork_interval_data_test: CODE_SIGN_ENTITLEMENTS = work_interval_test.entitlements 696*94d3b452SApple OSS Distributionswork_interval_data_test: OTHER_CFLAGS += -DENTITLED=1 697*94d3b452SApple OSS Distributionswork_interval_data_test: OTHER_LDFLAGS += -lpthread 698*94d3b452SApple OSS Distributions 699*94d3b452SApple OSS Distributionsgame_mode: CODE_SIGN_ENTITLEMENTS = game_mode.entitlements 700*94d3b452SApple OSS Distributions 701*94d3b452SApple OSS Distributionssettimeofday_29193041: OTHER_CFLAGS += drop_priv.c 702*94d3b452SApple OSS Distributions 703*94d3b452SApple OSS Distributionssettimeofday_29193041_entitled: CODE_SIGN_ENTITLEMENTS = settimeofday_29193041.entitlements 704*94d3b452SApple OSS Distributionssettimeofday_29193041_entitled: OTHER_CFLAGS += drop_priv.c 705*94d3b452SApple OSS Distributions 706*94d3b452SApple OSS Distributionsthread_group_set_32261625: ./stackshot-entitlements.plist 707*94d3b452SApple OSS Distributionsthread_group_set_32261625: CODE_SIGN_ENTITLEMENTS=./stackshot-entitlements.plist 708*94d3b452SApple OSS Distributionsthread_group_set_32261625: OTHER_LDFLAGS = -framework ktrace 709*94d3b452SApple OSS Distributions 710*94d3b452SApple OSS Distributionstask_info: CODE_SIGN_ENTITLEMENTS = task_for_pid_entitlement.plist 711*94d3b452SApple OSS Distributionstask_info: OTHER_CFLAGS += test_utils.c 712*94d3b452SApple OSS Distributionstask_info: OTHER_LDFLAGS += -ldarwintest_utils 713*94d3b452SApple OSS Distributions 714*94d3b452SApple OSS Distributionsextract_right_soft_fail: CODE_SIGN_ENTITLEMENTS = task_for_pid_entitlement.plist 715*94d3b452SApple OSS Distributions 716*94d3b452SApple OSS Distributionsifneq ($(IOS_TEST_COMPAT),YES) 717*94d3b452SApple OSS Distributions EXCLUDED_SOURCES += task_vm_info_decompressions.c 718*94d3b452SApple OSS Distributionsendif 719*94d3b452SApple OSS Distributions 720*94d3b452SApple OSS Distributionsifneq ($(PLATFORM),iPhoneOS) 721*94d3b452SApple OSS Distributions EXCLUDED_SOURCES += vm/compression_sweep.c 722*94d3b452SApple OSS Distributionsendif 723*94d3b452SApple OSS Distributions 724*94d3b452SApple OSS Distributionsbpf_write: bpflib.c in_cksum.c net_test_lib.c 725*94d3b452SApple OSS Distributionsbpf_write: OTHER_LDFLAGS += -ldarwintest_utils 726*94d3b452SApple OSS Distributions 727*94d3b452SApple OSS Distributionsbpf_write_batch: bpflib.c in_cksum.c net_test_lib.c 728*94d3b452SApple OSS Distributionsbpf_write_batch: OTHER_LDFLAGS += -ldarwintest_utils 729*94d3b452SApple OSS Distributions 730*94d3b452SApple OSS Distributionsudp_bind_connect: CODE_SIGN_ENTITLEMENTS = network_entitlements.plist 731*94d3b452SApple OSS Distributionstcp_bind_connect: CODE_SIGN_ENTITLEMENTS = network_entitlements.plist 732*94d3b452SApple OSS Distributionstcp_send_implied_connect: CODE_SIGN_ENTITLEMENTS = network_entitlements.plist 733*94d3b452SApple OSS Distributionssocket_bind_35243417: CODE_SIGN_ENTITLEMENTS = network_entitlements.plist 734*94d3b452SApple OSS Distributionssocket_bind_35685803: CODE_SIGN_ENTITLEMENTS = network_entitlements.plist 735*94d3b452SApple OSS Distributionsicmp_fragmetned_payload: CODE_SIGN_ENTITLEMENTS = network_entitlements.plist 736*94d3b452SApple OSS Distributions 737*94d3b452SApple OSS Distributionsnet_tuntests: CODE_SIGN_ENTITLEMENTS = network_entitlements.plist 738*94d3b452SApple OSS Distributions 739*94d3b452SApple OSS Distributionsnet_bridge: inet_transfer.c bpflib.c in_cksum.c net_test_lib.c 740*94d3b452SApple OSS Distributionsnet_bridge: OTHER_LDFLAGS += -ldarwintest_utils 741*94d3b452SApple OSS Distributionsnet_bridge: CODE_SIGN_ENTITLEMENTS = network_entitlements.plist 742*94d3b452SApple OSS Distributions 743*94d3b452SApple OSS Distributionsif_generation_id: net_test_lib.c in_cksum.c 744*94d3b452SApple OSS Distributionsif_generation_id: OTHER_LDFLAGS += -ldarwintest_utils 745*94d3b452SApple OSS Distributions 746*94d3b452SApple OSS Distributionsinet6_addr_mode: net_test_lib.c in_cksum.c 747*94d3b452SApple OSS Distributionsinet6_addr_mode: OTHER_LDFLAGS += -ldarwintest_utils 748*94d3b452SApple OSS Distributions 749*94d3b452SApple OSS Distributionsbpf_direction: bpflib.c 750*94d3b452SApple OSS Distributionsbpf_direction: OTHER_LDFLAGS += -ldarwintest_utils 751*94d3b452SApple OSS Distributionsbpf_direction: CODE_SIGN_ENTITLEMENTS = network_entitlements.plist 752*94d3b452SApple OSS Distributions 753*94d3b452SApple OSS Distributionsipv6_bind_race: CODE_SIGN_ENTITLEMENTS = network_entitlements.plist 754*94d3b452SApple OSS Distributions 755*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += posix_spawn_archpref_helper 756*94d3b452SApple OSS Distributions 757*94d3b452SApple OSS Distributionsposix_spawn_archpref_helper: posix_spawn_archpref_helper.c 758*94d3b452SApple OSS Distributions $(CC) $(LDFLAGS) $(CFLAGS) posix_spawn_archpref_helper.c -o $(SYMROOT)/$@; 759*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; 760*94d3b452SApple OSS Distributions 761*94d3b452SApple OSS Distributionsinstall-posix_spawn_archpref_helper: posix_spawn_archpref_helper 762*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 763*94d3b452SApple OSS Distributions cp $(SYMROOT)/posix_spawn_archpref_helper $(INSTALLDIR)/ 764*94d3b452SApple OSS Distributions 765*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += posix_spawn_alt_rosetta_helper 766*94d3b452SApple OSS Distributions 767*94d3b452SApple OSS Distributionsposix_spawn_alt_rosetta_helper: posix_spawn_alt_rosetta_helper.c 768*94d3b452SApple OSS Distributions $(CC) $(LDFLAGS) $(CFLAGS) posix_spawn_alt_rosetta_helper.c -o $(SYMROOT)/$@; 769*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; 770*94d3b452SApple OSS Distributions 771*94d3b452SApple OSS Distributionsinstall-posix_spawn_alt_rosetta_helper: posix_spawn_alt_rosetta_helper 772*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 773*94d3b452SApple OSS Distributions cp $(SYMROOT)/posix_spawn_alt_rosetta_helper $(INSTALLDIR)/ 774*94d3b452SApple OSS Distributions 775*94d3b452SApple OSS DistributionsMIG:=SDKROOT=$(SDKROOT) $(shell xcrun -sdk "$(TARGETSDK)" -find mig) 776*94d3b452SApple OSS Distributions 777*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += excserver 778*94d3b452SApple OSS Distributions 779*94d3b452SApple OSS Distributionsexcserver: 780*94d3b452SApple OSS Distributions $(MIG) $(CFLAGS) \ 781*94d3b452SApple OSS Distributions -sheader $(OBJROOT)/excserver.h \ 782*94d3b452SApple OSS Distributions -server $(OBJROOT)/excserver.c \ 783*94d3b452SApple OSS Distributions -header /dev/null -user /dev/null \ 784*94d3b452SApple OSS Distributions excserver.defs 785*94d3b452SApple OSS Distributionsinstall-excserver: ; 786*94d3b452SApple OSS Distributions 787*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += excserver_protect 788*94d3b452SApple OSS Distributions 789*94d3b452SApple OSS Distributionsexcserver_protect: 790*94d3b452SApple OSS Distributions $(MIG) $(CFLAGS) \ 791*94d3b452SApple OSS Distributions -DMACH_EXC_SERVER_TASKIDTOKEN \ 792*94d3b452SApple OSS Distributions -sheader $(OBJROOT)/excserver_protect.h \ 793*94d3b452SApple OSS Distributions -server $(OBJROOT)/excserver_protect.c \ 794*94d3b452SApple OSS Distributions -header /dev/null -user /dev/null \ 795*94d3b452SApple OSS Distributions excserver_protect.defs 796*94d3b452SApple OSS Distributionsinstall-excserver_protect: ; 797*94d3b452SApple OSS Distributions 798*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += exc_helpers.c 799*94d3b452SApple OSS Distributions 800*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += notifyserver 801*94d3b452SApple OSS Distributions 802*94d3b452SApple OSS Distributionsnotifyserver: 803*94d3b452SApple OSS Distributions $(MIG) $(CFLAGS) \ 804*94d3b452SApple OSS Distributions -DMACH_NOTIFY_SERVICE_PORT_DESTROYED_EXPECTED \ 805*94d3b452SApple OSS Distributions -user /dev/null \ 806*94d3b452SApple OSS Distributions -header $(OBJROOT)/notify.h \ 807*94d3b452SApple OSS Distributions -sheader $(OBJROOT)/notifyServer.h \ 808*94d3b452SApple OSS Distributions -server $(OBJROOT)/notifyServer.c \ 809*94d3b452SApple OSS Distributions notifyserver.defs 810*94d3b452SApple OSS Distributionsinstall-notifyserver: ; 811*94d3b452SApple OSS Distributions 812*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += rnserver 813*94d3b452SApple OSS Distributions 814*94d3b452SApple OSS Distributionsrnserver: 815*94d3b452SApple OSS Distributions $(MIG) $(CFLAGS) \ 816*94d3b452SApple OSS Distributions -user /dev/null \ 817*94d3b452SApple OSS Distributions -header $(OBJROOT)/rn.h \ 818*94d3b452SApple OSS Distributions -sheader $(OBJROOT)/rnServer.h \ 819*94d3b452SApple OSS Distributions -server $(OBJROOT)/rnServer.c \ 820*94d3b452SApple OSS Distributions rnserver.defs 821*94d3b452SApple OSS Distributionsinstall-rnserver: ; 822*94d3b452SApple OSS Distributions 823*94d3b452SApple OSS Distributions 824*94d3b452SApple OSS Distributionsx18_entitled: OTHER_CFLAGS += -Wno-language-extension-token 825*94d3b452SApple OSS Distributionsx18_entitled: CODE_SIGN_ENTITLEMENTS = x18-entitlements.plist 826*94d3b452SApple OSS Distributionsx18_unentitled: OTHER_CFLAGS += -Wno-language-extension-token 827*94d3b452SApple OSS Distributionsifneq ($(PLATFORM),MacOSX) 828*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += x18_legacy.c 829*94d3b452SApple OSS Distributionselse 830*94d3b452SApple OSS Distributionsx18_legacy: OTHER_CFLAGS += -Wno-language-extension-token -Wl,-platform_version -Wl,macos -Wl,10.12 -Wl,10.12 831*94d3b452SApple OSS Distributionsendif 832*94d3b452SApple OSS Distributions 833*94d3b452SApple OSS Distributionspmap_bench: INVALID_ARCHS = $(filter-out arm%,$(ARCH_CONFIGS)) 834*94d3b452SApple OSS Distributions 835*94d3b452SApple OSS Distributionspmap_stress: INVALID_ARCHS = $(filter-out arm%,$(ARCH_CONFIGS)) 836*94d3b452SApple OSS Distributions 837*94d3b452SApple OSS Distributionshw_breakpoint_step_arm64: CODE_SIGN_ENTITLEMENTS = hw_breakpoint_step_arm64_entitlements.plist 838*94d3b452SApple OSS Distributionshw_breakpoint_step_arm64: INVALID_ARCHS = $(filter-out arm64%,$(ARCH_CONFIGS)) 839*94d3b452SApple OSS Distributionshw_breakpoint_step_arm64: excserver 840*94d3b452SApple OSS Distributionshw_breakpoint_step_arm64: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 841*94d3b452SApple OSS Distributions 842*94d3b452SApple OSS Distributionsexc_resource_threads: excserver 843*94d3b452SApple OSS Distributionsexc_resource_threads: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 844*94d3b452SApple OSS Distributionsexc_resource_threads: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 845*94d3b452SApple OSS Distributions 846*94d3b452SApple OSS Distributionsmach_service_port: notifyserver 847*94d3b452SApple OSS Distributionsmach_service_port: OTHER_CFLAGS += $(OBJROOT)/notifyServer.c -I $(OBJROOT) 848*94d3b452SApple OSS Distributions 849*94d3b452SApple OSS Distributionsfp_exception: excserver exc_helpers.c 850*94d3b452SApple OSS Distributionsfp_exception: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 851*94d3b452SApple OSS Distributionsfp_exception: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 852*94d3b452SApple OSS Distributions 853*94d3b452SApple OSS Distributionsptrauth_failure: excserver exc_helpers.c 854*94d3b452SApple OSS Distributionsptrauth_failure: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) -Wno-language-extension-token 855*94d3b452SApple OSS Distributionsptrauth_failure: CODESIGN = $(CODESIGN_HARDENED_RUNTIME) 856*94d3b452SApple OSS Distributionsptrauth_failure: CODE_SIGN_ENTITLEMENTS = set_state_and_exception_port.entitlement 857*94d3b452SApple OSS Distributions 858*94d3b452SApple OSS Distributionsdecompression_failure: excserver exc_helpers.c 859*94d3b452SApple OSS Distributionsdecompression_failure: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 860*94d3b452SApple OSS Distributionsdecompression_failure: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 861*94d3b452SApple OSS Distributions 862*94d3b452SApple OSS Distributionsipc/kernel_signed_pac_thread_state: excserver 863*94d3b452SApple OSS Distributionsipc/kernel_signed_pac_thread_state: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 864*94d3b452SApple OSS Distributionsipc/kernel_signed_pac_thread_state: CODE_SIGN_ENTITLEMENTS = pac_exception_entitlement.plist 865*94d3b452SApple OSS Distributions 866*94d3b452SApple OSS Distributionsifeq ($(findstring arm64e,$(ARCH_CONFIGS)),) 867*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += pac_exception_entitlement.c 868*94d3b452SApple OSS Distributionselse 869*94d3b452SApple OSS Distributionspac_exception_entitlement: excserver exc_helpers.c 870*94d3b452SApple OSS Distributionspac_exception_entitlement: OTHER_CFLAGS += $(OBJROOT)/excserver.c -Wno-language-extension-token 871*94d3b452SApple OSS Distributionspac_exception_entitlement: CODE_SIGN_ENTITLEMENTS = pac_exception_entitlement.plist 872*94d3b452SApple OSS Distributionsendif 873*94d3b452SApple OSS Distributions 874*94d3b452SApple OSS Distributionsifeq ($(findstring arm64,$(ARCH_CONFIGS)),) 875*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += arm_cpu_capabilities.c 876*94d3b452SApple OSS Distributionselse 877*94d3b452SApple OSS Distributionsarm_cpu_capabilities: INVALID_ARCHS = armv7k x86_64 x86_64h 878*94d3b452SApple OSS Distributionsarm_cpu_capabilities: excserver exc_helpers.c 879*94d3b452SApple OSS Distributionsarm_cpu_capabilities: OTHER_CFLAGS += $(OBJROOT)/excserver.c -Wno-language-extension-token -mcpu=apple-a15 880*94d3b452SApple OSS Distributionsarm_cpu_capabilities: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 881*94d3b452SApple OSS Distributionsendif 882*94d3b452SApple OSS Distributions 883*94d3b452SApple OSS Distributions# Disabling building of ldt files as dt_extractmeta crashes 884*94d3b452SApple OSS Distributions# in build systems. Ref rdar://110251082 885*94d3b452SApple OSS Distributions# Leaving commented bits for future re-enablement 886*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += ldt_code32.s ldt.c 887*94d3b452SApple OSS Distributions 888*94d3b452SApple OSS Distributions#\ifeq ($(findstring x86_64,$(ARCH_CONFIGS)),) 889*94d3b452SApple OSS Distributions#EXCLUDED_SOURCES += ldt_code32.s ldt.c 890*94d3b452SApple OSS Distributions#\else # target = osx 891*94d3b452SApple OSS Distributions#$(OBJROOT)/ldt_mach_exc_server.c: 892*94d3b452SApple OSS Distributions# $(MIG) $(CFLAGS) \ 893*94d3b452SApple OSS Distributions# -user /dev/null \ 894*94d3b452SApple OSS Distributions# -server $(OBJROOT)/ldt_mach_exc_server.c \ 895*94d3b452SApple OSS Distributions# -header $(OBJROOT)/ldt_mach_exc.h \ 896*94d3b452SApple OSS Distributions# mach_exc.defs 897*94d3b452SApple OSS Distributions# 898*94d3b452SApple OSS Distributions#ldt: INVALID_ARCHS = $(ARCH_CONFIGS) 899*94d3b452SApple OSS Distributions#ldt: $(OBJROOT)/ldt_mach_exc_server.c 900*94d3b452SApple OSS Distributions#ldt: OTHER_CFLAGS += -arch x86_64 -I $(OBJROOT) $(SRCROOT)/ldt_code32.s -Wl,-pagezero_size,0x1000 -Wno-missing-variable-declarations 901*94d3b452SApple OSS Distributions#ldt: CODE_SIGN_ENTITLEMENTS=ldt_entitlement.plist 902*94d3b452SApple OSS Distributions#\endif 903*94d3b452SApple OSS Distributions 904*94d3b452SApple OSS Distributionsifneq ($(PLATFORM),BridgeOS) 905*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += remote_time.c 906*94d3b452SApple OSS Distributionselse 907*94d3b452SApple OSS Distributionsremote_time: INVALID_ARCHS = armv7 armv7s arm64_32 908*94d3b452SApple OSS Distributionsendif 909*94d3b452SApple OSS Distributions 910*94d3b452SApple OSS Distributionsvm_phys_footprint: OTHER_LDFLAGS += -framework CoreFoundation -framework IOSurface 911*94d3b452SApple OSS Distributions 912*94d3b452SApple OSS Distributionsvm_kern_count_wired_kernelcache: OTHER_CFLAGS += -I$(SDKROOT)/System/Library/Frameworks/Kernel.framework/PrivateHeaders/mach 913*94d3b452SApple OSS Distributions 914*94d3b452SApple OSS Distributionsdebug_control_port_for_pid: CODE_SIGN_ENTITLEMENTS = ./debug_control_port_for_pid_entitlement.plist 915*94d3b452SApple OSS Distributions 916*94d3b452SApple OSS Distributionsprng: OTHER_LDFLAGS += -ldarwintest_utils 917*94d3b452SApple OSS Distributions 918*94d3b452SApple OSS Distributionspreoslog: OTHER_LDFLAGS += -ldarwintest_utils 919*94d3b452SApple OSS Distributionspreoslog: OTHER_CFLAGS += test_utils.c 920*94d3b452SApple OSS Distributions 921*94d3b452SApple OSS Distributionstask_policy: CODE_SIGN_ENTITLEMENTS = ./task_policy_entitlement.plist 922*94d3b452SApple OSS Distributions 923*94d3b452SApple OSS DistributionsOTHER_TEST_TARGETS += task_policy_unentitled 924*94d3b452SApple OSS Distributionstask_policy_unentitled: CODE_SIGN_ENTITLEMENTS = task_for_pid_entitlement.plist 925*94d3b452SApple OSS Distributionstask_policy_unentitled: OTHER_CFLAGS += -DUNENTITLED 926*94d3b452SApple OSS Distributionstask_policy_unentitled: task_policy.c 927*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@ 928*94d3b452SApple OSS Distributions $(CODESIGN) --force --sign - --timestamp=none --entitlements $(CODE_SIGN_ENTITLEMENTS) $(SYMROOT)/$@ 929*94d3b452SApple OSS Distributions 930*94d3b452SApple OSS Distributions 931*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += get_shared_cache_address.c 932*94d3b452SApple OSS Distributions 933*94d3b452SApple OSS Distributions 934*94d3b452SApple OSS Distributionsifneq ($(filter iPhoneOS MacOSX, $(PLATFORM)),) 935*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += get_shared_cache_address 936*94d3b452SApple OSS Distributions 937*94d3b452SApple OSS Distributionsget_shared_cache_address: INVALID_ARCHS = arm64 i386 x86_64 938*94d3b452SApple OSS Distributionsget_shared_cache_address: get_shared_cache_address.c 939*94d3b452SApple OSS Distributions $(CC) $(OTHER_CFLAGS) $(CFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/get_shared_cache_address 940*94d3b452SApple OSS Distributions 941*94d3b452SApple OSS Distributionsinstall-get_shared_cache_address: get_shared_cache_address 942*94d3b452SApple OSS Distributions $(CODESIGN) --force --sign - --timestamp=none --identifier=com.apple.get_shared_cache_address $(SYMROOT)/get_shared_cache_address 943*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 944*94d3b452SApple OSS Distributions cp $(SYMROOT)/get_shared_cache_address $(INSTALLDIR)/ 945*94d3b452SApple OSS Distributionsendif 946*94d3b452SApple OSS Distributions 947*94d3b452SApple OSS Distributions 948*94d3b452SApple OSS DistributionsOTHER_TEST_TARGETS += vm_memory_share_tests 949*94d3b452SApple OSS Distributions 950*94d3b452SApple OSS Distributionsvm_memory_share_tests: INVALID_ARCHS = i386 951*94d3b452SApple OSS Distributionsvm_memory_share_tests: CODE_SIGN_ENTITLEMENTS = ./task_for_pid_entitlement.plist 952*94d3b452SApple OSS Distributionsvm_memory_share_tests: vm_memory_tests_src/main.c vm_memory_tests_src/common.c vm_memory_tests_src/vm_tests.c 953*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $^ -o $(SYMROOT)/$@ 954*94d3b452SApple OSS Distributions echo $(CODESIGN) --force --sign - --timestamp=none --entitlements $(SRCROOT)/$(CODE_SIGN_ENTITLEMENTS) $(SYMROOT)/$@; 955*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none --entitlements "$(SRCROOT)/$(CODE_SIGN_ENTITLEMENTS)" $(SYMROOT)/$@; 956*94d3b452SApple OSS Distributions 957*94d3b452SApple OSS Distributions# build the mach server as individual helper which does not use libdarwintest 958*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += vm_memory_share_tests_server 959*94d3b452SApple OSS Distributionsvm_memory_share_tests_server: CODE_SIGN_ENTITLEMENTS = ./task_for_pid_entitlement.plist 960*94d3b452SApple OSS Distributionsvm_memory_share_tests_server: vm_memory_tests_src/server.c vm_memory_tests_src/common.c vm_memory_tests_src/vm_tests.c 961*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $^ -o $(SYMROOT)/vm_memory_share_tests_server 962*94d3b452SApple OSS Distributions echo $(CODESIGN) --force --sign - --timestamp=none --entitlements $(SRCROOT)/$(CODE_SIGN_ENTITLEMENTS) $(SYMROOT)/$@; 963*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none --entitlements "$(SRCROOT)/$(CODE_SIGN_ENTITLEMENTS)" $(SYMROOT)/$@; 964*94d3b452SApple OSS Distributions 965*94d3b452SApple OSS Distributionsinstall-vm_memory_share_tests_server: vm_memory_share_tests_server 966*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 967*94d3b452SApple OSS Distributions cp $(SYMROOT)/vm_memory_share_tests_server $(INSTALLDIR)/ 968*94d3b452SApple OSS Distributions 969*94d3b452SApple OSS Distributionsifeq ($(PLATFORM),MacOSX) 970*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += vm/kern_max_task_pmem.c 971*94d3b452SApple OSS Distributionsendif 972*94d3b452SApple OSS Distributions 973*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += benchmark/helpers.c 974*94d3b452SApple OSS Distributions 975*94d3b452SApple OSS Distributionsperf_vmfault: OTHER_CFLAGS += benchmark/helpers.c 976*94d3b452SApple OSS Distributions 977*94d3b452SApple OSS DistributionsBATS_PLISTS += $(SRCROOT)/vm/fault_throughput.plist 978*94d3b452SApple OSS Distributions 979*94d3b452SApple OSS Distributionsvm/fault_throughput: OTHER_CFLAGS += benchmark/helpers.c 980*94d3b452SApple OSS Distributions 981*94d3b452SApple OSS Distributions.PHONY: install-vm/fault_throughput 982*94d3b452SApple OSS Distributionsinstall-vm/fault_throughput: vm/fault_throughput 983*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/vm 984*94d3b452SApple OSS Distributions cp $(SYMROOT)/vm/fault_throughput $(INSTALLDIR)/vm/ 985*94d3b452SApple OSS Distributions 986*94d3b452SApple OSS Distributions$(SYMROOT)/vm/fault_throughput.lua: $(SRCROOT)/vm/fault_throughput.lua 987*94d3b452SApple OSS Distributions mkdir -p $(SYMROOT)/vm 988*94d3b452SApple OSS Distributions cp $< $@ 989*94d3b452SApple OSS Distributions chmod +x $@ 990*94d3b452SApple OSS Distributions 991*94d3b452SApple OSS Distributions.PHONY: install-fault_throughput_benchrun 992*94d3b452SApple OSS Distributionsinstall-$(SYMROOT)/vm/fault_throughput.lua: $(SYMROOT)/vm/fault_throughput.lua 993*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/vm 994*94d3b452SApple OSS Distributions cp $(SYMROOT)/vm/fault_throughput.lua $(INSTALLDIR)/vm/ 995*94d3b452SApple OSS Distributions chmod +x $(INSTALLDIR)/vm/fault_throughput.lua 996*94d3b452SApple OSS Distributions 997*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += vm/fault_throughput.plist 998*94d3b452SApple OSS Distributions 999*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += $(SYMROOT)/vm/fault_throughput.lua vm/fault_throughput 1000*94d3b452SApple OSS Distributions 1001*94d3b452SApple OSS Distributionsifeq ($(PLATFORM),MacOSX) 1002*94d3b452SApple OSS Distributionsmixed_pagesize: vm/mixed_pagesize.c 1003*94d3b452SApple OSS Distributions mkdir -p $(SYMROOT)/vm 1004*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/vm/$@ 1005*94d3b452SApple OSS Distributions 1006*94d3b452SApple OSS Distributionsinstall-mixed_pagesize: mixed_pagesize 1007*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/vm 1008*94d3b452SApple OSS Distributions cp $(SYMROOT)/vm/mixed_pagesize $(INSTALLDIR)/vm/ 1009*94d3b452SApple OSS Distributions 1010*94d3b452SApple OSS DistributionsBATS_PLISTS += $(SRCROOT)/vm/mixed_pagesize.plist 1011*94d3b452SApple OSS Distributions 1012*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += vm/mixed_pagesize.c vm/mixed_pagesize.plist 1013*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += mixed_pagesize 1014*94d3b452SApple OSS Distributionselse 1015*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += vm/mixed_pagesize.c vm/mixed_pagesize.plist 1016*94d3b452SApple OSS Distributionsendif 1017*94d3b452SApple OSS Distributions 1018*94d3b452SApple OSS Distributionsmanual_wq_cooperative: manual_wq_cooperative.c 1019*94d3b452SApple OSS Distributions mkdir -p $(SYMROOT) 1020*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@ 1021*94d3b452SApple OSS Distributions 1022*94d3b452SApple OSS Distributionsinstall-manual_wq_cooperative: manual_wq_cooperative 1023*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 1024*94d3b452SApple OSS Distributions cp $(SYMROOT)/manual_wq_cooperative $(INSTALLDIR) 1025*94d3b452SApple OSS Distributions 1026*94d3b452SApple OSS DistributionsBATS_PLISTS += $(SRCROOT)/workqueue.plist 1027*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += manual_wq_cooperative.c workqueue.plist 1028*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += manual_wq_cooperative 1029*94d3b452SApple OSS Distributions 1030*94d3b452SApple OSS Distributions# VM madvise(2) benchmark 1031*94d3b452SApple OSS Distributions 1032*94d3b452SApple OSS DistributionsBATS_PLISTS += $(SRCROOT)/vm/perf_madvise.plist 1033*94d3b452SApple OSS Distributions 1034*94d3b452SApple OSS Distributionsvm/perf_madvise: OTHER_CFLAGS += benchmark/helpers.c 1035*94d3b452SApple OSS Distributions 1036*94d3b452SApple OSS Distributions.PHONY: install-vm/perf_madvise 1037*94d3b452SApple OSS Distributionsinstall-vm/perf_madvise: vm/perf_madvise 1038*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/vm 1039*94d3b452SApple OSS Distributions cp $(SYMROOT)/vm/perf_madvise $(INSTALLDIR)/vm/ 1040*94d3b452SApple OSS Distributions 1041*94d3b452SApple OSS Distributions$(SYMROOT)/vm/perf_madvise.lua: $(SRCROOT)/vm/perf_madvise.lua 1042*94d3b452SApple OSS Distributions mkdir -p $(SYMROOT)/vm 1043*94d3b452SApple OSS Distributions cp $< $@ 1044*94d3b452SApple OSS Distributions chmod +x $@ 1045*94d3b452SApple OSS Distributions 1046*94d3b452SApple OSS Distributions.PHONY: install-perf_madvise_benchrun 1047*94d3b452SApple OSS Distributionsinstall-$(SYMROOT)/vm/perf_madvise.lua: $(SYMROOT)/vm/perf_madvise.lua 1048*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/vm 1049*94d3b452SApple OSS Distributions cp $(SYMROOT)/vm/perf_madvise.lua $(INSTALLDIR)/vm 1050*94d3b452SApple OSS Distributions chmod +x $(INSTALLDIR)/vm/perf_madvise.lua 1051*94d3b452SApple OSS Distributions 1052*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += $(SYMROOT)/vm/perf_madvise.lua vm/perf_madvise 1053*94d3b452SApple OSS Distributions 1054*94d3b452SApple OSS DistributionsBATS_PLISTS += $(SRCROOT)/vm/perf_compressor.plist 1055*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += vm/perf_compressor.plist 1056*94d3b452SApple OSS Distributions 1057*94d3b452SApple OSS Distributionsvm/perf_compressor: OTHER_CFLAGS += benchmark/helpers.c 1058*94d3b452SApple OSS Distributions 1059*94d3b452SApple OSS Distributions.PHONY: install-vm/perf_compressor 1060*94d3b452SApple OSS Distributionsinstall-vm/perf_compressor: vm/perf_compressor 1061*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/vm 1062*94d3b452SApple OSS Distributions cp $(SYMROOT)/vm/perf_compressor $(INSTALLDIR)/vm/ 1063*94d3b452SApple OSS Distributions 1064*94d3b452SApple OSS Distributions$(SYMROOT)/vm/perf_compressor.lua: $(SRCROOT)/vm/perf_compressor.lua 1065*94d3b452SApple OSS Distributions mkdir -p $(SYMROOT)/vm 1066*94d3b452SApple OSS Distributions cp $< $@ 1067*94d3b452SApple OSS Distributions chmod +x $@ 1068*94d3b452SApple OSS Distributions 1069*94d3b452SApple OSS Distributions.PHONY: install-$(SYMROOT)/vm/perf_compressor_benchrun 1070*94d3b452SApple OSS Distributionsinstall-$(SYMROOT)/vm/perf_compressor.lua: $(SYMROOT)/vm/perf_compressor.lua 1071*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/vm 1072*94d3b452SApple OSS Distributions cp $(SYMROOT)/vm/perf_compressor.lua $(INSTALLDIR)/vm/ 1073*94d3b452SApple OSS Distributions chmod +x $(INSTALLDIR)/vm/perf_compressor.lua 1074*94d3b452SApple OSS Distributions 1075*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += $(SYMROOT)/vm/perf_compressor.lua vm/perf_compressor 1076*94d3b452SApple OSS Distributions 1077*94d3b452SApple OSS Distributionsioconnectasyncmethod_57641955: OTHER_LDFLAGS += -framework IOKit 1078*94d3b452SApple OSS Distributions 1079*94d3b452SApple OSS Distributionsifeq ($(PLATFORM),BridgeOS) 1080*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += ipsec.m 1081*94d3b452SApple OSS Distributionselse 1082*94d3b452SApple OSS Distributionsipsec: OTHER_LDFLAGS += -framework Foundation -framework CoreFoundation -framework NetworkExtension 1083*94d3b452SApple OSS Distributionsipsec: CODE_SIGN_ENTITLEMENTS = ipsec.entitlements 1084*94d3b452SApple OSS Distributionsendif 1085*94d3b452SApple OSS Distributions 1086*94d3b452SApple OSS Distributionstest_sysctl_kern_procargs_25397314: OTHER_LDFLAGS += -framework Foundation -ldarwintest_utils 1087*94d3b452SApple OSS Distributions 1088*94d3b452SApple OSS DistributionsINCLUDED_TEST_SOURCE_DIRS += counter 1089*94d3b452SApple OSS Distributions 1090*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += counter/common.c 1091*94d3b452SApple OSS Distributionscounter/counter: OTHER_CFLAGS += counter/common.c test_utils.c 1092*94d3b452SApple OSS Distributionscounter/counter: OTHER_LDFLAGS += -ldarwintest_utils -ldarwintest 1093*94d3b452SApple OSS Distributions 1094*94d3b452SApple OSS Distributionscounter/benchmark: OTHER_CFLAGS += counter/common.c benchmark/helpers.c 1095*94d3b452SApple OSS Distributions 1096*94d3b452SApple OSS Distributions.PHONY: install-counter/benchmark 1097*94d3b452SApple OSS Distributionsinstall-counter/benchmark: counter/benchmark 1098*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/counter 1099*94d3b452SApple OSS Distributions cp $(SYMROOT)/counter/benchmark $(INSTALLDIR)/counter/ 1100*94d3b452SApple OSS Distributions 1101*94d3b452SApple OSS Distributions$(SYMROOT)/counter/benchmark.lua: $(SRCROOT)/counter/benchmark.lua 1102*94d3b452SApple OSS Distributions mkdir -p $(SYMROOT)/counter 1103*94d3b452SApple OSS Distributions cp $< $@ 1104*94d3b452SApple OSS Distributions chmod +x $@ 1105*94d3b452SApple OSS Distributions 1106*94d3b452SApple OSS Distributions.PHONY: install-counter_benchrun 1107*94d3b452SApple OSS Distributionsinstall-$(SYMROOT)/counter/benchmark.lua: $(SYMROOT)/counter/benchmark.lua 1108*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/counter 1109*94d3b452SApple OSS Distributions cp $(SYMROOT)/counter/benchmark.lua $(INSTALLDIR)/counter/ 1110*94d3b452SApple OSS Distributions chmod +x $(INSTALLDIR)/counter/benchmark.lua 1111*94d3b452SApple OSS Distributions 1112*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += $(SYMROOT)/counter/benchmark.lua counter/benchmark 1113*94d3b452SApple OSS Distributions 1114*94d3b452SApple OSS Distributionsifneq ($(PLATFORM),MacOSX) 1115*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += vm/page_size_globals.c 1116*94d3b452SApple OSS Distributionselse 1117*94d3b452SApple OSS Distributionsvm/page_size_globals: INVALID_ARCHS = arm64 arm64e 1118*94d3b452SApple OSS Distributionsendif 1119*94d3b452SApple OSS Distributions 1120*94d3b452SApple OSS Distributions# Same helper used in execperf, different build system. 1121*94d3b452SApple OSS Distributionsstatic_binary: ../tools/tests/execperf/exit-asm.S 1122*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(CFLAGS) $(filter-out -l%,$(DT_LDFLAGS) $(LDFLAGS) $(OTHER_LDFLAGS)) $< -o $(SYMROOT)/static_binary -static -nostartfiles -nodefaultlibs -Wl,-version_load_command -Wl,-segalign,0x4000 -e _main 1123*94d3b452SApple OSS Distributions CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/static_binary 1124*94d3b452SApple OSS Distributions 1125*94d3b452SApple OSS Distributionsinstall-static_binary: static_binary 1126*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 1127*94d3b452SApple OSS Distributions cp $(SYMROOT)/static_binary $(INSTALLDIR) 1128*94d3b452SApple OSS Distributions 1129*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += static_binary 1130*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += static_binary.c 1131*94d3b452SApple OSS Distributions 1132*94d3b452SApple OSS Distributionstest_static_binary_csflags: static_binary 1133*94d3b452SApple OSS Distributionstest_static_binary_csflags: OTHER_LDFLAGS += -ldarwintest_utils 1134*94d3b452SApple OSS Distributions 1135*94d3b452SApple OSS Distributions 1136*94d3b452SApple OSS Distributionslibmalloc_apple_array: CODE_SIGN_ENTITLEMENTS = entitlements/libmalloc_apple_array.entitlements 1137*94d3b452SApple OSS Distributionslibmalloc_apple_array: OTHER_CFLAGS += -DENTITLED=1 drop_priv.c test_utils.c 1138*94d3b452SApple OSS Distributionslibmalloc_apple_array: OTHER_LDFLAGS += -ldarwintest_utils 1139*94d3b452SApple OSS Distributionslibmalloc_apple_array: libmalloc_apple_array.c print_apple_array print_apple_array_HR1 print_apple_array_HR2 1140*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@ 1141*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none --entitlements $(CODE_SIGN_ENTITLEMENTS) $(SYMROOT)/$@; 1142*94d3b452SApple OSS Distributions 1143*94d3b452SApple OSS Distributionslibmalloc_apple_array_unentitled: OTHER_CFLAGS += drop_priv.c test_utils.c 1144*94d3b452SApple OSS Distributionslibmalloc_apple_array_unentitled: OTHER_LDFLAGS += -ldarwintest_utils 1145*94d3b452SApple OSS Distributionslibmalloc_apple_array_unentitled: libmalloc_apple_array.c print_apple_array print_apple_array_HR1 print_apple_array_HR2 1146*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $(OTHER_CFLAGS) $< -o $(SYMROOT)/$@ 1147*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; 1148*94d3b452SApple OSS Distributions 1149*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += print_apple_array 1150*94d3b452SApple OSS Distributionsprint_apple_array: print_apple_array.c 1151*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $^ -o $(SYMROOT)/$@ 1152*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; 1153*94d3b452SApple OSS Distributions 1154*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += print_apple_array_HR1 1155*94d3b452SApple OSS Distributionsprint_apple_array_HR1: CODE_SIGN_ENTITLEMENTS=entitlements/hardened-binary-entitlements-1.plist 1156*94d3b452SApple OSS Distributionsprint_apple_array_HR1: print_apple_array.c 1157*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $^ -o $(SYMROOT)/$@ 1158*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --entitlements $(SRCROOT)/$(CODE_SIGN_ENTITLEMENTS) --timestamp=none $(SYMROOT)/$@; 1159*94d3b452SApple OSS Distributions 1160*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += print_apple_array_HR2 1161*94d3b452SApple OSS Distributionsprint_apple_array_HR2: CODE_SIGN_ENTITLEMENTS=entitlements/hardened-binary-entitlements-2.plist 1162*94d3b452SApple OSS Distributionsprint_apple_array_HR2: print_apple_array.c 1163*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) -I $(OBJROOT) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $^ -o $(SYMROOT)/$@ 1164*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --entitlements $(SRCROOT)/$(CODE_SIGN_ENTITLEMENTS) --timestamp=none $(SYMROOT)/$@; 1165*94d3b452SApple OSS Distributions 1166*94d3b452SApple OSS Distributions 1167*94d3b452SApple OSS Distributionsinstall-print_apple_array: print_apple_array 1168*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/tools 1169*94d3b452SApple OSS Distributions cp $(SYMROOT)/print_apple_array $(INSTALLDIR)/tools/ 1170*94d3b452SApple OSS Distributions 1171*94d3b452SApple OSS Distributionsinstall-print_apple_array_HR1: print_apple_array_HR1 1172*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/tools 1173*94d3b452SApple OSS Distributions cp $(SYMROOT)/print_apple_array_HR1 $(INSTALLDIR)/tools/ 1174*94d3b452SApple OSS Distributions 1175*94d3b452SApple OSS Distributionsinstall-print_apple_array_HR2: print_apple_array_HR2 1176*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR)/tools 1177*94d3b452SApple OSS Distributions cp $(SYMROOT)/print_apple_array_HR2 $(INSTALLDIR)/tools/ 1178*94d3b452SApple OSS Distributions 1179*94d3b452SApple OSS Distributionspersona: CODE_SIGN_ENTITLEMENTS = persona.entitlements 1180*94d3b452SApple OSS Distributionspersona_adoption: CODE_SIGN_ENTITLEMENTS = persona_adoption.entitlements 1181*94d3b452SApple OSS Distributions 1182*94d3b452SApple OSS DistributionsOTHER_TEST_TARGETS += libmalloc_apple_array libmalloc_apple_array_unentitled 1183*94d3b452SApple OSS Distributions 1184*94d3b452SApple OSS Distributionsentropy: OTHER_CFLAGS += -framework perfdata 1185*94d3b452SApple OSS Distributions 1186*94d3b452SApple OSS Distributionszero_to_n_tests: OTHER_LDFLAGS += -ldarwintest_utils -framework perfdata 1187*94d3b452SApple OSS Distributions 1188*94d3b452SApple OSS Distributionsdebug_enable_syscall_rejection: OTHER_LDFLAGS += -ldarwintest_utils 1189*94d3b452SApple OSS Distributions 1190*94d3b452SApple OSS Distributionssched_thread_group_fairness: CODE_SIGN_ENTITLEMENTS = sched_thread_group_fairness.entitlements 1191*94d3b452SApple OSS Distributionssched_thread_group_fairness: sched_thread_group_fairness_workload_config.h 1192*94d3b452SApple OSS Distributionssched_thread_group_fairness: OTHER_LDFLAGS += -framework perfdata 1193*94d3b452SApple OSS Distributionssched_thread_group_fairness: OTHER_CFLAGS += -DENTITLED=1 1194*94d3b452SApple OSS Distributionssched_thread_group_fairness_workload_config.h: sched_thread_group_fairness_workload_config.plist 1195*94d3b452SApple OSS Distributions xxd -i $< > $@ 1196*94d3b452SApple OSS Distributions 1197*94d3b452SApple OSS Distributionssched_yield_aggressor: OTHER_LDFLAGS += -ldarwintest_utils -framework perfdata 1198*94d3b452SApple OSS Distributionssched_yield_aggressor: OTHER_CFLAGS += -Wno-atomic-implicit-seq-cst 1199*94d3b452SApple OSS Distributions 1200*94d3b452SApple OSS Distributionssched_all_cores_running: OTHER_LDFLAGS += -ldarwintest_utils 1201*94d3b452SApple OSS Distributions 1202*94d3b452SApple OSS Distributionssched_overloaded_runqueue: CODE_SIGN_ENTITLEMENTS = sched_overloaded_runqueue.entitlements 1203*94d3b452SApple OSS Distributionssched_overloaded_runqueue: OTHER_CFLAGS += -DENTITLED=1 1204*94d3b452SApple OSS Distributionssched_overloaded_runqueue: OTHER_LDFLAGS += -framework ktrace -ldarwintest_utils 1205*94d3b452SApple OSS Distributions 1206*94d3b452SApple OSS Distributionsthread_set_state_arm64_cpsr: CODE_SIGN_ENTITLEMENTS = thread_set_state.entitlement 1207*94d3b452SApple OSS Distributions 1208*94d3b452SApple OSS Distributionsvm/app_swap: OTHER_LDFLAGS += -ldarwintest_utils 1209*94d3b452SApple OSS Distributions 1210*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += debug_syscall_rejection_helper 1211*94d3b452SApple OSS Distributionsdebug_syscall_rejection_helper: debug_syscall_rejection_helper.c 1212*94d3b452SApple OSS Distributions $(CC) $(OTHER_CFLAGS) $(CFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) $< -o $(SYMROOT)/$@; \ 1213*94d3b452SApple OSS Distributions echo $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; \ 1214*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/$@; 1215*94d3b452SApple OSS Distributions 1216*94d3b452SApple OSS Distributions 1217*94d3b452SApple OSS Distributionsinstall-debug_syscall_rejection_helper: debug_syscall_rejection_helper 1218*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 1219*94d3b452SApple OSS Distributions cp $(SYMROOT)/debug_syscall_rejection_helper $(INSTALLDIR)/ 1220*94d3b452SApple OSS Distributions 1221*94d3b452SApple OSS Distributionsfile_leases: OTHER_CFLAGS += test_utils.c 1222*94d3b452SApple OSS Distributionsfile_leases: OTHER_LDFLAGS += -ldarwintest_utils 1223*94d3b452SApple OSS Distributionsfile_leases: CODE_SIGN_ENTITLEMENTS = file_leases.entitlements 1224*94d3b452SApple OSS Distributions 1225*94d3b452SApple OSS DistributionsINCLUDED_TEST_SOURCE_DIRS += vfs 1226*94d3b452SApple OSS Distributionsvfs/freeable_vnodes: OTHER_LDFLAGS += -ldarwintest_utils 1227*94d3b452SApple OSS Distributions 1228*94d3b452SApple OSS Distributionsvm/vm_reclaim: OTHER_CFLAGS += -Wno-language-extension-token -Wno-c++98-compat memorystatus_assertion_helpers.c 1229*94d3b452SApple OSS Distributionsvm/vm_reclaim: OTHER_LDFLAGS += -ldarwintest_utils 1230*94d3b452SApple OSS Distributions 1231*94d3b452SApple OSS Distributionsvm/vm_reclaim: INVALID_ARCHS = armv7k arm64_32 1232*94d3b452SApple OSS Distributions 1233*94d3b452SApple OSS DistributionsDIAG_MEM_THRESHOLD_UTILS = vm/diag_threshold_test.c 1234*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += $(DIAG_MEM_THRESHOLD_UTILS) 1235*94d3b452SApple OSS Distributions 1236*94d3b452SApple OSS Distributionsvm/diag_threshold_test: $(DIAG_MEM_THRESHOLD_UTILS) excserver 1237*94d3b452SApple OSS Distributions 1238*94d3b452SApple OSS Distributionsvm/diag_threshold_test_double_limit: $(DIAG_MEM_THRESHOLD_UTILS) excserver 1239*94d3b452SApple OSS Distributionsvm/diag_threshold_test_double_limit: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 1240*94d3b452SApple OSS Distributionsvm/diag_threshold_test_double_limit: OTHER_CFLAGS += -l darwintest_utils 1241*94d3b452SApple OSS Distributionsvm/diag_threshold_test_double_limit: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 1242*94d3b452SApple OSS Distributions 1243*94d3b452SApple OSS Distributionsvm/diag_threshold_test_simple: $(DIAG_MEM_THRESHOLD_UTILS) excserver 1244*94d3b452SApple OSS Distributionsvm/diag_threshold_test_simple: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 1245*94d3b452SApple OSS Distributionsvm/diag_threshold_test_simple: OTHER_CFLAGS += -l darwintest_utils 1246*94d3b452SApple OSS Distributionsvm/diag_threshold_test_simple: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 1247*94d3b452SApple OSS Distributions 1248*94d3b452SApple OSS Distributionsvm/diag_threshold_test_enable_disable_threshold: $(DIAG_MEM_THRESHOLD_UTILS) excserver 1249*94d3b452SApple OSS Distributionsvm/diag_threshold_test_enable_disable_threshold: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 1250*94d3b452SApple OSS Distributionsvm/diag_threshold_test_enable_disable_threshold: OTHER_CFLAGS += -l darwintest_utils 1251*94d3b452SApple OSS Distributionsvm/diag_threshold_test_enable_disable_threshold: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 1252*94d3b452SApple OSS Distributions 1253*94d3b452SApple OSS Distributionsvm/diag_threshold_test_no_limit_cross: $(DIAG_MEM_THRESHOLD_UTILS) excserver 1254*94d3b452SApple OSS Distributionsvm/diag_threshold_test_no_limit_cross: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 1255*94d3b452SApple OSS Distributionsvm/diag_threshold_test_no_limit_cross: OTHER_CFLAGS += -l darwintest_utils 1256*94d3b452SApple OSS Distributionsvm/diag_threshold_test_no_limit_cross: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 1257*94d3b452SApple OSS Distributions 1258*94d3b452SApple OSS Distributionsvm/diag_threshold_test_no_retrigger: $(DIAG_MEM_THRESHOLD_UTILS) excserver 1259*94d3b452SApple OSS Distributionsvm/diag_threshold_test_no_retrigger: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 1260*94d3b452SApple OSS Distributionsvm/diag_threshold_test_no_retrigger: OTHER_CFLAGS += -l darwintest_utils 1261*94d3b452SApple OSS Distributionsvm/diag_threshold_test_no_retrigger: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 1262*94d3b452SApple OSS Distributions 1263*94d3b452SApple OSS Distributionsvm/diag_threshold_test_with_low_watermark: $(DIAG_MEM_THRESHOLD_UTILS) excserver 1264*94d3b452SApple OSS Distributionsvm/diag_threshold_test_with_low_watermark: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 1265*94d3b452SApple OSS Distributionsvm/diag_threshold_test_with_low_watermark: OTHER_CFLAGS += -l darwintest_utils 1266*94d3b452SApple OSS Distributionsvm/diag_threshold_test_with_low_watermark: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 1267*94d3b452SApple OSS Distributions 1268*94d3b452SApple OSS Distributionsvm/diag_threshold_test_with_high_watermark: $(DIAG_MEM_THRESHOLD_UTILS) excserver 1269*94d3b452SApple OSS Distributionsvm/diag_threshold_test_with_high_watermark: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 1270*94d3b452SApple OSS Distributionsvm/diag_threshold_test_with_high_watermark: OTHER_CFLAGS += -l darwintest_utils 1271*94d3b452SApple OSS Distributionsvm/diag_threshold_test_with_high_watermark: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 1272*94d3b452SApple OSS Distributions 1273*94d3b452SApple OSS Distributionsvm/diag_threshold_test_watermark_and_threshold_same: $(DIAG_MEM_THRESHOLD_UTILS) excserver 1274*94d3b452SApple OSS Distributionsvm/diag_threshold_test_watermark_and_threshold_same: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 1275*94d3b452SApple OSS Distributionsvm/diag_threshold_test_watermark_and_threshold_same: OTHER_CFLAGS += -l darwintest_utils 1276*94d3b452SApple OSS Distributionsvm/diag_threshold_test_watermark_and_threshold_same: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 1277*94d3b452SApple OSS Distributions 1278*94d3b452SApple OSS Distributionsvm/diag_threshold_test_limit_and_threshold_same: $(DIAG_MEM_THRESHOLD_UTILS) excserver 1279*94d3b452SApple OSS Distributionsvm/diag_threshold_test_limit_and_threshold_same: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 1280*94d3b452SApple OSS Distributionsvm/diag_threshold_test_limit_and_threshold_same: OTHER_CFLAGS += -l darwintest_utils 1281*94d3b452SApple OSS Distributionsvm/diag_threshold_test_limit_and_threshold_same: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 1282*94d3b452SApple OSS Distributions 1283*94d3b452SApple OSS Distributionsvm/diag_threshold_test_logging: $(DIAG_MEM_THRESHOLD_UTILS) excserver 1284*94d3b452SApple OSS Distributionsvm/diag_threshold_test_logging: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 1285*94d3b452SApple OSS Distributionsvm/diag_threshold_test_logging: OTHER_CFLAGS += -l darwintest_utils 1286*94d3b452SApple OSS Distributions 1287*94d3b452SApple OSS Distributionsvm/diag_threshold_test_large_limit: $(DIAG_MEM_THRESHOLD_UTILS) excserver 1288*94d3b452SApple OSS Distributionsvm/diag_threshold_test_large_limit: OTHER_CFLAGS += $(OBJROOT)/excserver.c -I $(OBJROOT) 1289*94d3b452SApple OSS Distributionsvm/diag_threshold_test_large_limit: OTHER_CFLAGS += -l darwintest_utils 1290*94d3b452SApple OSS Distributionsvm/diag_threshold_test_large_limit: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 1291*94d3b452SApple OSS Distributions 1292*94d3b452SApple OSS DistributionsEXCLUDED_SOURCES += constrained_ctypes_tests.c 1293*94d3b452SApple OSS DistributionsCUSTOM_TARGETS += constrained_ctypes_tests_enabled constrained_ctypes_tests_enacted constrained_ctypes_tests_disabled 1294*94d3b452SApple OSS Distributionsconstrained_ctypes_tests_enabled: OTHER_CFLAGS += -D__CCT_TEST_ENABLED 1295*94d3b452SApple OSS Distributionsconstrained_ctypes_tests_enabled: OTHER_LDFLAGS += -ldarwintest_utils 1296*94d3b452SApple OSS Distributionsconstrained_ctypes_tests_enabled: constrained_ctypes_tests.c 1297*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) constrained_ctypes_tests.c -o $(SYMROOT)/constrained_ctypes_tests_enabled 1298*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/constrained_ctypes_tests_enabled; 1299*94d3b452SApple OSS Distributions 1300*94d3b452SApple OSS Distributionsinstall-constrained_ctypes_tests_enabled: constrained_ctypes_tests_enabled 1301*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 1302*94d3b452SApple OSS Distributions cp $(SYMROOT)/constrained_ctypes_tests_enabled $(INSTALLDIR)/ 1303*94d3b452SApple OSS Distributions 1304*94d3b452SApple OSS Distributionsconstrained_ctypes_tests_enacted: OTHER_CFLAGS += -D__CCT_TEST_ENABLED 1305*94d3b452SApple OSS Distributionsconstrained_ctypes_tests_enacted: OTHER_CFLAGS += -D__CCT_TEST_ENACTED 1306*94d3b452SApple OSS Distributionsconstrained_ctypes_tests_enacted: OTHER_CFLAGS += -fbounds-attributes 1307*94d3b452SApple OSS Distributionsconstrained_ctypes_tests_enacted: OTHER_LDFLAGS += -ldarwintest_utils 1308*94d3b452SApple OSS Distributionsconstrained_ctypes_tests_enacted: constrained_ctypes_tests.c 1309*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) constrained_ctypes_tests.c -o $(SYMROOT)/constrained_ctypes_tests_enacted 1310*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/constrained_ctypes_tests_enacted; 1311*94d3b452SApple OSS Distributions 1312*94d3b452SApple OSS Distributionsinstall-constrained_ctypes_tests_enacted: constrained_ctypes_tests_enacted 1313*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 1314*94d3b452SApple OSS Distributions cp $(SYMROOT)/constrained_ctypes_tests_enacted $(INSTALLDIR)/ 1315*94d3b452SApple OSS Distributions 1316*94d3b452SApple OSS Distributions 1317*94d3b452SApple OSS Distributionsconstrained_ctypes_tests_disabled: OTHER_LDFLAGS += -ldarwintest_utils 1318*94d3b452SApple OSS Distributionsconstrained_ctypes_tests_disabled: constrained_ctypes_tests.c 1319*94d3b452SApple OSS Distributions $(CC) $(DT_CFLAGS) $(OTHER_CFLAGS) $(CFLAGS) $(DT_LDFLAGS) $(OTHER_LDFLAGS) $(LDFLAGS) constrained_ctypes_tests.c -o $(SYMROOT)/constrained_ctypes_tests_disabled 1320*94d3b452SApple OSS Distributions env CODESIGN_ALLOCATE=$(CODESIGN_ALLOCATE) $(CODESIGN) --force --sign - --timestamp=none $(SYMROOT)/constrained_ctypes_tests_disabled; 1321*94d3b452SApple OSS Distributions 1322*94d3b452SApple OSS Distributionsinstall-constrained_ctypes_tests_disabled: constrained_ctypes_tests_disabled 1323*94d3b452SApple OSS Distributions mkdir -p $(INSTALLDIR) 1324*94d3b452SApple OSS Distributions cp $(SYMROOT)/constrained_ctypes_tests_disabled $(INSTALLDIR)/ 1325*94d3b452SApple OSS Distributions 1326*94d3b452SApple OSS Distributionstask_suspend_stats: OTHER_LDFLAGS += -ldarwintest_utils 1327*94d3b452SApple OSS Distributionstask_suspend_stats: CODE_SIGN_ENTITLEMENTS = task_for_pid_entitlement.plist 1328*94d3b452SApple OSS Distributions 1329*94d3b452SApple OSS Distributions# os_atomic use throws this warning 1330*94d3b452SApple OSS Distributionssetitimer: OTHER_CFLAGS += -Wno-c++98-compat 1331*94d3b452SApple OSS Distributions 1332*94d3b452SApple OSS Distributions 1333*94d3b452SApple OSS Distributionsinclude $(DEVELOPER_DIR)/AppleInternal/Makefiles/darwintest/Makefile.targets 1334*94d3b452SApple OSS Distributions 1335*94d3b452SApple OSS Distributionsexception_ports_info: CODE_SIGN_ENTITLEMENTS = set_exception_port.entitlement 1336