Changeset - r6828:f0a98c7c4e55
[Not reviewed]
master
0 1 0
truelight - 17 years ago 2007-06-08 17:54:48
truelight@openttd.org
(svn r10067) -Add: 'make run-prof' profiles your code, simular to 'make run' and 'make run-gdb'
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
Makefile.in
Show inline comments
 
@@ -99,6 +99,9 @@ run: all
 
run-gdb: all
 
	$(Q)cd !!BIN_DIR!! && gdb --ex run --args ./!!TTD!! $(OPENTTD_ARGS)
 

	
 
run-prof: all
 
	$(Q)cd !!BIN_DIR!! && ./!!TTD!! $(OPENTTD_ARGS) && gprof !!TTD!! | less
 

	
 
%.o:
 
	@for dir in $(SRC_DIRS); do \
 
		$(MAKE) -C $$dir $(@:src/%=%); \
0 comments (0 inline, 0 general)