Skip to content

Instantly share code, notes, and snippets.

@foxicode
Created April 6, 2020 19:44
Show Gist options
  • Select an option

  • Save foxicode/c466ecfc0e39b1cec005b95e56f92ad7 to your computer and use it in GitHub Desktop.

Select an option

Save foxicode/c466ecfc0e39b1cec005b95e56f92ad7 to your computer and use it in GitHub Desktop.
Makefile for simple iOS app
default: app
.PHONY: clean
clean:
rm MakeTest.app/app
SDKROOT:=$(shell xcrun --sdk iphonesimulator --show-sdk-path)
app: main.m
clang -isysroot $(SDKROOT) -framework Foundation -framework UIKit -o MakeTest.app/$@ $^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment