X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2FMakefile.am;h=94488b9844d8a65777f9b64eebd147c00895bb61;hb=1d0de30170119eade2a7305ffa8ec6d9a3e4af32;hp=65d3ffad8eb4fb420a04d0185ef4cfbaf75758e5;hpb=5adc9f2e1a99e29b8a761388e17c08a6e4d79d5d;p=evince.git diff --git a/shell/Makefile.am b/shell/Makefile.am index 65d3ffad..94488b98 100644 --- a/shell/Makefile.am +++ b/shell/Makefile.am @@ -6,9 +6,7 @@ INCLUDES= \ -I$(top_srcdir)/cut-n-paste/zoom-control/ \ -I$(top_srcdir)/cut-n-paste/toolbar-editor/ \ -I$(top_srcdir)/cut-n-paste/totem-screensaver/ \ - -I$(top_srcdir)/cut-n-paste/gedit-message-area/ \ -I$(top_srcdir)/cut-n-paste/gimpcellrenderertoggle/ \ - -I$(top_srcdir)/cut-n-paste/evmountoperation/ \ -I$(top_srcdir)/cut-n-paste/smclient/ \ -I$(top_srcdir)/libdocument \ -I$(top_builddir)/libdocument \ @@ -16,8 +14,9 @@ INCLUDES= \ -I$(top_builddir)/libview \ -I$(top_srcdir)/libmisc \ -I$(top_srcdir)/properties \ - -DGNOMELOCALEDIR=\"$(datadir)/locale\" \ -DGNOMEICONDIR=\""$(datadir)/pixmaps"\" \ + -DBINDIR=\""$(bindir)"\" \ + -DLIBEXECDIR=\""$(libexecdir)"\" \ -DEVINCE_COMPILATION \ $(SHELL_CFLAGS) \ $(WARN_CFLAGS) \ @@ -25,11 +24,9 @@ INCLUDES= \ bin_PROGRAMS=evince -EV_MEDIA_PLAYER_KEYS_SOURCES = ev-media-player-keys.c ev-media-player-keys.h +libexec_PROGRAMS=evince-convert-metadata if ENABLE_DBUS -DBUS_SOURCES = $(EV_MEDIA_PLAYER_KEYS_SOURCES) -else -DBUS_SOURCES = $(null) +libexec_PROGRAMS += evinced endif evince_SOURCES= \ @@ -45,25 +42,24 @@ evince_SOURCES= \ ev-keyring.c \ ev-marshal.c \ ev-marshal.h \ - $(DBUS_SOURCES) \ ev-message-area.c \ ev-message-area.h \ - ev-metadata-manager.c \ - ev-metadata-manager.h \ + ev-metadata.c \ + ev-metadata.h \ ev-navigation-action.c \ ev-navigation-action.h \ ev-navigation-action-widget.c \ ev-navigation-action-widget.h \ ev-password-view.h \ ev-password-view.c \ - ev-print-operation.h \ - ev-print-operation.c \ ev-progress-message-area.h \ ev-progress-message-area.c \ ev-properties-dialog.c \ ev-properties-dialog.h \ ev-properties-fonts.c \ ev-properties-fonts.h \ + ev-properties-license.c \ + ev-properties-license.h \ ev-open-recent-action.c \ ev-open-recent-action.h \ ev-utils.c \ @@ -86,13 +82,24 @@ evince_SOURCES= \ ev-sidebar-thumbnails.h \ main.c +if ENABLE_DBUS +evince_SOURCES += \ + ev-media-player-keys.c \ + ev-media-player-keys.h +endif + + +evince_LDFLAGS = $(AM_LDFLAGS) + +if PLATFORM_WIN32 +evince_LDFLAGS += -mwindows +endif + evince_LDADD= \ $(top_builddir)/cut-n-paste/zoom-control/libephyzoom.la \ $(top_builddir)/cut-n-paste/toolbar-editor/libtoolbareditor.la \ $(top_builddir)/cut-n-paste/totem-screensaver/libtotemscrsaver.la \ - $(top_builddir)/cut-n-paste/gedit-message-area/libgeditmsgarea.la \ $(top_builddir)/cut-n-paste/gimpcellrenderertoggle/libgimpcellrenderertoggle.la \ - $(top_builddir)/cut-n-paste/evmountoperation/libevmountoperation.la \ $(top_builddir)/cut-n-paste/smclient/libsmclient.la \ $(top_builddir)/properties/libevproperties.la \ $(top_builddir)/libdocument/libevdocument.la \ @@ -100,31 +107,50 @@ evince_LDADD= \ $(top_builddir)/libmisc/libevmisc.la \ $(SHELL_LIBS) +if PLATFORM_WIN32 +evince_LDADD += evince-icon.o + +evince-icon.o: $(srcdir)/evince-icon.rc $(top_srcdir)/data/evince.ico + $(WINDRES) $(srcdir)/evince-icon.rc -I $(top_srcdir)/data evince-icon.o +endif + BUILT_SOURCES = ev-marshal.h ev-marshal.c +evince_convert_metadata_SOURCES= \ + ev-convert-metadata.c + +evince_convert_metadata_LDADD= \ + $(SHELL_LIBS) + if ENABLE_DBUS -BUILT_SOURCES += ev-application-service.h +evinced_SOURCES= \ + ev-daemon.c + +evinced_CFLAGS= \ + -DDATADIR=\"$(pkgdatadir)\" \ + -DGNOMEDATADIR=\"$(datadir)\" \ + -I$(top_srcdir) \ + -I$(top_builddir) \ + -DLIBEXECDIR=\""$(libexecdir)"\" \ + -DEVINCE_COMPILATION \ + $(EV_DAEMON_CFLAGS) \ + $(WARN_CFLAGS) \ + $(DISABLE_DEPRECATED) + +evinced_LDADD= \ + $(EV_DAEMON_LIBS) endif EXTRA_DIST = ev-marshal.list \ - ev-application-service.xml \ - $(EV_MEDIA_PLAYER_KEYS_SOURCES) - + evince-icon.rc ev-marshal.h: $(srcdir)/ev-marshal.list - $(GLIB_GENMARSHAL) --prefix=ev_marshal $(srcdir)/ev-marshal.list --header > ev-marshal.h + $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=ev_marshal $(srcdir)/ev-marshal.list --header > ev-marshal.h ev-marshal.c: $(srcdir)/ev-marshal.list echo '#include "ev-marshal.h"' > ev-marshal.c - $(GLIB_GENMARSHAL) --prefix=ev_marshal $(srcdir)/ev-marshal.list --body >> ev-marshal.c + $(AM_V_GEN)$(GLIB_GENMARSHAL) --prefix=ev_marshal $(srcdir)/ev-marshal.list --body >> ev-marshal.c -DISTCLEANFILES= \ - ev-application-service.h +DISTCLEANFILES = -if DBUS_TOOL_NO_PREFIX -ev-application-service.h: $(srcdir)/ev-application-service.xml - dbus-binding-tool --mode=glib-server --output=ev-application-service.h $(srcdir)/ev-application-service.xml -else -ev-application-service.h: $(srcdir)/ev-application-service.xml - dbus-binding-tool --prefix=ev_application --mode=glib-server --output=ev-application-service.h $(srcdir)/ev-application-service.xml -endif +-include $(top_srcdir)/git.mk