[libfann] 73/242: Added option for building a local debugging example

Christian Kastner chrisk-guest at moszumanska.debian.org
Sat Oct 4 21:10:21 UTC 2014


This is an automated email from the git hooks/post-receive script.

chrisk-guest pushed a commit to tag Version2_0_0
in repository libfann.

commit 114bda542d9557f33c5fc7a125d21c424c486519
Author: Steffen Nissen <lukesky at diku.dk>
Date:   Thu Feb 12 21:11:29 2004 +0000

    Added option for building a local debugging example
---
 examples/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/examples/Makefile b/examples/Makefile
index 41af26d..5d74e4f 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -27,6 +27,8 @@ runtest: $(TARGETS)
 	@echo Testing network with fixed points
 	./xor_test_fixed
 
+#below this line is only for debugging the fann library
+
 rundebug: $(TARGETS)
 	@echo
 	@echo Training network
@@ -39,3 +41,10 @@ rundebug: $(TARGETS)
 	@echo
 	@echo Testing network with fixed points
 	valgrind --leak-check=yes --show-reachable=yes --leak-resolution=high ./xor_test_fixed
+
+
+DEBUG_TARGETS = xor_train_debug xor_test_debug
+debug: $(DEBUG_TARGETS)
+%_debug: %.c Makefile
+	gcc -O -ggdb -lm -DDEBUG ../src/.libs/floatfann.o $< -o $@
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libfann.git



More information about the debian-science-commits mailing list