]> git.0d.be Git - empathy.git/blob - tests/Makefile.am
Enable extra error CFLAGS in tests/
[empathy.git] / tests / Makefile.am
1 SUBDIRS = xml
2
3 CLEANFILES=
4
5 include $(top_srcdir)/rules/check.mak
6
7 SUPPRESSIONS=valgrind.supp dlopen.supp
8
9 EXTRA_DIST =            \
10         test.manager    \
11         test.profile
12
13 AM_CPPFLAGS =                                           \
14         $(ERROR_CFLAGS)                                 \
15         -I$(top_srcdir)                                 \
16         -DPKGDATADIR=\""$(pkgdatadir)"\"                \
17         $(EMPATHY_CFLAGS)                               \
18         $(WARN_CFLAGS)                                  \
19         $(DISABLE_DEPRECATED)
20
21 LDADD =                                                         \
22         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
23         $(top_builddir)/libempathy/libempathy.la                \
24         $(EMPATHY_LIBS)
25
26 noinst_PROGRAMS =                       \
27         contact-manager                 \
28         empetit                         \
29         test-empathy-account-assistant \
30         test-empathy-presence-chooser   \
31         test-empathy-status-preset-dialog \
32         test-empathy-protocol-chooser
33
34 contact_manager_SOURCES = contact-manager.c
35 empetit_SOURCES = empetit.c
36 test_empathy_presence_chooser_SOURCES = test-empathy-presence-chooser.c
37 test_empathy_status_preset_dialog_SOURCES = test-empathy-status-preset-dialog.c
38 test_empathy_protocol_chooser_SOURCES = test-empathy-protocol-chooser.c
39 test_empathy_account_assistant_SOURCES = test-empathy-account-assistant.c
40
41 test_empathy_account_assistant_CFLAGS = -I$(top_srcdir)/src
42 test_empathy_account_assistant_LDADD =                  \
43         $(top_builddir)/src/empathy-account-assistant.o \
44         $(top_builddir)/src/empathy-import-utils.o      \
45         $(top_builddir)/src/empathy-import-pidgin.o     \
46         $(top_builddir)/src/empathy-import-widget.o     \
47         $(LDADD)
48
49 check_PROGRAMS = check-main
50 TESTS = check-main
51 check_main_SOURCES =                             \
52     check-main.c                                 \
53     check-helpers.c                              \
54     check-helpers.h                              \
55     check-libempathy.h                           \
56     check-empathy-utils.c                        \
57     check-empathy-helpers.h                      \
58     check-empathy-helpers.c                      \
59     check-irc-helper.h                           \
60     check-irc-helper.c                           \
61     check-empathy-irc-server.c                   \
62     check-empathy-irc-network.c                  \
63     check-empathy-irc-network-manager.c          \
64     check-empathy-chatroom.c                     \
65     check-empathy-chatroom-manager.c
66
67 check_c_sources = \
68     $(check_main_SOURCES)
69 include $(top_srcdir)/tools/check-coding-style.mk
70 check-local: check-coding-style
71
72 check_main_LDADD = \
73     @CHECK_LIBS@ \
74     $(top_builddir)/libempathy-gtk/libempathy-gtk.la    \
75     $(top_builddir)/libempathy/libempathy.la            \
76     $(AM_LDFLAGS)
77
78 check_main_CFLAGS = \
79     @CHECK_CFLAGS@ \
80     $(AM_CFLAGS)
81
82 TESTS_ENVIRONMENT = EMPATHY_SRCDIR=@abs_top_srcdir@ \
83                     MC_PROFILE_DIR=@abs_top_srcdir@/tests \
84                     MC_MANAGER_DIR=@abs_top_srcdir@/tests