Makefile.am 7.44 KB
Newer Older
1
NULL =
Martin Peterson's avatar
Martin Peterson committed
2

3
AM_CPPFLAGS = \
4 5
	-I.						\
	-I..						\
6
	-I$(top_srcdir)/common				\
7
	-I$(top_srcdir)/pam-extensions			\
8
	-I$(top_builddir)/common			\
9 10 11
	-DBINDIR=\"$(bindir)\"				\
	-DDATADIR=\"$(datadir)\"			\
	-DDMCONFDIR=\"$(dmconfdir)\"			\
12
	-DGDMCONFDIR=\"$(gdmconfdir)\"			\
13 14
	-DLIBDIR=\"$(libdir)\"				\
	-DLIBEXECDIR=\"$(libexecdir)\"			\
15
	-DLOCALSTATEDIR=\"$(localstatedir)\"		\
16 17
	-DLOGDIR=\"$(logdir)\"				\
	-DSBINDIR=\"$(sbindir)\"			\
18
	-DGNOMELOCALEDIR=\""$(datadir)/locale"\"	\
19
	-DGDM_RUN_DIR=\"$(GDM_RUN_DIR)\"		\
Ray Strode's avatar
Ray Strode committed
20
	-DGDM_XAUTH_DIR=\"$(GDM_XAUTH_DIR)\"		\
21
	-DGDM_SCREENSHOT_DIR=\"$(GDM_SCREENSHOT_DIR)\"		\
22
	-DGDM_CACHE_DIR=\""$(localstatedir)/cache/gdm"\"	\
23
	-DGDM_SESSION_DEFAULT_PATH=\"$(GDM_SESSION_DEFAULT_PATH)\" \
24
	$(DISABLE_DEPRECATED_CFLAGS)			\
25
	$(DAEMON_CFLAGS)				\
26
	$(XLIB_CFLAGS)					\
27 28
	$(WARN_CFLAGS)					\
	$(DEBUG_CFLAGS)					\
29
	$(SYSTEMD_CFLAGS)				\
30
	$(JOURNALD_CFLAGS)				\
31
	$(LIBSELINUX_CFLAGS)	 			\
32
	-DLANG_CONFIG_FILE=\"$(LANG_CONFIG_FILE)\"	\
33
	$(NULL)
34

35 36
BUILT_SOURCES =					\
	gdm-display-glue.h			\
37
	gdm-manager-glue.h			\
38
	gdm-local-display-glue.h		\
39
	gdm-local-display-factory-glue.h	\
40
	gdm-session-glue.h			\
41
	gdm-session-worker-glue.h		\
42
	gdm-session-enum-types.h		\
43
	$(NULL)
Martin Peterson's avatar
Martin Peterson committed
44

45 46 47 48 49 50
gdm-session-enum-types.h: gdm-session-enum-types.h.in gdm-session.h
	$(AM_V_GEN) glib-mkenums --template $^ > $@

gdm-session-enum-types.c: gdm-session-enum-types.c.in gdm-session.h
	$(AM_V_GEN) glib-mkenums --template $^ > $@

51 52 53 54 55 56 57
gdm-display-glue.c gdm-display-glue.h: gdm-display.xml Makefile.am
	$(AM_V_GEN)gdbus-codegen 					\
		--c-namespace=GdmDBus					\
		--interface-prefix=org.gnome.DisplayManager		\
		--generate-c-code=gdm-display-glue			\
		$(srcdir)/gdm-display.xml

58
gdm-local-display-glue.c gdm-local-display-glue.h: gdm-local-display.xml Makefile.am
59 60 61
	$(AM_V_GEN)gdbus-codegen 					\
		--c-namespace=GdmDBus					\
		--interface-prefix=org.gnome.DisplayManager		\
62 63
		--generate-c-code=gdm-local-display-glue		\
		$(srcdir)/gdm-local-display.xml
64 65 66 67 68 69 70

gdm-local-display-factory-glue.c gdm-local-display-factory-glue.h : gdm-local-display-factory.xml Makefile.am
	$(AM_V_GEN)gdbus-codegen 					\
		--c-namespace=GdmDBus					\
		--interface-prefix=org.gnome.DisplayManager		\
		--generate-c-code=gdm-local-display-factory-glue	\
		$(srcdir)/gdm-local-display-factory.xml
71

72
gdm-manager-glue.c gdm-manager-glue.h : gdm-manager.xml Makefile.am
73 74 75
	$(AM_V_GEN)gdbus-codegen 					\
		--c-namespace=GdmDBus					\
		--interface-prefix=org.gnome.DisplayManager		\
76 77
		--generate-c-code=gdm-manager-glue			\
		$(srcdir)/gdm-manager.xml
78

79
gdm-session-glue.c gdm-session-glue.h : gdm-session.xml Makefile.am
80 81 82
	$(AM_V_GEN)gdbus-codegen 					\
		--c-namespace=GdmDBus					\
		--interface-prefix=org.gnome.DisplayManager		\
83 84
		--generate-c-code=gdm-session-glue			\
		$(srcdir)/gdm-session.xml
85

86 87 88 89 90 91 92
gdm-session-worker-glue.c gdm-session-worker-glue.h : gdm-session-worker.xml Makefile.am
	$(AM_V_GEN)gdbus-codegen 					\
		--c-namespace=GdmDBus					\
		--interface-prefix=org.gnome.DisplayManager		\
		--generate-c-code=gdm-session-worker-glue		\
		$(srcdir)/gdm-session-worker.xml

93
noinst_PROGRAMS = 		\
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
	test-session-client	\
	$(NULL)

test_session_client_SOURCES = \
	test-session-client.c	\
	$(NULL)

nodist_test_session_client_SOURCES =	\
	gdm-session-glue.h		\
	gdm-session-glue.c		\
	gdm-manager-glue.h		\
	gdm-manager-glue.c		\
	$(NULL)

test_session_client_LDADD =	\
	$(DAEMON_LIBS)		\
110 111
	$(NULL)

112
libexec_PROGRAMS = 			\
113
	gdm-session-worker		\
114
	gdm-wayland-session		\
115
	gdm-x-session			\
116 117
	$(NULL)

118 119
gdm_session_worker_SOURCES = 			\
	session-worker-main.c 			\
120 121
	gdm-session.c				\
	gdm-session.h				\
122 123
	gdm-session-settings.h			\
	gdm-session-settings.c			\
124 125
	gdm-session-auditor.h			\
	gdm-session-auditor.c			\
126 127
	gdm-session-record.c			\
	gdm-session-record.h			\
Richard Hughes's avatar
Richard Hughes committed
128
	gdm-session-worker.h			\
129
	gdm-session-worker.c			\
130
	gdm-session-worker-job.c		\
131 132
	gdm-session-worker-common.c		\
	gdm-session-worker-common.h		\
133 134
	gdm-dbus-util.c				\
	gdm-dbus-util.h				\
135 136
	$(NULL)

137 138 139 140
if SUPPORTS_PAM_EXTENSIONS
gdm_session_worker_SOURCES += $(top_srcdir)/pam-extensions/gdm-pam-extensions.h
endif

141 142 143
nodist_gdm_session_worker_SOURCES =		\
	gdm-session-glue.h			\
	gdm-session-glue.c			\
144 145
	gdm-session-worker-glue.c		\
	gdm-session-worker-glue.h		\
146 147
	gdm-session-enum-types.c		\
	gdm-session-enum-types.h		\
148 149
	$(NULL)

150 151 152 153 154 155 156 157 158 159 160 161 162
gdm_wayland_session_LDADD =		\
	$(top_builddir)/common/libgdmcommon.la	\
	$(GTK_LIBS)		\
	$(COMMON_LIBS)		\
	$(SYSTEMD_LIBS)         \
	$(NULL)

gdm_wayland_session_SOURCES =	\
	gdm-manager-glue.h	\
	gdm-manager-glue.c	\
	gdm-wayland-session.c	\
	$(NULL)

163 164 165 166 167 168 169 170 171 172 173 174 175 176
gdm_x_session_LDADD =		\
	$(top_builddir)/common/libgdmcommon.la	\
	$(GTK_LIBS)		\
	$(COMMON_LIBS)		\
	$(SYSTEMD_LIBS)         \
	$(XLIB_LIBS)		\
	$(NULL)

gdm_x_session_SOURCES =	\
	gdm-manager-glue.h	\
	gdm-manager-glue.c	\
	gdm-x-session.c	\
	$(NULL)

177 178 179 180 181 182 183 184 185 186
if HAVE_LIBAUDIT
gdm_session_worker_SOURCES += gdm-session-linux-auditor.h       \
	                      gdm-session-linux-auditor.c
endif

if HAVE_ADT
gdm_session_worker_SOURCES += gdm-session-solaris-auditor.h     \
	                      gdm-session-solaris-auditor.c
endif

187 188
gdm_session_worker_LDADD = 			\
	$(top_builddir)/common/libgdmcommon.la	\
189
	$(DAEMON_LIBS)				\
190
	$(SYSTEMD_LIBS) 			\
191
	$(JOURNALD_LIBS) 			\
192
	$(LIBSELINUX_LIBS) 			\
193
	$(EXTRA_DAEMON_LIBS)			\
194 195
	$(XLIB_LIBS)				\
	$(PAM_LIBS)				\
196 197
	$(NULL)

198
sbin_PROGRAMS = 			\
Armin K.'s avatar
Armin K. committed
199
	gdm				\
200 201
	$(NULL)

Armin K.'s avatar
Armin K. committed
202
gdm_SOURCES = 			\
203
	main.c				\
204 205
	gdm-display-access-file.c	\
	gdm-display-access-file.h	\
206 207
	gdm-display-store.c		\
	gdm-display-store.h		\
208 209
	gdm-display-factory.c		\
	gdm-display-factory.h		\
210 211
	gdm-local-display-factory.c	\
	gdm-local-display-factory.h	\
212 213
	gdm-display.c			\
	gdm-display.h			\
214 215
	gdm-legacy-display.c		\
	gdm-legacy-display.h		\
216 217
	gdm-local-display.c		\
	gdm-local-display.h		\
218 219
	gdm-launch-environment.c	\
	gdm-launch-environment.h	\
220 221
	gdm-manager.c			\
	gdm-manager.h			\
222 223 224 225 226 227 228 229 230 231
	gdm-server.c			\
	gdm-server.h			\
	gdm-session.c			\
	gdm-session.h			\
	gdm-session-record.c		\
	gdm-session-record.h		\
	gdm-session-worker-common.c	\
	gdm-session-worker-common.h	\
	gdm-session-worker-job.c	\
	gdm-session-worker-job.h	\
232 233
	gdm-dbus-util.c			\
	gdm-dbus-util.h			\
234
	$(NULL)
235

Armin K.'s avatar
Armin K. committed
236
nodist_gdm_SOURCES = 			\
237 238 239 240
	gdm-display-glue.h			\
	gdm-display-glue.c			\
	gdm-local-display-factory-glue.h	\
	gdm-local-display-factory-glue.c	\
241 242
	gdm-manager-glue.h			\
	gdm-manager-glue.c			\
243 244
	gdm-local-display-glue.h		\
	gdm-local-display-glue.c		\
245 246 247 248 249 250
	gdm-session-glue.h			\
	gdm-session-glue.c			\
	gdm-session-worker-glue.c		\
	gdm-session-worker-glue.h		\
	gdm-session-enum-types.c		\
	gdm-session-enum-types.h		\
251 252
	$(NULL)

253 254 255
XDMCP_SOURCES =				\
	gdm-xdmcp-display-factory.c	\
	gdm-xdmcp-display-factory.h	\
256 257 258 259
	gdm-xdmcp-display.c		\
	gdm-xdmcp-display.h		\
	gdm-xdmcp-chooser-display.c	\
	gdm-xdmcp-chooser-display.h	\
260 261
	$(NULL)

262
if XDMCP_SUPPORT
Armin K.'s avatar
Armin K. committed
263
gdm_SOURCES += $(XDMCP_SOURCES)
264 265
endif

Armin K.'s avatar
Armin K. committed
266
EXTRA_gdm_SOURCES = 	\
267
	$(XDMCP_SOURCES)	\
268
	$(NULL)
William Jon McCann's avatar
William Jon McCann committed
269

Armin K.'s avatar
Armin K. committed
270
gdm_LDADD = \
271
	$(top_builddir)/common/libgdmcommon.la	\
272
	$(XLIB_LIBS)				\
273
	$(DAEMON_LIBS)				\
274 275
	$(XDMCP_LIBS)                           \
	$(LIBWRAP_LIBS)                         \
276
	$(SYSTEMD_LIBS)				\
277
	$(JOURNALD_LIBS)				\
278
	$(EXTRA_DAEMON_LIBS)			\
279
	$(NULL)
Martin Peterson's avatar
Martin Peterson committed
280

281 282 283
CLEANFILES =					\
	gdm-display-glue.c			\
	gdm-local-display-factory-glue.c	\
284
	gdm-manager-glue.c			\
285
	gdm-session-glue.c			\
286
	gdm-session-worker-glue.c		\
Ray Strode's avatar
Ray Strode committed
287
	gdm-session-enum-types.c		\
288
	gdm-local-display-glue.c		\
289
	$(BUILT_SOURCES)			\
290 291
	$(NULL)

292
EXTRA_DIST = 				\
Ray Strode's avatar
Ray Strode committed
293
	gdm-manager.xml			\
294
	gdm-session-worker.xml		\
Ray Strode's avatar
Ray Strode committed
295
	gdm-session.xml			\
296
	gdm-display.xml			\
297
	gdm-local-display.xml		\
298
	gdm-local-display-factory.xml	\
Ray Strode's avatar
Ray Strode committed
299 300
	gdm-session-enum-types.c.in	\
	gdm-session-enum-types.h.in	\
301
	$(NULL)