Files
clang-p2996/lldb/packages/Python/lldbsuite/test/functionalities/mtc/simple/Makefile
Jason Molenda af3aac9a22 Change the mtc Makefile to check $SDKROOT value instead
of depending on it being set in the environment.  Fred's change
from October assumed that SDKROOT was set in the environment
so that 'xcrun --show-sdk-path' would print the path.  If it
was passed in as a Makefile variable, it wouldn't be set in
the environment and xcrun --show-sdk-path would always show the
macOS SDK path.  When running the lldb testsuite against an ios
device via lit, this seems to be the case.
2019-12-10 18:48:40 -08:00

15 lines
290 B
Makefile

OBJC_SOURCES := main.m
UI_FRAMEWORK = AppKit
ifneq ("$(SDKROOT)", "")
ifeq (,$(findstring macOS,$(SDKROOT)))
ifeq (,$(findstring MacOS,$(SDKROOT)))
UI_FRAMEWORK = UIKit
endif
endif
endif
LD_EXTRAS = -lobjc -framework Foundation -framework $(UI_FRAMEWORK)
include Makefile.rules