summaryrefslogtreecommitdiff
path: root/xfce4-session/Makefile.am
blob: e4110d3d2378e906925c5fa5b1254366f704916b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# $Id$

INCLUDES =								\
	-I$(top_builddir)						\
	-I$(top_srcdir)

man_MANS = xfce4-session.1

bin_PROGRAMS = xfce4-session

xfce4_session_SOURCES =							\
	chooser-icon.h							\
	ice-layer.c							\
	ice-layer.h							\
	main.c								\
	shutdown.c							\
	shutdown.h							\
	sm-layer.c							\
	sm-layer.h							\
	xfsm-chooser.c							\
	xfsm-chooser.h							\
	xfsm-client.c							\
	xfsm-client.h							\
	xfsm-client-dbus.h						\
	xfsm-compat-gnome.c						\
	xfsm-compat-gnome.h						\
	xfsm-compat-kde.c						\
	xfsm-compat-kde.h						\
	xfsm-dns.c							\
	xfsm-dns.h							\
	xfsm-error.c							\
	xfsm-error.h							\
	xfsm-fadeout.c							\
	xfsm-fadeout.h							\
	xfsm-global.c							\
	xfsm-global.h							\
	xfsm-legacy.c							\
	xfsm-legacy.h							\
	xfsm-manager.c							\
	xfsm-manager.h							\
	xfsm-manager-dbus.h						\
	xfsm-marshal.c							\
	xfsm-marshal.h							\
	xfsm-properties.c						\
	xfsm-properties.h						\
	xfsm-shutdown-helper.c						\
	xfsm-shutdown-helper.h						\
	xfsm-splash-screen.c						\
	xfsm-splash-screen.h						\
	xfsm-startup.c							\
	xfsm-startup.h

xfce4_session_CFLAGS =							\
	$(GNOME_CFLAGS)							\
	$(GNOME_KEYRING_CFLAGS)						\
	$(LIBSM_CFLAGS)							\
	$(LIBX11_CFLAGS)						\
	$(LIBXFCEGUI4_CFLAGS)						\
	$(DBUS_CFLAGS)							\
	$(DBUS_GLIB_CFLAGS)						\
	$(LIBWNCK_CFLAGS)						\
	$(XFCONF_CFLAGS)						\
	-DDBUS_API_SUBJECT_TO_CHANGE					\
	-DWNCK_I_KNOW_THIS_IS_UNSTABLE					\
	-DLIBDIR=\"$(libdir)\"						\
	-DPACKAGE_LOCALE_DIR=\"$(localedir)\"				\
	-DSYSCONFDIR=\"$(sysconfdir)\"					\
	-DXFSM_SHUTDOWN_HELPER=\"$(libexecdir)/xfsm-shutdown-helper\"

xfce4_session_LDADD =							\
	$(top_builddir)/libxfsm/libxfsm-4.6.la				\
	$(LIBSM_LDFLAGS)						\
	$(LIBSM_LIBS)							\
	$(LIBX11_LDFLAGS)						\
	$(LIBX11_LIBS)							\
	$(LIBXFCEGUI4_LIBS)						\
	$(DBUS_LIBS)							\
	$(DBUS_GLIB_LIBS)						\
	$(LIBWNCK_LIBS)							\
	$(XFCONF_LIBS)							\
	$(GNOME_LIBS)							\
	$(GNOME_KEYRING_LIBS)

xfce4_session_DEPENDENCIES =						\
	$(top_builddir)/libxfsm/libxfsm-4.6.la


chooser-icon.h: $(srcdir)/chooser-icon.png
	gdk-pixbuf-csource --struct --name=chooser_icon_data		\
		$(srcdir)/chooser-icon.png > chooser-icon.h

if MAINTAINER_MODE

BUILT_SOURCES =								\
	xfsm-client-dbus.h						\
	xfsm-manager-dbus.h						\
	xfsm-marshal.c							\
	xfsm-marshal.h

xfsm-marshal.h: stamp-xfsm-marshal.h
	@true
stamp-xfsm-marshal.h: xfsm-marshal.list Makefile
	glib-genmarshal --prefix=xfsm_marshal --internal xfsm-marshal.list --header > xfsm-marshal.h
	echo timestamp > $(@F)
xfsm-marshal.c: xfsm-marshal.list Makefile
	echo '#include "xfsm-marshal.h"' > $@
	glib-genmarshal --prefix=xfsm_marshal --internal xfsm-marshal.list --body >> xfsm-marshal.c

xfsm-manager-dbus.h: $(srcdir)/xfsm-manager-dbus.xml
	dbus-binding-tool --mode=glib-server --prefix=xfsm_manager $< > $@

xfsm-client-dbus.h: $(srcdir)/xfsm-client-dbus.xml
	dbus-binding-tool --mode=glib-server --prefix=xfsm_client $< > $@

DISTCLEANFILES =								\
	$(BUILT_SOURCES)

endif


EXTRA_DIST =								\
	$(man_MANS)							\
	chooser-icon.png						\
	xfsm-marshal.list