Skip to content

Instantly share code, notes, and snippets.

@OneSadCookie
Created September 30, 2011 04:34
Show Gist options
  • Save OneSadCookie/1252664 to your computer and use it in GitHub Desktop.
Save OneSadCookie/1252664 to your computer and use it in GitHub Desktop.
how to use choosesdk.rb in make
THIN_EXES := $(patsubst %,build/%/$(APP),$(ARCHS))
build/%/$(APP): $(SOURCES) Makefile Arch.mk
./choosesdk.rb --arch=$* --min-os=10.6 --run="$(MAKE) -f Arch.mk $@ ARCH=$*"
$(EXE): $(THIN_EXES) Makefile
mkdir -p $(@D)
lipo $(THIN_EXES) -create -output $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment