]> git.ipfire.org Git - people/ms/systemd.git/blame - Makefile.am
unit: allow state change from running to restarting
[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
47be870b
LP
24AM_CPPFLAGS = \
25 -include $(top_builddir)/config.h \
036643a2
LP
26 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
27 -DSYSTEM_DATA_UNIT_PATH=\"$(pkgdatadir)/system\" \
0571e011 28 -DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
061978fa 29 -DSYSTEM_SYSVRCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
036643a2 30 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
8e274523
LP
31 -DSESSION_DATA_UNIT_PATH=\"$(pkgdatadir)/session\" \
32 -DCGROUP_AGENT_PATH=\"$(pkglibexecdir)/systemd-cgroups-agent\"
47be870b
LP
33
34sbin_PROGRAMS = \
35 systemd
36
37bin_PROGRAMS = \
38 systemctl \
8e274523
LP
39 systemadm
40
41pkglibexec_PROGRAMS = \
42 systemd-logger \
0b7964b8
LP
43 systemd-cgroups-agent \
44 systemd-initctl
47be870b
LP
45
46noinst_PROGRAMS = \
47 test-engine \
48 test-job-type
49
e24067c3
LP
50dbuspolicy_DATA = \
51 org.freedesktop.systemd1.conf
52
5cc5d790
LP
53udevrules_DATA = \
54 99-systemd.rules
55
e24067c3
LP
56EXTRA_DIST = \
57 org.freedesktop.systemd1.conf
5cc5d790 58 99-systemd.rules
e24067c3 59
47be870b
LP
60BASIC_SOURCES= \
61 util.c \
8e274523 62 util.h \
47be870b 63 hashmap.c \
8e274523 64 hashmap.h \
47be870b 65 set.c \
8e274523 66 set.h \
47be870b 67 strv.c \
8e274523 68 strv.h \
47be870b 69 conf-parser.c \
8e274523 70 conf-parser.h \
47be870b 71 socket-util.c \
8e274523 72 socket-util.h \
47be870b 73 log.c \
8e274523
LP
74 log.h \
75 ratelimit.c \
76 ratelimit.h
47be870b
LP
77
78COMMON_SOURCES= \
79 $(BASIC_SOURCES) \
80 unit.c \
8e274523 81 unit.h \
47be870b 82 job.c \
8e274523 83 job.h \
47be870b 84 manager.c \
8e274523 85 manager.h \
47be870b 86 load-fragment.c \
8e274523 87 load-fragment.h \
47be870b 88 service.c \
8e274523 89 service.h \
47be870b 90 automount.c \
8e274523 91 automount.h \
47be870b 92 mount.c \
8e274523 93 mount.h \
47be870b 94 device.c \
8e274523 95 device.h \
47be870b 96 target.c \
8e274523 97 target.h \
47be870b 98 snapshot.c \
8e274523 99 snapshot.h \
47be870b 100 socket.c \
8e274523 101 socket.h \
47be870b 102 timer.c \
8e274523 103 timer.h \
47be870b 104 load-dropin.c \
8e274523 105 load-dropin.h \
47be870b 106 execute.c \
8e274523 107 execute.h \
47be870b 108 dbus.c \
8e274523 109 dbus.h \
47be870b 110 dbus-manager.c \
8e274523 111 dbus-manager.h \
47be870b 112 dbus-unit.c \
8e274523
LP
113 dbus-unit.h \
114 dbus-job.c \
115 dbus-job.h \
116 cgroup.c \
117 cgroup.h \
118 mount-setup.c \
302e8c4c
LP
119 mount-setup.h \
120 hostname-setup.c \
e537352b
LP
121 hostname-setup.h \
122 utmp-wtmp.c \
123 utmp-wtmp.h
47be870b
LP
124
125systemd_SOURCES = \
126 $(COMMON_SOURCES) \
127 main.c
128
129systemd_CPPFLAGS = \
130 $(AM_CPPFLAGS) \
131 $(DBUS_CFLAGS) \
8e274523
LP
132 $(UDEV_CFLAGS) \
133 $(CGROUP_CFLAGS)
47be870b
LP
134
135systemd_LDADD = \
136 $(DBUS_LIBS) \
8e274523
LP
137 $(UDEV_LIBS) \
138 $(CGROUP_LIBS)
47be870b
LP
139
140test_engine_SOURCES = \
141 $(COMMON_SOURCES) \
142 test-engine.c
143
144test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
145test_engine_LDADD = $(systemd_LDADD)
146
147test_job_type_SOURCES = \
148 $(COMMON_SOURCES) \
149 test-engine.c
150
151test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
152test_job_type_LDADD = $(systemd_LDADD)
153
154systemd_logger_SOURCES = \
155 $(BASIC_SOURCES) \
156 logger.c
157
0b7964b8
LP
158systemd_initctl_SOURCES = \
159 $(BASIC_SOURCES) \
160 initctl.c
161
162systemd_initctl_CPPFLAGS = \
163 $(AM_CPPFLAGS) \
164 $(DBUS_CFLAGS)
165
166systemd_initctl_LDADD = \
167 $(DBUS_LIBS)
168
8e274523
LP
169systemd_cgroups_agent_SOURCES = \
170 $(BASIC_SOURCES) \
171 cgroups-agent.c
172
173systemd_cgroups_agent_CPPFLAGS = \
174 $(AM_CPPFLAGS) \
175 $(DBUS_CFLAGS)
176
177systemd_cgroups_agent_LDADD = \
178 $(DBUS_LIBS)
179
47be870b
LP
180VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gee-1.0 --pkg gtk+-2.0
181
182systemctl_SOURCES = \
183 systemctl.vala \
184 systemd-interfaces.vala
185
186systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS)
187systemctl_LDADD = $(DBUSGLIB_LIBS)
188
189systemadm_SOURCES = \
190 systemadm.vala \
191 systemd-interfaces.vala
192
193systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS)
194systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
c1e1601e
LP
195
196CLEANFILES = \
197 systemd-interfaces.c \
198 systemctl.c \
8e274523
LP
199 systemadm.c \
200 systemd-cgroups-agent