[libfann] 75/242: changed 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 54f2a38d006ae28a34be858b9d07a67f4dc0bd86
Author: Steffen Nissen <lukesky at diku.dk>
Date:   Thu Feb 12 21:34:58 2004 +0000

    changed option for building a local debugging example
---
 examples/Makefile | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/examples/Makefile b/examples/Makefile
index e72a6db..8630fb9 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -2,6 +2,7 @@
 # The make file requires that the fann library is installed (see ../README)
 
 TARGETS = xor_train xor_test xor_test_fixed simple_train steepness_train simple_test 
+DEBUG_TARGETS = xor_train_debug xor_test_debug
 
 all: $(TARGETS)
 
@@ -12,7 +13,7 @@ all: $(TARGETS)
 	gcc -O3 -lm -lfixedfann -DFIXEDFANN $< -o $@
 
 clean:
-	rm -f $(TARGETS) xor_fixed.data xor_float.net xor_fixed.net
+	rm -f $(TARGETS) $(DEBUG_TARGETS) xor_fixed.data xor_float.net xor_fixed.net
 
 runtest: $(TARGETS)
 	@echo
@@ -43,12 +44,8 @@ rundebug: $(TARGETS)
 	valgrind --leak-check=yes --show-reachable=yes --leak-resolution=high ./xor_test_fixed
 
 
-DEBUG_TARGETS = xor_train_debug xor_test_debug
-debug: library $(DEBUG_TARGETS)
-
-library:
-	(cd .. && make)
+debug: $(DEBUG_TARGETS)
 
 %_debug: %.c Makefile
-	gcc -O -ggdb -lm -DDEBUG ../src/.libs/floatfann.o $< -o $@
+	gcc -O -ggdb -lm -DDEBUG -I../src/ -I../src/include/ ../src/floatfann.c $< -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