not a test
[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
18 lib_LTLIBRARIES = libmonkeyedb.la \
19                                   libmonkeyaction.la
20
21 libmonkeyedb_la_SOURCES = \
22   edb_api.c \
23   gnunet_monkey_edb.h
24   
25 libmonkeyedb_la_LIBADD = \
26   $(top_builddir)/src/util/libgnunetutil.la \
27   -lsqlite3 \
28   $(GN_LIBINTL) $(XLIB)  
29   
30 libmonkeyaction_la_SOURCES = \
31   action_api.c \
32   gnunet_monkey_action.h
33
34 libmonkeyaction_la_LIBADD = \
35   $(top_builddir)/src/util/libgnunetutil.la \
36   $(GN_LIBINTL) $(XLIB)  
37
38   
39 bin_PROGRAMS = \
40  gnunet-monkey \
41  gnunet-service-monkey 
42
43 noinst_PROGRAMS = \
44  bug_null_pointer_exception 
45
46 gnunet_monkey_SOURCES = \
47  gdbmi.h \
48  gdbmi_alloc.c \
49  gdbmi_breakpoint.c \
50  gdbmi_connect.c \
51  gdbmi_data_man.c \
52  gdbmi_error.c \
53  gdbmi_get_free_pty.c \
54  gdbmi_get_free_vt.c \
55  gdbmi_misc.c \
56  gdbmi_parse.c \
57  gdbmi_prg_control.c \
58  gdbmi_stack_man.c \
59  gdbmi_symbol_query.c \
60  gdbmi_target_man.c \
61  gdbmi_thread.c \
62  gdbmi_var_obj.c \
63  gnunet-monkey.c \
64  mail_sender.c
65
66 gnunet_monkey_LDADD = \
67   $(top_builddir)/src/util/libgnunetutil.la \
68   $(top_builddir)/src/monkey/libmonkeyedb.la \
69   $(top_builddir)/src/monkey/libmonkeyaction.la \
70   -lesmtp \
71   $(GN_LIBINTL)
72
73
74 gnunet_service_monkey_SOURCES = \
75  gnunet-service-monkey.c         
76 gnunet_service_monkey_LDADD = \
77   $(top_builddir)/src/util/libgnunetutil.la \
78   $(GN_LIBINTL)
79
80
81 bug_null_pointer_exception:
82         gcc -g -O0 -o bug_null_pointer_exception bug_null_pointer_exception.c
83         
84 check_PROGRAMS = \
85     test_monkey_edb
86     #test_gnunet_monkey 
87
88 if !DISABLE_TEST_RUN
89 # TESTS = $(check_SCRIPTS)
90 TESTS = $(check_PROGRAMS)
91 endif
92
93 test_monkey_edb_SOURCES = \
94   test_monkey_edb.c
95 test_monkey_edb_LDADD = \
96   $(top_builddir)/src/util/libgnunetutil.la \
97   $(top_builddir)/src/monkey/libmonkeyedb.la
98   
99 #test_gnunet_monkey_SOURCES = \
100  #test_gnunet_monkey.c
101 #test_gnunet_monkey_LDADD = \
102   #$(top_builddir)/src/arm/libgnunetarm.la \
103   #$(top_builddir)/src/util/libgnunetutil.la  
104   
105   
106 check_SCRIPTS = \
107   #test_gnunet_monkey.sh \
108   #test_monkey_npe.sh
109
110 #EXTRA_DIST = \
111 #$(check_SCRIPTS) 
112 #test_gnunet_monkey_data.conf 
113
114 endif
115 endif
116 endif