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