1OBJC_SOURCES := main.m 2UI_FRAMEWORK = AppKit 3 4ifneq ("$(SDKROOT)", "") 5 ifeq (,$(findstring macOS,$(SDKROOT))) 6 ifeq (,$(findstring MacOS,$(SDKROOT))) 7 UI_FRAMEWORK = UIKit 8 endif 9 endif 10endif 11 12LD_EXTRAS = -lobjc -framework Foundation -framework $(UI_FRAMEWORK) 13 14include Makefile.rules 15