]> git.ipfire.org Git - people/ms/systemd.git/blame - Makefile.am
mount-setup: also consider /dev/mqueue an API mount
[people/ms/systemd.git] / Makefile.am
CommitLineData
47be870b
LP
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
18ACLOCAL_AMFLAGS = -I m4
19
036643a2 20pkgsysconfdir=$(sysconfdir)/systemd
e24067c3 21dbuspolicydir=$(sysconfdir)/dbus-1/system.d
5cc5d790 22udevrulesdir=/lib/udev/rules.d
036643a2 23
70fcff31
LP
24systemunitdir=$(pkgdatadir)/system
25sessionunitdir=$(pkgdatadir)/system
26
47be870b
LP
27AM_CPPFLAGS = \
28 -include $(top_builddir)/config.h \
036643a2 29 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
70fcff31 30 -DSYSTEM_DATA_UNIT_PATH=\"$(systemunitdir)\" \
0571e011 31 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
061978fa 32 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
036643a2 33 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
70fcff31 34 -DSESSION_DATA_UNIT_PATH=\"$(sessionunitdir)\" \
a16e1123
LP
35 -DCGROUP_AGENT_PATH=\"$(pkglibexecdir)/systemd-cgroups-agent\" \
36 -DSYSTEMD_BINARY_PATH=\"$(sbindir)/systemd\"
37
38# -DSYSTEMD_BINARY_PATH=\"/home/lennart/projects/systemd/systemd\"
39
47be870b
LP
40
41sbin_PROGRAMS = \
42 systemd
43
44bin_PROGRAMS = \
45 systemctl \
8e274523
LP
46 systemadm
47
48pkglibexec_PROGRAMS = \
49 systemd-logger \
0b7964b8
LP
50 systemd-cgroups-agent \
51 systemd-initctl
47be870b
LP
52
53noinst_PROGRAMS = \
54 test-engine \
55 test-job-type
56
e24067c3
LP
57dbuspolicy_DATA = \
58 org.freedesktop.systemd1.conf
59
5cc5d790
LP
60udevrules_DATA = \
61 99-systemd.rules
62
70fcff31
LP
63systemunit_DATA = \
64 units/emergency.service \
65 systemd-initctl.service \
66 units/systemd-initctl.socket \
67 systemd-logger.service \
68 units/systemd-logger.socket
69
e24067c3 70EXTRA_DIST = \
70fcff31
LP
71 org.freedesktop.systemd1.conf \
72 99-systemd.rules \
73 units/emergency.service \
74 units/systemd-initctl.service.in \
75 units/systemd-initctl.socket \
76 units/systemd-logger.service.in \
77 units/systemd-logger.socket
e24067c3 78
47be870b
LP
79BASIC_SOURCES= \
80 util.c \
8e274523 81 util.h \
47be870b 82 hashmap.c \
8e274523 83 hashmap.h \
47be870b 84 set.c \
8e274523 85 set.h \
47be870b 86 strv.c \
8e274523 87 strv.h \
47be870b 88 conf-parser.c \
8e274523 89 conf-parser.h \
47be870b 90 socket-util.c \
8e274523 91 socket-util.h \
47be870b 92 log.c \
8e274523
LP
93 log.h \
94 ratelimit.c \
95 ratelimit.h
47be870b
LP
96
97COMMON_SOURCES= \
98 $(BASIC_SOURCES) \
99 unit.c \
8e274523 100 unit.h \
47be870b 101 job.c \
8e274523 102 job.h \
47be870b 103 manager.c \
8e274523 104 manager.h \
47be870b 105 load-fragment.c \
8e274523 106 load-fragment.h \
47be870b 107 service.c \
8e274523 108 service.h \
47be870b 109 automount.c \
8e274523 110 automount.h \
47be870b 111 mount.c \
8e274523 112 mount.h \
47be870b 113 device.c \
8e274523 114 device.h \
47be870b 115 target.c \
8e274523 116 target.h \
47be870b 117 snapshot.c \
8e274523 118 snapshot.h \
47be870b 119 socket.c \
8e274523 120 socket.h \
47be870b 121 timer.c \
8e274523 122 timer.h \
47be870b 123 load-dropin.c \
8e274523 124 load-dropin.h \
47be870b 125 execute.c \
8e274523 126 execute.h \
47be870b 127 dbus.c \
8e274523 128 dbus.h \
47be870b 129 dbus-manager.c \
8e274523 130 dbus-manager.h \
47be870b 131 dbus-unit.c \
8e274523
LP
132 dbus-unit.h \
133 dbus-job.c \
134 dbus-job.h \
4139c1b2
LP
135 dbus-service.c \
136 dbus-service.h \
137 dbus-socket.c \
138 dbus-socket.h \
139 dbus-target.c \
140 dbus-target.h \
141 dbus-mount.c \
142 dbus-mount.h \
143 dbus-automount.c \
144 dbus-autpmount.h \
145 dbus-snapshot.c \
146 dbus-snapshot.h \
147 dbus-device.c \
148 dbus-device.h \
149 dbus-execute.c \
150 dbus-execute.h \
8e274523
LP
151 cgroup.c \
152 cgroup.h \
153 mount-setup.c \
302e8c4c
LP
154 mount-setup.h \
155 hostname-setup.c \
e537352b
LP
156 hostname-setup.h \
157 utmp-wtmp.c \
9e2f7c11
LP
158 utmp-wtmp.h \
159 specifier.c \
160 specifier.h \
161 unit-name.c \
a16e1123
LP
162 unit-name.h \
163 fdset.c \
164 fdset.h
47be870b
LP
165
166systemd_SOURCES = \
167 $(COMMON_SOURCES) \
168 main.c
169
170systemd_CPPFLAGS = \
171 $(AM_CPPFLAGS) \
172 $(DBUS_CFLAGS) \
8e274523
LP
173 $(UDEV_CFLAGS) \
174 $(CGROUP_CFLAGS)
47be870b
LP
175
176systemd_LDADD = \
177 $(DBUS_LIBS) \
8e274523
LP
178 $(UDEV_LIBS) \
179 $(CGROUP_LIBS)
47be870b
LP
180
181test_engine_SOURCES = \
182 $(COMMON_SOURCES) \
183 test-engine.c
184
185test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
186test_engine_LDADD = $(systemd_LDADD)
187
188test_job_type_SOURCES = \
189 $(COMMON_SOURCES) \
190 test-engine.c
191
192test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
193test_job_type_LDADD = $(systemd_LDADD)
194
195systemd_logger_SOURCES = \
196 $(BASIC_SOURCES) \
197 logger.c
198
0b7964b8
LP
199systemd_initctl_SOURCES = \
200 $(BASIC_SOURCES) \
201 initctl.c
202
203systemd_initctl_CPPFLAGS = \
204 $(AM_CPPFLAGS) \
205 $(DBUS_CFLAGS)
206
207systemd_initctl_LDADD = \
208 $(DBUS_LIBS)
209
8e274523
LP
210systemd_cgroups_agent_SOURCES = \
211 $(BASIC_SOURCES) \
212 cgroups-agent.c
213
214systemd_cgroups_agent_CPPFLAGS = \
215 $(AM_CPPFLAGS) \
216 $(DBUS_CFLAGS)
217
218systemd_cgroups_agent_LDADD = \
219 $(DBUS_LIBS)
220
47be870b
LP
221VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gee-1.0 --pkg gtk+-2.0
222
223systemctl_SOURCES = \
224 systemctl.vala \
225 systemd-interfaces.vala
226
227systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS)
228systemctl_LDADD = $(DBUSGLIB_LIBS)
229
230systemadm_SOURCES = \
231 systemadm.vala \
232 systemd-interfaces.vala
233
234systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS)
235systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
c1e1601e 236
70fcff31
LP
237systemd-initctl.service: units/systemd-initctl.service.in Makefile
238 sed -e 's,@libexecdir\@,$(libexecdir),g' < $< > $@
239
240systemd-logger.service: units/systemd-logger.service.in Makefile
241 sed -e 's,@libexecdir\@,$(libexecdir),g' < $< > $@
242
c1e1601e
LP
243CLEANFILES = \
244 systemd-interfaces.c \
245 systemctl.c \
8e274523 246 systemadm.c \
70fcff31
LP
247 systemd-initctl.service \
248 systemd-logger.service