]> git.saurik.com Git - cycript.git/commitdiff
Provide an easier way to run the debugger on OS X.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 26 Nov 2015 00:02:12 +0000 (16:02 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 26 Nov 2015 00:02:12 +0000 (16:02 -0800)
apple.mk

index 429d4a456e438ec644a4b89fe28d0c78108b3902..6053192081015130f1693d0b403a9ecd71080de5 100644 (file)
--- a/apple.mk
+++ b/apple.mk
@@ -178,7 +178,12 @@ cycript: cycript.in
        cp -af $< $@
        chmod 755 $@
 
-install: Cycript.lib/cycript Cycript.lib/libcycript.dylib Cycript.lib/libcycript-sys.dylib Cycript.lib/libcycript-sim.dylib
+local := Cycript.lib/cycript Cycript.lib/libcycript.dylib Cycript.lib/libcycript-sys.dylib Cycript.lib/libcycript-sim.dylib
+
+debug: $(local)
+       DYLD_LIBRARY_PATH=Cycript.lib lldb Cycript.lib/cycript
+
+install: $(local)
        sudo cp -af $(filter-out %.dylib,$^) /usr/bin
        sudo cp -af $(filter %.dylib,$^) /usr/lib
 
@@ -186,4 +191,4 @@ install: Cycript.lib/cycript Cycript.lib/libcycript.dylib Cycript.lib/libcycript
 cast: $(zip)
        appcast.sh cycript/mac $(monotonic) $(version) $< "$(CYCRIPT_CHANGES)"
 
-.PHONY: all cast clean install zip
+.PHONY: all cast clean debug install zip