summaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
blob: 136d88af9eeffde16d8597ad6907a2d53d2b29eb (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
125
126
127
128
129
130
131
132
133
134
135
## We require new-style dependency handling.
AUTOMAKE_OPTIONS = 1.7

NULL =

SUBDIRS = \
	$(NULL)

INCLUDES =							\
	-I.							\
	-I$(srcdir)						\
	$(CONSOLE_KIT_CFLAGS)					\
	$(DISABLE_DEPRECATED_CFLAGS)				\
	-DPREFIX=\""$(prefix)"\" 				\
	-DBINDIR=\""$(bindir)"\"				\
	-DLIBDIR=\""$(libdir)"\" 				\
	-DLIBEXECDIR=\""$(libexecdir)"\"			\
	-DDATADIR=\""$(datadir)"\"				\
	-DSYSCONFDIR=\""$(sysconfdir)"\" 			\
	-DCONSOLE_KIT_PID_FILE=\""$(CONSOLE_KIT_PID_FILE)"\"	\
	$(WARN_CFLAGS)						\
	$(DEBUG_CFLAGS)						\
	$(DBUS_CFLAGS)						\
	$(NULL)

sbin_PROGRAMS = 		\
	console-kit-daemon	\
	$(NULL)

BUILT_SOURCES = 		\
	ck-manager-glue.h	\
	ck-seat-glue.h		\
	ck-session-glue.h	\
	ck-marshal.c 		\
	ck-marshal.h		\
	$(NULL)

ck-manager-glue.h: ck-manager.xml Makefile.am
	dbus-binding-tool --prefix=ck_manager --mode=glib-server --output=ck-manager-glue.h ck-manager.xml
ck-seat-glue.h: ck-seat.xml Makefile.am
	dbus-binding-tool --prefix=ck_seat --mode=glib-server --output=ck-seat-glue.h ck-seat.xml
ck-session-glue.h: ck-session.xml Makefile.am
	dbus-binding-tool --prefix=ck_session --mode=glib-server --output=ck-session-glue.h ck-session.xml

ck-marshal.c: ck-marshal.list
	echo "#include \"ck-marshal.h\"" > $@ && \
	@GLIB_GENMARSHAL@ $< --prefix=ck_marshal --body >> $@

ck-marshal.h: ck-marshal.list
	@GLIB_GENMARSHAL@ $< --prefix=ck_marshal --header > $@

if CK_COMPILE_LINUX
PLATFORM_SOURCES =		\
	proc-linux.c		\
	$(NULL)
endif
if CK_COMPILE_SOLARIS
PLATFORM_SOURCES =		\
	proc-solaris.c		\
	$(NULL)
endif

console_kit_daemon_SOURCES =	\
	main.c			\
	ck-manager.h		\
	ck-manager.c		\
	ck-vt-monitor.h		\
	ck-vt-monitor.c		\
	ck-tty-idle-monitor.h	\
	ck-tty-idle-monitor.c	\
	ck-file-monitor.h	\
	ck-job.h		\
	ck-job.c		\
	ck-seat.h		\
	ck-seat.c		\
	ck-session.h		\
	ck-session.c		\
	ck-log.h		\
	ck-log.c		\
	getfd.c			\
	proc.h			\
	$(PLATFORM_SOURCES)	\
	$(BUILT_SOURCES)	\
	$(NULL)

if ENABLE_INOTIFY
FILE_MONITOR_BACKEND = ck-file-monitor-inotify.c
else
FILE_MONITOR_BACKEND = ck-file-monitor-dummy.c
endif

console_kit_daemon_SOURCES += $(FILE_MONITOR_BACKEND)

EXTRA_console_kit_daemon_SOURCES = 	\
	ck-file-monitor-inotify.c	\
	ck-file-monitor-dummy.c		\
	proc-linux.c			\
	proc-solaris.c			\
	$(NULL)

console_kit_daemon_LDADD =	\
	$(CONSOLE_KIT_LIBS)	\
	$(NULL)

noinst_PROGRAMS = 			\
	test-tty-idle-monitor		\
	$(NULL)

test_tty_idle_monitor_SOURCES = 	\
	ck-tty-idle-monitor.h		\
	ck-tty-idle-monitor.c		\
	ck-file-monitor.h		\
	$(FILE_MONITOR_BACKEND)		\
	test-tty-idle-monitor.c 	\
	$(NULL)

test_tty_idle_monitor_LDADD =		\
	$(CONSOLE_KIT_LIBS)		\
	$(NULL)

EXTRA_DIST =			\
	ck-marshal.list		\
	ck-manager.xml		\
	ck-seat.xml		\
	ck-session.xml		\
	valgrind.sh		\
	test-open-session	\
	test-open-session-with-parameters	\
	$(NULL)

CLEANFILES = $(BUILT_SOURCES)

MAINTAINERCLEANFILES =			\
	*~				\
	Makefile.in