summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am268
1 files changed, 268 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..1de819f
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,268 @@
+## We require new-style dependency handling.
+AUTOMAKE_OPTIONS = 1.7
+
+NULL =
+
+saverdir = $(libexecdir)/mate-screensaver
+themesdir = $(pkgdatadir)/themes
+
+INCLUDES = \
+ -I. \
+ -I$(srcdir) \
+ -DMATEMENU_I_KNOW_THIS_IS_UNSTABLE \
+ $(MATE_SCREENSAVER_CFLAGS) \
+ $(MATE_SCREENSAVER_DIALOG_CFLAGS) \
+ $(MATE_SCREENSAVER_CAPPLET_CFLAGS) \
+ $(DISABLE_DEPRECATED_CFLAGS) \
+ -DPREFIX=\""$(prefix)"\" \
+ -DBINDIR=\""$(bindir)"\" \
+ -DLIBDIR=\""$(libdir)"\" \
+ -DLIBEXECDIR=\""$(libexecdir)"\" \
+ -DDATADIR=\""$(datadir)"\" \
+ -DSYSCONFDIR=\""$(sysconfdir)"\" \
+ -DMATELOCALEDIR=\""$(datadir)/locale"\" \
+ -DSAVERDIR=\""$(saverdir)"\" \
+ -DTHEMESDIR=\""$(themesdir)"\" \
+ -DGTKBUILDERDIR=\"$(pkgdatadir)\" \
+ -DPAM_SERVICE_NAME=\""mate-screensaver"\" \
+ $(WARN_CFLAGS) \
+ $(AUTH_CFLAGS) \
+ $(DEBUG_CFLAGS) \
+ $(DBUS_CFLAGS) \
+ $(LIBMATEKBDUI_CFLAGS) \
+ $(LIBMATENOTIFY_CFLAGS) \
+ $(NULL)
+
+bin_PROGRAMS = \
+ mate-screensaver \
+ mate-screensaver-command \
+ mate-screensaver-preferences \
+ $(NULL)
+
+libexec_PROGRAMS = \
+ mate-screensaver-dialog \
+ mate-screensaver-gl-helper \
+ $(NULL)
+
+noinst_PROGRAMS = \
+ test-fade \
+ test-passwd \
+ test-watcher \
+ test-window \
+ $(NULL)
+
+desktopdir = $(sysconfdir)/xdg/autostart
+desktop_in_files = mate-screensaver.desktop.in
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+@INTLTOOL_DESKTOP_RULE@
+
+mate_screensaver_command_SOURCES = \
+ mate-screensaver-command.c \
+ $(NULL)
+
+mate_screensaver_command_LDADD = \
+ $(MATE_SCREENSAVER_COMMAND_LIBS) \
+ $(NULL)
+
+AUTH_SOURCES = \
+ gs-auth.h \
+ gs-auth-@[email protected] \
+ $(NULL)
+
+test_fade_SOURCES = \
+ test-fade.c \
+ gs-fade.c \
+ gs-fade.h \
+ gs-debug.c \
+ gs-debug.h \
+ $(NULL)
+
+test_fade_LDADD = \
+ $(MATE_SCREENSAVER_LIBS) \
+ $(SAVER_LIBS) \
+ $(NULL)
+
+test_passwd_SOURCES = \
+ test-passwd.c \
+ $(AUTH_SOURCES) \
+ setuid.c \
+ setuid.h \
+ subprocs.c \
+ subprocs.h \
+ $(NULL)
+
+test_passwd_LDADD = \
+ $(MATE_SCREENSAVER_DIALOG_LIBS)\
+ $(AUTH_LIBS) \
+ $(NULL)
+
+test_watcher_SOURCES = \
+ test-watcher.c \
+ gs-watcher.h \
+ gs-watcher-x11.c \
+ gs-marshal.c \
+ gs-marshal.h \
+ gs-debug.c \
+ gs-debug.h \
+ $(NULL)
+
+test_watcher_LDADD = \
+ $(MATE_SCREENSAVER_LIBS) \
+ $(SAVER_LIBS) \
+ $(NULL)
+
+test_window_SOURCES = \
+ test-window.c \
+ gs-window.h \
+ gs-window-x11.c \
+ gs-grab-x11.c \
+ gs-grab.h \
+ gs-marshal.c \
+ gs-marshal.h \
+ gs-debug.c \
+ gs-debug.h \
+ subprocs.c \
+ subprocs.h \
+ $(NULL)
+
+test_window_LDADD = \
+ $(MATE_SCREENSAVER_LIBS) \
+ $(SAVER_LIBS) \
+ $(NULL)
+
+mate_screensaver_dialog_SOURCES = \
+ mate-screensaver-dialog.c \
+ gs-lock-plug.c \
+ gs-lock-plug.h \
+ gs-debug.c \
+ gs-debug.h \
+ setuid.c \
+ setuid.h \
+ subprocs.c \
+ subprocs.h \
+ $(AUTH_SOURCES) \
+ $(NULL)
+
+EXTRA_mate_screensaver_dialog_SOURCES = \
+ gs-auth-pam.c \
+ gs-auth-helper.c \
+ gs-auth-pwent.c \
+ $(NULL)
+
+mate_screensaver_dialog_LDADD = \
+ $(MATE_SCREENSAVER_DIALOG_LIBS)\
+ $(SAVER_LIBS) \
+ $(AUTH_LIBS) \
+ $(LIBMATEKBDUI_LIBS) \
+ $(LIBMATENOTIFY_LIBS) \
+ $(NULL)
+
+BUILT_SOURCES = \
+ gs-marshal.c \
+ gs-marshal.h \
+ $(NULL)
+
+gs-marshal.c: gs-marshal.list
+ echo "#include \"gs-marshal.h\"" > $@ && \
+ @GLIB_GENMARSHAL@ $< --prefix=gs_marshal --body >> $@
+
+gs-marshal.h: gs-marshal.list
+ @GLIB_GENMARSHAL@ $< --prefix=gs_marshal --header > $@
+
+mate_screensaver_SOURCES = \
+ mate-screensaver.c \
+ mate-screensaver.h \
+ gs-monitor.c \
+ gs-monitor.h \
+ gs-watcher-x11.c \
+ gs-watcher.h \
+ gs-listener-dbus.c \
+ gs-listener-dbus.h \
+ gs-manager.c \
+ gs-manager.h \
+ gs-window-x11.c \
+ gs-window.h \
+ gs-prefs.c \
+ gs-prefs.h \
+ gs-theme-manager.c \
+ gs-theme-manager.h \
+ gs-job.c \
+ gs-job.h \
+ gs-debug.c \
+ gs-debug.h \
+ subprocs.c \
+ subprocs.h \
+ gs-grab-x11.c \
+ gs-grab.h \
+ gs-fade.c \
+ gs-fade.h \
+ $(BUILT_SOURCES) \
+ $(NULL)
+
+mate_screensaver_gl_helper_LDADD = \
+ $(MATE_SCREENSAVER_LIBS) \
+ $(GL_LIBS) \
+ $(NULL)
+
+mate_screensaver_gl_helper_SOURCES = \
+ mate-screensaver-gl-helper.c \
+ gs-visual-gl.c \
+ gs-visual-gl.h \
+ $(NULL)
+
+mate_screensaver_LDADD = \
+ $(MATE_SCREENSAVER_LIBS) \
+ $(SAVER_LIBS) \
+ $(NULL)
+
+mate_screensaver_LDFLAGS = -export-dynamic
+
+mate_screensaver_preferences_SOURCES = \
+ mate-screensaver-preferences.c \
+ copy-theme-dialog.c \
+ copy-theme-dialog.h \
+ gs-theme-manager.c \
+ gs-theme-manager.h \
+ gs-job.c \
+ gs-job.h \
+ gs-debug.c \
+ gs-debug.h \
+ subprocs.c \
+ subprocs.h \
+ $(NULL)
+
+mate_screensaver_preferences_LDADD = \
+ $(MATE_SCREENSAVER_CAPPLET_LIBS) \
+ $(NULL)
+
+EXTRA_DIST = \
+ debug-screensaver.sh \
+ gs-marshal.list \
+ mate-screensaver.desktop.in \
+ $(NULL)
+
+CLEANFILES = \
+ $(desktop_DATA) \
+ mate-screensaver.desktop.in \
+ $(BUILT_SOURCES)
+
+MAINTAINERCLEANFILES = \
+ *~ \
+ Makefile.in
+
+install-exec-hook:
+ @if [ "x@NEED_SETUID@" = "xyes" ]; then \
+ echo "***" ; \
+ echo "*** Warning: mate-screensaver has been compiled with support for" ; \
+ echo "*** shadow passwords. If your system actually uses shadow" ; \
+ echo "*** passwords then it must be installed as a setuid root" ; \
+ echo "*** program in order for locking to work. To do this, you" ; \
+ echo "*** must run:" ; \
+ echo "***" ; \
+ echo "*** chown root $(DESTDIR)$(libexecdir)/mate-screensaver-dialog" ; \
+ echo "*** chmod +s $(DESTDIR)$(libexecdir)/mate-screensaver-dialog" ; \
+ echo "***" ; \
+ echo "*** For now, it will be installed non-setuid, which" ; \
+ echo "*** means that locking might not work." ; \
+ echo "***" ; \
+ fi