fixing leak
[oweals/gnunet.git] / src / monkey / Makefile.am
index 2f8ca295c4bb5b3cf84b72c2b5bbfc6081764b27..44042dfdd0aa8bb066697a64ad04ff71683621b4 100644 (file)
@@ -14,6 +14,27 @@ if !MINGW
 if HAVE_ESMTP
 if HAVE_OPENSSL
 
+
+lib_LTLIBRARIES = libmonkeyedb.la \
+                                 libmonkeyaction.la
+
+libmonkeyedb_la_SOURCES = \
+  edb_api.c \
+  gnunet_monkey_edb.h
+
+libmonkeyedb_la_LIBADD = \
+  $(top_builddir)/src/util/libgnunetutil.la \
+  -lsqlite3 \
+  $(GN_LIBINTL) $(XLIB)  
+
+libmonkeyaction_la_SOURCES = \
+  action_api.c \
+  gnunet_monkey_action.h
+
+libmonkeyaction_la_LIBADD = \
+  $(top_builddir)/src/util/libgnunetutil.la \
+  $(GN_LIBINTL) $(XLIB)  
+
 bin_PROGRAMS = \
  gnunet-monkey \
  gnunet-service-monkey 
@@ -43,6 +64,8 @@ gnunet_monkey_SOURCES = \
 
 gnunet_monkey_LDADD = \
   $(top_builddir)/src/util/libgnunetutil.la \
+  $(top_builddir)/src/monkey/libmonkeyedb.la \
+  $(top_builddir)/src/monkey/libmonkeyaction.la \
   -lesmtp \
   $(GN_LIBINTL)
 
@@ -54,36 +77,39 @@ gnunet_service_monkey_LDADD = \
   $(GN_LIBINTL)
 
 
-bug_null_pointer_exception_SOURCES = \
-       bug_null_pointer_exception.c
-bug_null_pointer_exception_LDADD = \
-       $(top_builddir)/src/util/libgnunetutil.la \
-       $(GN_LIBINTL)
-       
+bug_null_pointer_exception:
+       gcc -g -O0 -o bug_null_pointer_exception bug_null_pointer_exception.c
+
 check_PROGRAMS = \
-    bug_null_pointer_exception \
-    test_gnunet_monkey 
+    test_monkey_edb
+    #test_gnunet_monkey        
 
 if !DISABLE_TEST_RUN
 # TESTS = $(check_SCRIPTS)
+TESTS = $(check_PROGRAMS)
 endif
 
-test_gnunet_monkey_SOURCES = \
- test_gnunet_monkey.c
-test_gnunet_monkey_LDADD = \
-  $(top_builddir)/src/arm/libgnunetarm.la \
-  $(top_builddir)/src/util/libgnunetutil.la  
-  
-  
+test_monkey_edb_SOURCES = \
+  test_monkey_edb.c
+test_monkey_edb_LDADD = \
+  $(top_builddir)/src/util/libgnunetutil.la \
+  $(top_builddir)/src/monkey/libmonkeyedb.la
+
+#test_gnunet_monkey_SOURCES = \
+ #test_gnunet_monkey.c
+#test_gnunet_monkey_LDADD = \
+  #$(top_builddir)/src/arm/libgnunetarm.la \
+  #$(top_builddir)/src/util/libgnunetutil.la  
+
+
 check_SCRIPTS = \
-  test_gnunet_monkey.sh 
-#  test_monkey_npe.sh
+  #test_gnunet_monkey.sh \
+  #test_monkey_npe.sh
 
-EXTRA_DIST = \
-  test_gnunet_monkey_data.conf \
-  $(check_SCRIPTS) 
+#EXTRA_DIST = \
+#$(check_SCRIPTS) 
+#test_gnunet_monkey_data.conf 
 
 endif
 endif
 endif
-