summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3a12815..aa71230 100644
--- a/Makefile
+++ b/Makefile
@@ -50,7 +50,15 @@ test-png: clean
test: test-png
+# $(TEST) is passed in via `make gdb TEST=<test_name>`
+# NOTE: <test_name> should be the name of the test target's output binary
+# inside the Makefile but cannot be the more generic 'test' target
+#
+#
+#
+# WARNING: TEST does not have a default value
+
gdb: debug
- gdb -x debug/.gdbinit
-
-.PHONY: all clean debug release asan test test-png gdb
+ gdb -x debug/.gdbinit $(OUTDIR)/$(TEST)
+
+.PHONY: all clean debug release asan test test-png gdb \ No newline at end of file