1 include $(top_srcdir)/tools/shave.mk
2 include $(top_srcdir)/tools/flymake.mk
8 $(LIBCHAMPLAIN_CFLAGS) \
9 $(DISABLE_DEPRECATED) \
14 $(top_builddir)/libempathy-gtk/libempathy-gtk.la \
15 $(top_builddir)/libempathy/libempathy.la \
16 $(top_builddir)/extensions/libemp-extensions.la \
19 $(LIBCHAMPLAIN_LIBS) \
27 empathy-tube-dispatch-enumtypes.h \
28 empathy-tube-dispatch-enumtypes.c
30 empathy_handwritten_source = \
32 empathy-about-dialog.c empathy-about-dialog.h \
33 empathy-accounts-dialog.c empathy-accounts-dialog.h \
34 empathy-call-window.c empathy-call-window.h \
35 empathy-call-window-fullscreen.c empathy-call-window-fullscreen.h \
36 empathy-chatrooms-window.c empathy-chatrooms-window.h \
37 empathy-debug-dialog.c empathy-debug-dialog.h \
38 empathy-chat-window.c empathy-chat-window.h \
39 empathy-event-manager.c empathy-event-manager.h \
40 empathy-ft-manager.c empathy-ft-manager.h \
41 empathy-import-dialog.c empathy-import-dialog.h \
42 empathy-import-pidgin.c empathy-import-pidgin.h \
43 empathy-main-window.c empathy-main-window.h \
44 empathy-misc.c empathy-misc.h \
45 empathy-new-chatroom-dialog.c empathy-new-chatroom-dialog.h \
46 empathy-preferences.c empathy-preferences.h \
47 empathy-sidebar.c empathy-sidebar.h \
48 empathy-status-icon.c empathy-status-icon.h \
49 empathy-tube-dispatch.c empathy-tube-dispatch.h
52 $(empathy_handwritten_source) \
53 bacon-message-connection.c bacon-message-connection.h \
54 ephy-spinner.c ephy-spinner.h
56 nodist_empathy_SOURCES = $(BUILT_SOURCES)
58 empathy_logs_SOURCES = empathy-logs.c
61 $(empathy_handwritten_source) \
62 $(empathy_logs_SOURCES)
63 include $(top_srcdir)/tools/check-coding-style.mk
64 check-local: check-coding-style
66 uidir = $(datadir)/empathy
68 empathy-accounts-dialog.ui \
69 empathy-call-window.ui \
70 empathy-call-window-fullscreen.ui \
71 empathy-chatrooms-window.ui \
72 empathy-chat-window.ui \
73 empathy-ft-manager.ui \
74 empathy-import-dialog.ui \
75 empathy-main-window.ui \
76 empathy-new-chatroom-dialog.ui \
77 empathy-preferences.ui \
78 empathy-status-icon.ui
85 empathy_handwritten_source += \
101 # rules for making the glib enum objects
102 %-enumtypes.h: %.h Makefile.in
103 $(QUIET_GEN)glib-mkenums \
104 --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" \
105 --fprod "/* enumerations from \"@filename@\" */\n" \
106 --vhead "GType @enum_name@_get_type (void);\n#define $(shell echo $* | tr [:lower:]- [:upper:]_ | sed 's/_.*//')_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
107 --ftail "G_END_DECLS\n\n#endif /* __$(shell echo $* | tr [:lower:]- [:upper:]_)_ENUM_TYPES_H__ */" \
110 %-enumtypes.c: %.h Makefile.in
111 $(QUIET_GEN)glib-mkenums \
112 --fhead "#include <$*.h>\n#include <$*-enumtypes.h>" \
113 --fprod "\n/* enumerations from \"@filename@\" */" \
114 --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[] = {" \
115 --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
116 --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \
119 CLEANFILES = $(BUILT_SOURCES)