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