summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2010-12-11 15:33:03 +0000
committerChristian Pointner <equinox@spreadspace.org>2010-12-11 15:33:03 +0000
commit3e53ec5b705f4b31d36c8f6ffab743516a89b060 (patch)
tree4c5478138ff3f0e24c69d770499a73ec7c2a7eaa /src
parentimproved error handling at config parser (diff)
adde make file target for cfg_parser state graph png
git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@53 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src')
-rw-r--r--src/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index 387fbec..4c5fe37 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -51,6 +51,12 @@ all: $(EXECUTABLE)
cfg_parser.c: cfg_parser.rl
$(RAGEL) -C -G2 -o $@ $<
+cfg_parser.dot: cfg_parser.rl
+ $(RAGEL) -V -p -o $@ $<
+
+cfg_parser.png: cfg_parser.dot
+ @dot -Tpng $< > $@
+
%.d: %.c
@set -e; rm -f $@; \
$(CC) -MM $(CFLAGS) $< > $@.$$$$; \
@@ -82,6 +88,7 @@ clean:
rm -f *.d
rm -f *.d.*
rm -f cfg_parser.c
+ rm -f cfg_parser.png cfg_parser.dot
rm -f $(EXECUTABLE)
cleanall: clean