]> git.0d.be Git - empathy.git/blob - src/Makefile.am
Add empathy-debug-dialog to POTFILES.in.
[empathy.git] / src / Makefile.am
1 AM_CPPFLAGS =                                           \
2         -I$(top_srcdir)                                 \
3         $(EMPATHY_CFLAGS)                               \
4         $(LIBNOTIFY_CFLAGS)                             \
5         $(WARN_CFLAGS)                                  \
6         $(DISABLE_DEPRECATED)
7
8 LDADD =                                                         \
9         $(top_builddir)/libempathy-gtk/libempathy-gtk.la        \
10         $(top_builddir)/libempathy/libempathy.la                \
11         $(top_builddir)/extensions/libemp-extensions.la         \
12         $(LIBNOTIFY_LIBS)                                       \
13         $(EMPATHY_LIBS)
14
15 bin_PROGRAMS =                  \
16         empathy                 \
17         empathy-logs
18
19 BUILT_SOURCES= \
20         empathy-tube-dispatch-enumtypes.h \
21         empathy-tube-dispatch-enumtypes.c
22
23 empathy_SOURCES =                                                       \
24         bacon-message-connection.c bacon-message-connection.h           \
25         empathy.c                                                       \
26         empathy-about-dialog.c empathy-about-dialog.h                   \
27         empathy-accounts-dialog.c empathy-accounts-dialog.h             \
28         empathy-call-window.c empathy-call-window.h                     \
29         empathy-chatrooms-window.c empathy-chatrooms-window.h           \
30         empathy-debug-dialog.c empathy-debug-dialog.h                   \
31         empathy-chat-window.c empathy-chat-window.h                     \
32         empathy-event-manager.c empathy-event-manager.h                 \
33         empathy-ft-manager.c empathy-ft-manager.h                       \
34         empathy-import-dialog.c empathy-import-dialog.h                 \
35         empathy-import-pidgin.c empathy-import-pidgin.h                 \
36         empathy-main-window.c empathy-main-window.h                     \
37         empathy-misc.c empathy-misc.h                                   \
38         empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h     \
39         empathy-preferences.c empathy-preferences.h                     \
40         empathy-sidebar.c empathy-sidebar.h                     \
41         empathy-status-icon.c empathy-status-icon.h                     \
42         empathy-tube-dispatch.c empathy-tube-dispatch.h                 \
43         ephy-spinner.c ephy-spinner.h
44
45 nodist_empathy_SOURCES = $(BUILT_SOURCES)
46
47 empathy_logs_SOURCES = empathy-logs.c
48
49 uidir = $(datadir)/empathy
50 ui_DATA =                                       \
51         empathy-accounts-dialog.ui              \
52         empathy-call-window.ui                  \
53         empathy-chatrooms-window.ui             \
54         empathy-chat-window.ui                  \
55         empathy-ft-manager.ui                   \
56         empathy-import-dialog.ui                \
57         empathy-main-window.ui                  \
58         empathy-new-chatroom-dialog.ui          \
59         empathy-preferences.ui                  \
60         empathy-status-icon.ui
61
62 dist_man_MANS =                 \
63         empathy.1
64
65 # rules for making the glib enum objects
66 %-enumtypes.h: %.h Makefile.in
67         glib-mkenums \
68         --fhead "#ifndef __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n#define __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
69         --fprod "/* enumerations from \"@filename@\" */\n" \
70         --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
71         --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
72         $< > $@
73
74 %-enumtypes.c: %.h Makefile.in
75         glib-mkenums \
76         --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
77         --fprod "\n/* enumerations from \"@filename@\" */" \
78         --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {"     \
79         --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
80         --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
81         $< > $@
82
83 EXTRA_DIST =                    \
84         $(autostart_DATA)       \
85         $(ui_DATA)
86
87 CLEANFILES = $(BUILT_SOURCES)
88