nicer
[oweals/gnunet.git] / src / monkey / Makefile.am
1 INCLUDES = -I$(top_srcdir)/src/include
2
3 if MINGW
4  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
5 endif
6
7 if USE_COVERAGE
8   AM_CFLAGS = --coverage -O0
9   XLIB = -lgcov
10 endif
11
12
13 if !MINGW
14 if HAVE_ESMTP
15 if HAVE_OPENSSL
16
17 bin_PROGRAMS = \
18  gnunet-monkey \
19  gnunet-service-monkey \
20  mail_sender
21
22 noinst_PROGRAMS = \
23  bug_null_pointer_exception 
24
25 gnunet_monkey_SOURCES = \
26  gdbmi.h \
27  gdbmi_alloc.c \
28  gdbmi_breakpoint.c \
29  gdbmi_connect.c \
30  gdbmi_data_man.c \
31  gdbmi_error.c \
32  gdbmi_get_free_pty.c \
33  gdbmi_get_free_vt.c \
34  gdbmi_misc.c \
35  gdbmi_parse.c \
36  gdbmi_prg_control.c \
37  gdbmi_stack_man.c \
38  gdbmi_symbol_query.c \
39  gdbmi_target_man.c \
40  gdbmi_thread.c \
41  gdbmi_var_obj.c \
42  gnunet-monkey.c
43
44 gnunet_monkey_LDADD = \
45   $(top_builddir)/src/util/libgnunetutil.la \
46   $(GN_LIBINTL)
47
48
49 gnunet_service_monkey_SOURCES = \
50  gnunet-service-monkey.c         
51 gnunet_service_monkey_LDADD = \
52   $(top_builddir)/src/util/libgnunetutil.la \
53   $(GN_LIBINTL)
54
55
56 mail_sender_SOURCES = \
57         mail_sender.c
58 mail_sender_LDADD = \
59         $(top_builddir)/src/util/libgnunetutil.la \
60         -lesmtp \
61         $(GN_LIBINTL)
62
63 bug_null_pointer_exception_SOURCES = \
64         bug_null_pointer_exception.c
65 bug_null_pointer_exception_LDADD = \
66         $(top_builddir)/src/util/libgnunetutil.la \
67         $(GN_LIBINTL)
68
69
70 #TESTS = $(check_PROGRAMS) $(check_SCRIPTS)
71
72 check_SCRIPTS = \
73   test_gnunet_monkey.sh
74
75 EXTRA_DIST = \
76   test_gnunet_monkey_data.conf \
77   $(check_SCRIPTS) 
78
79 endif
80 endif
81 endif
82