]> www.fi.muni.cz Git - evince.git/blob - shell/Makefile.am
[build] Port to GDBus completed!
[evince.git] / shell / Makefile.am
1 INCLUDES=                                                       \
2         -DDATADIR=\"$(pkgdatadir)\"                             \
3         -DGNOMEDATADIR=\"$(datadir)\"                           \
4         -I$(top_srcdir)                                         \
5         -I$(top_builddir)                                       \
6         -I$(top_srcdir)/cut-n-paste/zoom-control/               \
7         -I$(top_srcdir)/cut-n-paste/toolbar-editor/             \
8         -I$(top_srcdir)/cut-n-paste/totem-screensaver/          \
9         -I$(top_srcdir)/cut-n-paste/gimpcellrenderertoggle/     \
10         -I$(top_srcdir)/cut-n-paste/smclient/                   \
11         -I$(top_srcdir)/libdocument                             \
12         -I$(top_builddir)/libdocument                           \
13         -I$(top_srcdir)/libview                                 \
14         -I$(top_builddir)/libview                               \
15         -I$(top_srcdir)/libmisc                                 \
16         -I$(top_srcdir)/properties                              \
17         -DGNOMELOCALEDIR=\"$(datadir)/locale\"                  \
18         -DGNOMEICONDIR=\""$(datadir)/pixmaps"\"                 \
19         -DBINDIR=\""$(bindir)"\"                                \
20         -DLIBEXECDIR=\""$(libexecdir)"\"                        \
21         -DEVINCE_COMPILATION                                    \
22         $(SHELL_CFLAGS)                                         \
23         $(WARN_CFLAGS)                                          \
24         $(DISABLE_DEPRECATED)
25
26 bin_PROGRAMS=evince
27
28 libexec_PROGRAMS=evince-convert-metadata
29 if ENABLE_DBUS
30 libexec_PROGRAMS += evinced
31 endif
32
33 evince_SOURCES=                         \
34         eggfindbar.c                    \
35         eggfindbar.h                    \
36         ev-application.c                \
37         ev-application.h                \
38         ev-file-monitor.h               \
39         ev-file-monitor.c               \
40         ev-history.c                    \
41         ev-history.h                    \
42         ev-keyring.h                    \
43         ev-keyring.c                    \
44         ev-marshal.c                    \
45         ev-marshal.h                    \
46         $(DBUS_SOURCES)                 \
47         ev-message-area.c               \
48         ev-message-area.h               \
49         ev-metadata.c                   \
50         ev-metadata.h                   \
51         ev-navigation-action.c          \
52         ev-navigation-action.h          \
53         ev-navigation-action-widget.c   \
54         ev-navigation-action-widget.h   \
55         ev-password-view.h              \
56         ev-password-view.c              \
57         ev-progress-message-area.h      \
58         ev-progress-message-area.c      \
59         ev-properties-dialog.c          \
60         ev-properties-dialog.h          \
61         ev-properties-fonts.c           \
62         ev-properties-fonts.h           \
63         ev-properties-license.c         \
64         ev-properties-license.h         \
65         ev-open-recent-action.c         \
66         ev-open-recent-action.h         \
67         ev-utils.c                      \
68         ev-utils.h                      \
69         ev-window.c                     \
70         ev-window.h                     \
71         ev-window-title.c               \
72         ev-window-title.h               \
73         ev-sidebar.c                    \
74         ev-sidebar.h                    \
75         ev-sidebar-attachments.c        \
76         ev-sidebar-attachments.h        \
77         ev-sidebar-layers.c             \
78         ev-sidebar-layers.h             \
79         ev-sidebar-links.c              \
80         ev-sidebar-links.h              \
81         ev-sidebar-page.c               \
82         ev-sidebar-page.h               \
83         ev-sidebar-thumbnails.c         \
84         ev-sidebar-thumbnails.h         \
85         main.c
86
87 if ENABLE_DBUS
88 evince_SOURCES += \
89         ev-media-player-keys.c \
90         ev-media-player-keys.h
91 endif
92
93
94 evince_LDFLAGS = $(AM_LDFLAGS)
95
96 if PLATFORM_WIN32
97 evince_LDFLAGS += -mwindows
98 endif
99
100 evince_LDADD=                                                                           \
101         $(top_builddir)/cut-n-paste/zoom-control/libephyzoom.la                         \
102         $(top_builddir)/cut-n-paste/toolbar-editor/libtoolbareditor.la                  \
103         $(top_builddir)/cut-n-paste/totem-screensaver/libtotemscrsaver.la               \
104         $(top_builddir)/cut-n-paste/gimpcellrenderertoggle/libgimpcellrenderertoggle.la \
105         $(top_builddir)/cut-n-paste/smclient/libsmclient.la                             \
106         $(top_builddir)/properties/libevproperties.la                                   \
107         $(top_builddir)/libdocument/libevdocument.la                                    \
108         $(top_builddir)/libview/libevview.la                                            \
109         $(top_builddir)/libmisc/libevmisc.la                                            \
110         $(SHELL_LIBS)
111
112 if PLATFORM_WIN32
113 evince_LDADD += evince-icon.o
114
115 evince-icon.o: $(srcdir)/evince-icon.rc $(top_srcdir)/data/evince.ico
116         $(WINDRES) $(srcdir)/evince-icon.rc -I $(top_srcdir)/data evince-icon.o
117 endif
118
119 BUILT_SOURCES = ev-marshal.h ev-marshal.c
120
121 evince_convert_metadata_SOURCES=        \
122         ev-convert-metadata.c
123
124 evince_convert_metadata_LDADD=          \
125         $(SHELL_LIBS)
126
127 if ENABLE_DBUS
128 evinced_SOURCES=                        \
129         ev-daemon.c
130
131 evinced_CFLAGS=                         \
132         -DDATADIR=\"$(pkgdatadir)\"                             \
133         -DGNOMEDATADIR=\"$(datadir)\"                           \
134         -I$(top_srcdir)                                         \
135         -I$(top_builddir)                                       \
136         -DLIBEXECDIR=\""$(libexecdir)"\"                        \
137         -DEVINCE_COMPILATION                                    \
138         $(EV_DAEMON_CFLAGS)                                     \
139         $(WARN_CFLAGS)                                          \
140         $(DISABLE_DEPRECATED)
141
142 evinced_LDADD=                          \
143         $(EV_DAEMON_LIBS)
144 endif
145
146 EXTRA_DIST = ev-marshal.list            \
147         evince-icon.rc
148
149 ev-marshal.h: $(srcdir)/ev-marshal.list
150         $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=ev_marshal $(srcdir)/ev-marshal.list --header > ev-marshal.h
151
152 ev-marshal.c: $(srcdir)/ev-marshal.list
153         echo '#include "ev-marshal.h"' > ev-marshal.c
154         $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=ev_marshal $(srcdir)/ev-marshal.list --body >> ev-marshal.c
155
156 DISTCLEANFILES =
157
158 -include $(top_srcdir)/git.mk