From 59b5b798024f64ca3cafadff0111897dc3376b91 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 4 Apr 2018 18:34:21 -0400 Subject: [PATCH] Update make run, debug, and perf --- Makefile | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 6d33dae9..347030fa 100644 --- a/Makefile +++ b/Makefile @@ -60,30 +60,22 @@ dep: $(MAKE) -C dep run: $(TARGET) -ifeq ($(ARCH), lin) - LD_LIBRARY_PATH=dep/lib ./$< -endif -ifeq ($(ARCH), mac) - DYLD_FALLBACK_LIBRARY_PATH=dep/lib ./$< -endif -ifeq ($(ARCH), win) - env PATH="$(PATH)":dep/bin ./$< -endif + ./$< debug: $(TARGET) -ifeq ($(ARCH), lin) - LD_LIBRARY_PATH=dep/lib gdb -ex run ./Rack -endif ifeq ($(ARCH), mac) - DYLD_FALLBACK_LIBRARY_PATH=dep/lib gdb -ex run ./Rack + lldb -ex run ./$< endif ifeq ($(ARCH), win) - env PATH="$(PATH)":dep/bin gdb -ex run ./Rack + gdb -ex run ./$< +endif +ifeq ($(ARCH), lin) + gdb -ex run ./$< endif perf: $(TARGET) ifeq ($(ARCH), lin) - LD_LIBRARY_PATH=dep/lib perf record --call-graph dwarf ./Rack + perf record --call-graph dwarf ./Rack endif clean: