summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2007-03-15 13:17:54 +0000
committertruelight <truelight@openttd.org>2007-03-15 13:17:54 +0000
commiteff72d1962882a50de5a81bbc28a734baebf526d (patch)
tree38477b8590f02d34d2a266f64976655efa2bdff2 /Makefile.in
parenteb1e6c19ad233a4e1c1b5e37dc59f02db0692212 (diff)
downloadopenttd-eff72d1962882a50de5a81bbc28a734baebf526d.tar.xz
(svn r9198) [Config] -Add: added 'make run-gdb' which starts gdb + OpenTTD + OPENTTD_ARGS for you
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in
index 66eac2c12..9476f06ed 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -96,6 +96,9 @@ depend:
run: all
$(Q)cd !!BIN_DIR!! && ./!!TTD!! $(OPENTTD_ARGS)
+run-gdb: all
+ $(Q)cd !!BIN_DIR!! && gdb --ex run --args ./!!TTD!! $(OPENTTD_ARGS)
+
%.o:
@for dir in $(SRC_DIRS); do \
$(MAKE) -C $$dir $(@:src/%=%); \