chiark / gitweb /
dbus: greatly extend dbus coverage
[elogind.git] / Makefile.am
1 #  This file is part of systemd.
2 #
3 #  Copyright 2010 Lennart Poettering
4 #
5 #  systemd is free software; you can redistribute it and/or modify it
6 #  under the terms of the GNU General Public License as published by
7 #  the Free Software Foundation; either version 2 of the License, or
8 #  (at your option) any later version.
9 #
10 #  systemd is distributed in the hope that it will be useful, but
11 #  WITHOUT ANY WARRANTY; without even the implied warranty of
12 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 #  General Public License for more details.
14 #
15 #  You should have received a copy of the GNU General Public License
16 #  along with systemd; If not, see <http://www.gnu.org/licenses/>.
17
18 ACLOCAL_AMFLAGS = -I m4
19
20 pkgsysconfdir=$(sysconfdir)/systemd
21 dbuspolicydir=$(sysconfdir)/dbus-1/system.d
22 udevrulesdir=/lib/udev/rules.d
23
24 systemunitdir=$(pkgdatadir)/system
25 sessionunitdir=$(pkgdatadir)/system
26
27 AM_CPPFLAGS = \
28         -include $(top_builddir)/config.h \
29         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
30         -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
31         -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
32         -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
33         -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
34         -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
35         -DCGROUP_AGENT_PATH=\"$(pkglibexecdir)/systemd-cgroups-agent\"
36
37 sbin_PROGRAMS = \
38         systemd
39
40 bin_PROGRAMS = \
41         systemctl \
42         systemadm
43
44 pkglibexec_PROGRAMS = \
45         systemd-logger \
46         systemd-cgroups-agent \
47         systemd-initctl
48
49 noinst_PROGRAMS = \
50         test-engine \
51         test-job-type
52
53 dbuspolicy_DATA = \
54         org.freedesktop.systemd1.conf
55
56 udevrules_DATA = \
57         99-systemd.rules
58
59 systemunit_DATA = \
60         units/emergency.service \
61         systemd-initctl.service \
62         units/systemd-initctl.socket \
63         systemd-logger.service \
64         units/systemd-logger.socket
65
66 EXTRA_DIST = \
67         org.freedesktop.systemd1.conf \
68         99-systemd.rules \
69         units/emergency.service \
70         units/systemd-initctl.service.in \
71         units/systemd-initctl.socket \
72         units/systemd-logger.service.in \
73         units/systemd-logger.socket
74
75 BASIC_SOURCES= \
76         util.c \
77         util.h \
78         hashmap.c \
79         hashmap.h \
80         set.c \
81         set.h \
82         strv.c \
83         strv.h \
84         conf-parser.c \
85         conf-parser.h \
86         socket-util.c \
87         socket-util.h \
88         log.c \
89         log.h \
90         ratelimit.c \
91         ratelimit.h
92
93 COMMON_SOURCES= \
94         $(BASIC_SOURCES) \
95         unit.c \
96         unit.h \
97         job.c \
98         job.h \
99         manager.c \
100         manager.h \
101         load-fragment.c \
102         load-fragment.h \
103         service.c \
104         service.h \
105         automount.c \
106         automount.h \
107         mount.c \
108         mount.h \
109         device.c \
110         device.h \
111         target.c \
112         target.h \
113         snapshot.c \
114         snapshot.h \
115         socket.c \
116         socket.h \
117         timer.c \
118         timer.h \
119         load-dropin.c \
120         load-dropin.h \
121         execute.c \
122         execute.h \
123         dbus.c \
124         dbus.h \
125         dbus-manager.c \
126         dbus-manager.h \
127         dbus-unit.c \
128         dbus-unit.h \
129         dbus-job.c \
130         dbus-job.h \
131         dbus-service.c \
132         dbus-service.h \
133         dbus-socket.c \
134         dbus-socket.h \
135         dbus-target.c \
136         dbus-target.h \
137         dbus-mount.c \
138         dbus-mount.h \
139         dbus-automount.c \
140         dbus-autpmount.h \
141         dbus-snapshot.c \
142         dbus-snapshot.h \
143         dbus-device.c \
144         dbus-device.h \
145         dbus-execute.c \
146         dbus-execute.h \
147         cgroup.c \
148         cgroup.h \
149         mount-setup.c \
150         mount-setup.h \
151         hostname-setup.c \
152         hostname-setup.h \
153         utmp-wtmp.c \
154         utmp-wtmp.h \
155         specifier.c \
156         specifier.h \
157         unit-name.c \
158         unit-name.h
159
160 systemd_SOURCES = \
161         $(COMMON_SOURCES) \
162         main.c
163
164 systemd_CPPFLAGS = \
165         $(AM_CPPFLAGS) \
166         $(DBUS_CFLAGS) \
167         $(UDEV_CFLAGS) \
168         $(CGROUP_CFLAGS)
169
170 systemd_LDADD = \
171         $(DBUS_LIBS) \
172         $(UDEV_LIBS) \
173         $(CGROUP_LIBS)
174
175 test_engine_SOURCES = \
176         $(COMMON_SOURCES) \
177         test-engine.c
178
179 test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
180 test_engine_LDADD = $(systemd_LDADD)
181
182 test_job_type_SOURCES = \
183         $(COMMON_SOURCES) \
184         test-engine.c
185
186 test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
187 test_job_type_LDADD = $(systemd_LDADD)
188
189 systemd_logger_SOURCES = \
190         $(BASIC_SOURCES) \
191         logger.c
192
193 systemd_initctl_SOURCES = \
194         $(BASIC_SOURCES) \
195         initctl.c
196
197 systemd_initctl_CPPFLAGS = \
198         $(AM_CPPFLAGS) \
199         $(DBUS_CFLAGS)
200
201 systemd_initctl_LDADD = \
202         $(DBUS_LIBS)
203
204 systemd_cgroups_agent_SOURCES = \
205         $(BASIC_SOURCES) \
206         cgroups-agent.c
207
208 systemd_cgroups_agent_CPPFLAGS = \
209         $(AM_CPPFLAGS) \
210         $(DBUS_CFLAGS)
211
212 systemd_cgroups_agent_LDADD = \
213         $(DBUS_LIBS)
214
215 VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gee-1.0 --pkg gtk+-2.0
216
217 systemctl_SOURCES = \
218         systemctl.vala \
219         systemd-interfaces.vala
220
221 systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS)
222 systemctl_LDADD = $(DBUSGLIB_LIBS)
223
224 systemadm_SOURCES = \
225         systemadm.vala \
226         systemd-interfaces.vala
227
228 systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS)
229 systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
230
231 systemd-initctl.service: units/systemd-initctl.service.in Makefile
232         sed -e 's,@libexecdir\@,$(libexecdir),g' < $< > $@
233
234 systemd-logger.service: units/systemd-logger.service.in Makefile
235         sed -e 's,@libexecdir\@,$(libexecdir),g' < $< > $@
236
237 CLEANFILES = \
238         systemd-interfaces.c \
239         systemctl.c \
240         systemadm.c \
241         systemd-initctl.service \
242         systemd-logger.service