From 558c33050a6757a28a55b123575c34c59647ee8b Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 25 Nov 2015 16:02:12 -0800 Subject: [PATCH] Provide an easier way to run the debugger on OS X. --- apple.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/apple.mk b/apple.mk index 429d4a4..6053192 100644 --- 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 -- 2.45.2