Makefile.am 6.92 KB
Newer Older
1
EXTRA_DIST = gnome-session.in
2
NULL =
3 4
bin_SCRIPTS = gnome-session
libexec_PROGRAMS = gnome-session-binary gnome-session-failed
5
noinst_LTLIBRARIES = libgsmutil.la
6
noinst_PROGRAMS = 		\
7
	test-client-dbus	\
8 9
	test-inhibit		\
	test-process-helper
10

11
AM_CPPFLAGS =					\
12
	$(GTK3_CFLAGS)				\
13
	$(GNOME_SESSION_CFLAGS)			\
Colin Walters's avatar
Colin Walters committed
14
	$(UPOWER_CFLAGS)			\
15
	$(DISABLE_DEPRECATED_CFLAGS)
16

17
AM_CFLAGS = $(WARN_CFLAGS)
18

19 20 21 22 23
gnome-session: gnome-session.in Makefile
	$(AM_V_GEN) sed \
		-e "s|\@libexecdir\@|$(libexecdir)|" \
                $< > $@.tmp && mv $@.tmp $@

24
gnome_session_binary_SOURCES =			\
25
	$(BUILT_SOURCES)			\
26 27
	gsm-app.h				\
	gsm-app.c				\
28 29 30 31
	gsm-autostart-app.h			\
	gsm-autostart-app.c			\
	gsm-client.c				\
	gsm-client.h				\
32 33 34 35
	gsm-xsmp-client.h			\
	gsm-xsmp-client.c			\
	gsm-dbus-client.h			\
	gsm-dbus-client.c			\
36 37
	gsm-fail-whale.h			\
	gsm-fail-whale.c			\
38 39
	gsm-system.h				\
	gsm-system.c				\
40 41
	gsm-systemd.h				\
	gsm-systemd.c				\
William Jon McCann's avatar
William Jon McCann committed
42
	gsm-presence.h				\
43
	gsm-presence-flag.h			\
William Jon McCann's avatar
William Jon McCann committed
44
	gsm-presence.c				\
45 46
	gdm-log.h				\
	gdm-log.c				\
47
	main.c					\
48 49
	gsm-store.h				\
	gsm-store.c				\
50 51
	gsm-inhibitor.h				\
	gsm-inhibitor.c				\
52
	gsm-inhibitor-flag.h			\
53 54
	gsm-manager.c				\
	gsm-manager.h				\
55
	gsm-manager-logout-mode.h		\
56 57
	gsm-process-helper.c			\
	gsm-process-helper.h			\
58 59
	gsm-session-fill.c			\
	gsm-session-fill.h			\
60 61
	gsm-session-save.c			\
	gsm-session-save.h			\
62 63
	gsm-shell-extensions.c			\
	gsm-shell-extensions.h			\
64 65
	gsm-shell.c				\
	gsm-shell.h				\
66
	gsm-xsmp-server.c			\
67
	gsm-xsmp-server.h
68

69
if HAVE_CONSOLEKIT
70
gnome_session_binary_SOURCES += gsm-consolekit.c gsm-consolekit.h
71 72 73
else
EXTRA_DIST += gsm-consolekit.c gsm-consolekit.h
endif
Colin Walters's avatar
Colin Walters committed
74

75
gnome_session_binary_CPPFLAGS =			\
76
	$(AM_CPPFLAGS)				\
77
	$(X11_CFLAGS)				\
78 79 80 81
	$(SM_CFLAGS)				\
	$(ICE_CFLAGS)				\
	$(XEXT_CFLAGS)				\
	$(GCONF_CFLAGS)				\
82
	$(CONSOLEKIT_CFLAGS)			\
83
	$(SYSTEMD_CFLAGS)			\
84
	$(GIOUNIX_CFLAGS)			\
85 86
	-DLOCALE_DIR=\""$(datadir)/locale"\"	\
	-DDATA_DIR=\""$(datadir)/gnome-session"\" \
87
        -DLIBEXECDIR=\"$(libexecdir)\"		\
88 89
	-DGTKBUILDER_DIR=\""$(pkgdatadir)"\"	\
	-DGCONF_SANITY_CHECK=\""$(GCONF_SANITY_CHECK)"\" \
90
	-DGCONFTOOL_CMD=\"$(GCONFTOOL)\"
91

92
gnome_session_binary_LDADD =			\
93
	libgsmutil.la 				\
94
	$(X11_LIBS)				\
95 96 97 98 99 100
	$(SM_LIBS)				\
	$(ICE_LIBS)				\
	$(XRENDER_LIBS)				\
	$(XTEST_LIBS)				\
	$(XEXT_LIBS)				\
	$(GNOME_SESSION_LIBS)			\
Colin Walters's avatar
Colin Walters committed
101
	$(UPOWER_LIBS)				\
102
	$(GCONF_LIBS)				\
103
	$(CONSOLEKIT_LIBS)			\
104
	$(SYSTEMD_LIBS)				\
105
	$(GIOUNIX_LIBS)				\
106
	$(EXECINFO_LIBS)
107 108

libgsmutil_la_SOURCES =				\
109 110
	gsm-util.c				\
	gsm-util.h
111

112 113 114
libgsmutil_la_CPPFLAGS =                       \
       $(AM_CPPFLAGS)

115
libgsmutil_la_LIBADD = 				\
116 117
	$(GNOME_SESSION_LIBS)			\
	$(NULL)
118

119 120 121 122 123 124 125 126 127 128 129 130
gnome_session_failed_SOURCES =         \
       gsm-fail-whale-dialog.c \
       gsm-fail-whale-dialog.h \
       gsm-icon-names.h

gnome_session_failed_CPPFLAGS = \
       $(GTK3_CFLAGS)          \
       -DLOCALE_DIR=\""$(datadir)/locale"\"

gnome_session_failed_LDADD =   \
       $(GTK3_LIBS)

131
test_inhibit_SOURCES = test-inhibit.c
132
test_inhibit_LDADD = $(GTK3_LIBS) $(GNOME_SESSION_LIBS)
133 134

test_client_dbus_SOURCES = test-client-dbus.c
Cosimo Cecchi's avatar
Cosimo Cecchi committed
135
test_client_dbus_LDADD = $(GIO_LIBS)
136

137
test_process_helper_SOURCES = test-process-helper.c gsm-process-helper.c gsm-process-helper.h
138 139
test_process_helper_CFLAGS = $(AM_CFLAGS) $(GIO_CFLAGS)
test_process_helper_LDADD = $(GIO_LIBS)
140

141 142 143 144 145 146 147 148
org.gnome.SessionManager.h: org.gnome.SessionManager.xml Makefile.am
	$(AM_V_GEN) gdbus-codegen --interface-prefix org.gnome.SessionManager. \
	--generate-c-code org.gnome.SessionManager \
	--c-namespace Gsm \
        --annotate "org.gnome.SessionManager" "org.gtk.GDBus.C.Name" ExportedManager \
	$(srcdir)/org.gnome.SessionManager.xml
org.gnome.SessionManager.c: org.gnome.SessionManager.h
	@: # generated as a side-effect
149

150 151 152 153 154 155 156 157
org.gnome.SessionManager.Client.h: org.gnome.SessionManager.Client.xml Makefile.am
	$(AM_V_GEN) gdbus-codegen --interface-prefix org.gnome.SessionManager.Client. \
	--generate-c-code org.gnome.SessionManager.Client \
	--c-namespace Gsm \
        --annotate "org.gnome.SessionManager.Client" "org.gtk.GDBus.C.Name" ExportedClient \
	$(srcdir)/org.gnome.SessionManager.Client.xml
org.gnome.SessionManager.Client.c: org.gnome.SessionManager.Client.h
	@: # generated as a side-effect
158

159 160 161 162 163 164 165 166 167
org.gnome.SessionManager.ClientPrivate.h: org.gnome.SessionManager.ClientPrivate.xml Makefile.am
	$(AM_V_GEN) gdbus-codegen --interface-prefix org.gnome.SessionManager.ClientPrivate. \
	--generate-c-code org.gnome.SessionManager.ClientPrivate \
	--c-namespace Gsm \
        --annotate "org.gnome.SessionManager.ClientPrivate" "org.gtk.GDBus.C.Name" ExportedClientPrivate \
	$(srcdir)/org.gnome.SessionManager.ClientPrivate.xml
org.gnome.SessionManager.ClientPrivate.c: org.gnome.SessionManager.ClientPrivate.h
	@: # generated as a side-effect

Cosimo Cecchi's avatar
Cosimo Cecchi committed
168 169 170 171 172 173 174 175
org.gnome.SessionManager.App.h: org.gnome.SessionManager.App.xml Makefile.am
	$(AM_V_GEN) gdbus-codegen --interface-prefix org.gnome.SessionManager.App. \
	--generate-c-code org.gnome.SessionManager.App \
	--c-namespace Gsm \
        --annotate "org.gnome.SessionManager.App" "org.gtk.GDBus.C.Name" ExportedApp \
	$(srcdir)/org.gnome.SessionManager.App.xml
org.gnome.SessionManager.App.c: org.gnome.SessionManager.App.h
	@: # generated as a side-effect
176

177 178 179 180 181 182 183 184
org.gnome.SessionManager.Inhibitor.h: org.gnome.SessionManager.Inhibitor.xml Makefile.am
	$(AM_V_GEN) gdbus-codegen --interface-prefix org.gnome.SessionManager.Inhibitor. \
	--generate-c-code org.gnome.SessionManager.Inhibitor \
	--c-namespace Gsm \
        --annotate "org.gnome.SessionManager.Inhibitor" "org.gtk.GDBus.C.Name" ExportedInhibitor \
	$(srcdir)/org.gnome.SessionManager.Inhibitor.xml
org.gnome.SessionManager.Inhibitor.c: org.gnome.SessionManager.Inhibitor.h
	@: # generated as a side-effect
185

186 187 188 189 190 191 192 193 194 195 196 197 198 199
org.gnome.SessionManager.Presence.h: org.gnome.SessionManager.Presence.xml Makefile.am
	$(AM_V_GEN) gdbus-codegen --interface-prefix org.gnome.SessionManager.Presence. \
	--generate-c-code org.gnome.SessionManager.Presence \
	--c-namespace Gsm \
        --annotate "org.gnome.SessionManager.Presence" "org.gtk.GDBus.C.Name" ExportedPresence \
	$(srcdir)/org.gnome.SessionManager.Presence.xml
org.gnome.SessionManager.Presence.c: org.gnome.SessionManager.Presence.h
	@: # generated as a side-effect

BUILT_SOURCES =				\
	org.gnome.SessionManager.App.h		\
	org.gnome.SessionManager.App.c		\
	org.gnome.SessionManager.Client.h		\
	org.gnome.SessionManager.Client.c		\
200 201
	org.gnome.SessionManager.ClientPrivate.h	\
	org.gnome.SessionManager.ClientPrivate.c	\
202 203
	org.gnome.SessionManager.Inhibitor.h	\
	org.gnome.SessionManager.Inhibitor.c	\
204 205 206 207
	org.gnome.SessionManager.h		\
	org.gnome.SessionManager.c		\
	org.gnome.SessionManager.Presence.h	\
	org.gnome.SessionManager.Presence.c
208

209
EXTRA_DIST +=						\
210 211
	README						\
	org.gnome.SessionManager.xml			\
212
	org.gnome.SessionManager.App.xml		\
213 214 215
	org.gnome.SessionManager.Client.xml		\
	org.gnome.SessionManager.ClientPrivate.xml	\
	org.gnome.SessionManager.Inhibitor.xml		\
216
	org.gnome.SessionManager.Presence.xml
217

218
CLEANFILES =	\
219 220
	gnome-session \
	gnome-session.tmp \
221
	$(BUILT_SOURCES)
222 223

-include $(top_srcdir)/git.mk