[AA] Rename CaptureInfo -> CaptureAnalysis (NFC) (#116842)
[llvm-project.git] / compiler-rt / test / BlocksRuntime / makefile
blobf40ca4d1ca4d6f5aa8f294e92d6b503a6c8a8849
2 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
3 # See https://llvm.org/LICENSE.txt for license information.
4 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5 CCDIR=/usr/bin
6 #CCDIR=/Volumes/Keep/gcc/usr/bin
8 all: std
10 clean:
11 rm -fr *.dSYM *.o *-bin testfilerunner
13 TFR = ~public/bin/testfilerunner
15 testfilerunner: testfilerunner.h testfilerunner.m
16 gcc -fobjc-gc-only -g -arch x86_64 -arch i386 -std=gnu99 testfilerunner.m -o testfilerunner -framework Foundation
18 tests:
19 grep CONFIG *.[cmCM] | $(TFR) $(CCDIR) --
21 open:
22 grep CONFIG *.[cmCM] | $(TFR) $(CCDIR) -open --
24 fast:
25 grep CONFIG *.[cmCM] | $(TFR) -fast $(CCDIR) --
27 std:
28 grep CONFIG *.[cmCM] | $(TFR) --
30 clang:
31 grep CONFIG *.[cmCM] | $(TFR) -clang -fast --
33 fastd:
34 grep CONFIG *.[cmCM] | $(TFR) -fast --
37 # Hack Alert: arguably most of the following belongs in libclosure's Makefile; sticking it here until I get around to grokking what goes on in that file.
38 sudid:
39 @echo Enabling sudo: # Hack Alert: enable sudo first thing so we don't hang at the password prompt later
40 @sudo echo Thanks
43 RootsDirectory ?= /tmp/
44 # Note: the libsystem project (built by the libsystemroot target below) uses the ALTUSRLOCALLIBSYSTEM variable, so we use it here to maintain parity
45 ALTUSRLOCALLIBSYSTEM ?= $(RootsDirectory)/alt-usr-local-lib-system/
46 altusrlocallibsystem:
47 ditto /usr/local/lib/system $(ALTUSRLOCALLIBSYSTEM) # FIXME: conditionalize this copy
50 # <rdar://problem/6456031> ER: option to not require extra privileges (-nosudo or somesuch)
51 Buildit ?= ~rc/bin/buildit -rootsDirectory $(RootsDirectory) -arch i386 -arch ppc -arch x86_64
52 blocksroot: sudid clean altusrlocallibsystem
53 sudo $(Buildit) ..
54 ditto $(RootsDirectory)/libclosure.roots/libclosure~dst/usr/local/lib/system $(ALTUSRLOCALLIBSYSTEM)
57 LibsystemVersion ?= 121
58 LibsystemPath ?= ~rc/Software/SnowLeopard/Projects/Libsystem/Libsystem-$(LibsystemVersion)
59 LibsystemTmpPath ?= $(RootsDirectory)/Libsystem-$(LibsystemVersion)
60 libsystemroot: blocksroot
61 ditto $(LibsystemPath) $(LibsystemTmpPath) # FIXME: conditionalize this copy
62 sudo ALTUSRLOCALLIBSYSTEM=$(ALTUSRLOCALLIBSYSTEM) $(Buildit) $(LibsystemTmpPath)
65 # Defaults to product of the libsystemroot target but does not automatically rebuild that, make both targets if you want a fresh root
66 LibsystemRootPath ?= $(RootsDirectory)/Libsystem-$(LibsystemVersion).roots/Libsystem-$(LibsystemVersion)~dst/usr/lib/
67 roottests:
68 grep CONFIG *.[cmCM] | $(TFR) -dyld $(LibsystemRootPath) -- # FIXME: figure out if I can "call" the std target instead of duplicating it