if !MINGW
+if HAVE_ESMTP
+if HAVE_OPENSSL
-lib_LTLIBRARIES = libgnunetmonkey.la
-libgnunetmonkey_la_SOURCES = \
- monkey_api.c monkey.h
-libgnunetmonkey_la_LIBADD = \
+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 \
- -lesmtp
-libgnunetmonkey_la_LDFLAGS = \
- $(GN_LIB_LDFLAGS) $(WINFLAGS) \
- -version-info 0:0:0
+ -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 \
- bug_null_pointer_exception \
- mail_sender
+ gnunet-service-monkey
+
+noinst_PROGRAMS = \
+ bug_null_pointer_exception
gnunet_monkey_SOURCES = \
- mi_gdb.h \
- alloc.c \
- breakpoint.c \
- connect.c \
- cpp_int.cc \
- data_man.c \
- error.c \
- get_free_pty.c \
- get_free_vt.c \
+ gdbmi.h \
+ gdbmi_alloc.c \
+ gdbmi_breakpoint.c \
+ gdbmi_connect.c \
+ gdbmi_data_man.c \
+ gdbmi_error.c \
+ gdbmi_get_free_pty.c \
+ gdbmi_get_free_vt.c \
+ gdbmi_misc.c \
+ gdbmi_parse.c \
+ gdbmi_prg_control.c \
+ gdbmi_stack_man.c \
+ gdbmi_symbol_query.c \
+ gdbmi_target_man.c \
+ gdbmi_thread.c \
+ gdbmi_var_obj.c \
gnunet-monkey.c \
- misc.c \
- parse.c \
- prg_control.c \
- stack_man.c \
- symbol_query.c \
- target_man.c \
- thread.c \
- var_obj.c
-
+ mail_sender.c
+
gnunet_monkey_LDADD = \
- $(top_builddir)/src/monkey/libgnunetmonkey.la \
$(top_builddir)/src/util/libgnunetutil.la \
+ $(top_builddir)/src/monkey/libmonkeyedb.la \
+ $(top_builddir)/src/monkey/libmonkeyaction.la \
+ -lesmtp \
$(GN_LIBINTL)
-
gnunet_service_monkey_SOURCES = \
gnunet-service-monkey.c
gnunet_service_monkey_LDADD = \
- $(top_builddir)/src/monkey/libgnunetmonkey.la \
$(top_builddir)/src/util/libgnunetutil.la \
$(GN_LIBINTL)
-mail_sender_SOURCES = \
- mail_sender.c
-mail_sender_LDADD = \
- $(top_builddir)/src/monkey/libgnunetmonkey.la \
- $(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
-bug_null_pointer_exception_SOURCES = \
- bug_null_pointer_exception.c
-bug_null_pointer_exception_LDADD = \
- $(top_builddir)/src/monkey/libgnunetmonkey.la \
- $(top_builddir)/src/util/libgnunetutil.la \
- $(GN_LIBINTL)
+check_PROGRAMS = \
+ test_monkey_edb
+ #test_gnunet_monkey
+if !DISABLE_TEST_RUN
+# TESTS = $(check_SCRIPTS)
+TESTS = $(check_PROGRAMS)
+endif
-
-check_PROGRAMS = \
- test_monkey_api
+test_monkey_edb_SOURCES = \
+ test_monkey_edb.c
+test_monkey_edb_LDADD = \
+ $(top_builddir)/src/util/libgnunetutil.la \
+ $(top_builddir)/src/monkey/libmonkeyedb.la
-TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
+#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_api_SOURCES = \
- test_monkey_api.c
-test_monkey_api_LDADD = \
- $(top_builddir)/src/monkey/libgnunetmonkey.la \
- $(top_builddir)/src/util/libgnunetutil.la
check_SCRIPTS = \
- test_gnunet_monkey.sh
+ #test_gnunet_monkey.sh \
+ #test_monkey_npe.sh
-EXTRA_DIST = \
- test_monkey_api_data.conf \
- $(check_SCRIPTS)
+#EXTRA_DIST = \
+#$(check_SCRIPTS)
+#test_gnunet_monkey_data.conf
endif
-
+endif
+endif