summaryrefslogtreecommitdiff
path: root/utils/Makefile
diff options
context:
space:
mode:
authorLauri Aarnio <lauri.aarnio@iki.fi>2008-02-08 18:12:06 +0200
committerLauri Leukkunen <lle@rahina.org>2008-02-12 20:56:52 +0200
commit9ffafcdfe34504ec1651b7573d33bbdc26f5a231 (patch)
tree2e7de6cbe296014a05321d2444091e4d078e4286 /utils/Makefile
parent5f05a636c05ca6351aa4a6839f55db90c4bc6f47 (diff)
Print statistics after sb2 finishes (and/or error+warning messages)
- a new uility, "sb2-monitor", will be started by "sb2" to produce statistics and/or error messages after the command started by "sb2" finishes (actually, the messages are produced by a new helper script, "sb2-exitreport", which gets started by sb2-monitor) N.B. sb2-monitor tries to be as transparent as possible, preserving signals etc., but that is a somewhat complex task. see the source code for furher comments. - logging level is now "warning" by default (previously the default was to keep logging off, and simply loose all errors and warnings) - added two new sub-commands to sb2-show: "log-error" and "log-warning" can be used to add messages to the log. An easy way to test the operation of "sb2-monitor" is to run "sb2 sb2-show log-error testmessage", and "sb2 -d sb2-show log-error testmessage" for even more details about the run. - There is also a new test program, signaltester.c, which can be used when testing&developing sb2-monitor.
Diffstat (limited to 'utils/Makefile')
-rw-r--r--utils/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/utils/Makefile b/utils/Makefile
index 3140bfd..2619519 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -11,5 +11,15 @@ $(D)/sb2-show: preload/libsb2.so $(D)/sb2-show.o
$(P)LD
$(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
-targets := $(targets) $(D)/sb2-show
+$(D)/sb2-monitor: CFLAGS := $(CFLAGS) -Wall -W -Werror \
+ -I$(SRCDIR)/preload -Ipreload/ $(PROTOTYPEWARNINGS) \
+ -I$(SRCDIR)/include
+
+$(D)/sb2-monitor: $(D)/sb2-monitor.o
+ $(MKOUTPUTDIR)
+ $(P)LD
+ $(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+
+targets := $(targets) $(D)/sb2-show $(D)/sb2-monitor