]> git.saurik.com Git - cycript.git/blobdiff - apple.mk
Avoid error caused by passing -pthread to libtool.
[cycript.git] / apple.mk
index bfaf2207dddd0c1677f6e11418afb7d848706f9e..215f4d5ad886a118cbf5d3a9e502634747e7753b 100644 (file)
--- a/apple.mk
+++ b/apple.mk
@@ -17,6 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 # }}}
 
+.SECONDARY:
 .DELETE_ON_ERROR:
 SHELL := /bin/bash
 
@@ -44,6 +45,7 @@ framework += Headers/Cycript.h
 framework := $(foreach os,ios osx,$(foreach file,$(framework),Cycript.$(os)/Cycript.framework/$(file)))
 
 links := 
+links += Cycript.lib/cynject
 links += Cycript.lib/libsubstrate.dylib
 links += Cycript.lib/cycript0.9
 
@@ -81,7 +83,7 @@ clean:
 define build_any
 .PHONY: build-$(1)-$(2)
 build-$(1)-$(2):
-       $(MAKE) -C build.$(1)-$(2)
+       $$(MAKE) -C build.$(1)-$(2)
 build.$(1)-$(2)/.libs/libcycript.a: build-$(1)-$(2)
        @
 endef