]> git.saurik.com Git - cycript.git/blobdiff - makefile
Factored out Objective-C flags.
[cycript.git] / makefile
index 1a986ec61e6cc490a7070875a1eb2b740cf5794d..a77d33053408c40244db1aa6fcb61d7acb3df097 100644 (file)
--- a/makefile
+++ b/makefile
@@ -7,6 +7,7 @@ target := $(PKG_TARG)-
 endif
 
 flags :=
+objc :=
 
 svn := $(shell svnversion)
 
@@ -107,7 +108,7 @@ lex.cy.o: lex.cy.c Cycript.tab.hh Parser.hpp Pooling.hpp
        $(target)g++ $(flags) -c -o $@ $<
 
 %.o: %.mm $(header)
-       $(target)g++ $(flags) -c -o $@ $<
+       $(target)g++ $(flags) -c -o $@ $< $(objc)
 
 libcycript.$(dll): $(code)
        $(target)g++ $(flags) -shared -dynamiclib -o $@ $(filter %.o,$^) $(library) $(link)