Files
clang-p2996/lldb/test/API/lang/objc/hidden-ivars/Makefile
Vladislav Dzhidzhoev b773da0c5e [lldb][test] Use $(STRIP) instead of strip in API tests (Darwin-only change) (#111816)
This makes tests more portable.
Make variables for LLVM utils are passed to `make` on Darwin as well.

Co-authored-by: Vladimir Vereschaka <vvereschaka@accesssoftek.com>
2024-10-10 14:21:25 +02:00

28 lines
639 B
Makefile

DYLIB_NAME := InternalDefiner
DYLIB_OBJC_SOURCES := InternalDefiner.m
OBJC_SOURCES := main.m
LD_EXTRAS = -framework Foundation
all: a.out libInternalDefiner.dylib stripped
include Makefile.rules
ifeq "$(MAKE_DSYM)" "YES"
stripped: a.out.dSYM
endif
stripped: a.out libInternalDefiner.dylib
mkdir stripped
$(STRIP) -Sx a.out -o stripped/a.out
$(STRIP) -Sx libInternalDefiner.dylib -o stripped/libInternalDefiner.dylib
ifneq "$(CODESIGN)" ""
$(CODESIGN) -fs - stripped/a.out
endif
ifneq "$(CODESIGN)" ""
$(CODESIGN) -fs - stripped/libInternalDefiner.dylib
endif
ifeq "$(MAKE_DSYM)" "YES"
cp -r a.out.dSYM stripped/a.out.dSYM
endif