]>
Commit | Line | Data |
---|---|---|
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 | ||
18 | ACLOCAL_AMFLAGS = -I m4 | |
19 | ||
036643a2 | 20 | pkgsysconfdir=$(sysconfdir)/systemd |
e24067c3 | 21 | dbuspolicydir=$(sysconfdir)/dbus-1/system.d |
5cc5d790 | 22 | udevrulesdir=/lib/udev/rules.d |
036643a2 | 23 | |
70fcff31 LP |
24 | systemunitdir=$(pkgdatadir)/system |
25 | sessionunitdir=$(pkgdatadir)/system | |
26 | ||
47be870b LP |
27 | AM_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)\" \ |
8e274523 | 35 | -DCGROUP_AGENT_PATH=\"$(pkglibexecdir)/systemd-cgroups-agent\" |
47be870b LP |
36 | |
37 | sbin_PROGRAMS = \ | |
38 | systemd | |
39 | ||
40 | bin_PROGRAMS = \ | |
41 | systemctl \ | |
8e274523 LP |
42 | systemadm |
43 | ||
44 | pkglibexec_PROGRAMS = \ | |
45 | systemd-logger \ | |
0b7964b8 LP |
46 | systemd-cgroups-agent \ |
47 | systemd-initctl | |
47be870b LP |
48 | |
49 | noinst_PROGRAMS = \ | |
50 | test-engine \ | |
51 | test-job-type | |
52 | ||
e24067c3 LP |
53 | dbuspolicy_DATA = \ |
54 | org.freedesktop.systemd1.conf | |
55 | ||
5cc5d790 LP |
56 | udevrules_DATA = \ |
57 | 99-systemd.rules | |
58 | ||
70fcff31 LP |
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 | ||
e24067c3 | 66 | EXTRA_DIST = \ |
70fcff31 LP |
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 | |
e24067c3 | 74 | |
47be870b LP |
75 | BASIC_SOURCES= \ |
76 | util.c \ | |
8e274523 | 77 | util.h \ |
47be870b | 78 | hashmap.c \ |
8e274523 | 79 | hashmap.h \ |
47be870b | 80 | set.c \ |
8e274523 | 81 | set.h \ |
47be870b | 82 | strv.c \ |
8e274523 | 83 | strv.h \ |
47be870b | 84 | conf-parser.c \ |
8e274523 | 85 | conf-parser.h \ |
47be870b | 86 | socket-util.c \ |
8e274523 | 87 | socket-util.h \ |
47be870b | 88 | log.c \ |
8e274523 LP |
89 | log.h \ |
90 | ratelimit.c \ | |
91 | ratelimit.h | |
47be870b LP |
92 | |
93 | COMMON_SOURCES= \ | |
94 | $(BASIC_SOURCES) \ | |
95 | unit.c \ | |
8e274523 | 96 | unit.h \ |
47be870b | 97 | job.c \ |
8e274523 | 98 | job.h \ |
47be870b | 99 | manager.c \ |
8e274523 | 100 | manager.h \ |
47be870b | 101 | load-fragment.c \ |
8e274523 | 102 | load-fragment.h \ |
47be870b | 103 | service.c \ |
8e274523 | 104 | service.h \ |
47be870b | 105 | automount.c \ |
8e274523 | 106 | automount.h \ |
47be870b | 107 | mount.c \ |
8e274523 | 108 | mount.h \ |
47be870b | 109 | device.c \ |
8e274523 | 110 | device.h \ |
47be870b | 111 | target.c \ |
8e274523 | 112 | target.h \ |
47be870b | 113 | snapshot.c \ |
8e274523 | 114 | snapshot.h \ |
47be870b | 115 | socket.c \ |
8e274523 | 116 | socket.h \ |
47be870b | 117 | timer.c \ |
8e274523 | 118 | timer.h \ |
47be870b | 119 | load-dropin.c \ |
8e274523 | 120 | load-dropin.h \ |
47be870b | 121 | execute.c \ |
8e274523 | 122 | execute.h \ |
47be870b | 123 | dbus.c \ |
8e274523 | 124 | dbus.h \ |
47be870b | 125 | dbus-manager.c \ |
8e274523 | 126 | dbus-manager.h \ |
47be870b | 127 | dbus-unit.c \ |
8e274523 LP |
128 | dbus-unit.h \ |
129 | dbus-job.c \ | |
130 | dbus-job.h \ | |
131 | cgroup.c \ | |
132 | cgroup.h \ | |
133 | mount-setup.c \ | |
302e8c4c LP |
134 | mount-setup.h \ |
135 | hostname-setup.c \ | |
e537352b LP |
136 | hostname-setup.h \ |
137 | utmp-wtmp.c \ | |
9e2f7c11 LP |
138 | utmp-wtmp.h \ |
139 | specifier.c \ | |
140 | specifier.h \ | |
141 | unit-name.c \ | |
142 | unit-name.h | |
47be870b LP |
143 | |
144 | systemd_SOURCES = \ | |
145 | $(COMMON_SOURCES) \ | |
146 | main.c | |
147 | ||
148 | systemd_CPPFLAGS = \ | |
149 | $(AM_CPPFLAGS) \ | |
150 | $(DBUS_CFLAGS) \ | |
8e274523 LP |
151 | $(UDEV_CFLAGS) \ |
152 | $(CGROUP_CFLAGS) | |
47be870b LP |
153 | |
154 | systemd_LDADD = \ | |
155 | $(DBUS_LIBS) \ | |
8e274523 LP |
156 | $(UDEV_LIBS) \ |
157 | $(CGROUP_LIBS) | |
47be870b LP |
158 | |
159 | test_engine_SOURCES = \ | |
160 | $(COMMON_SOURCES) \ | |
161 | test-engine.c | |
162 | ||
163 | test_engine_CPPFLAGS = $(systemd_CPPFLAGS) | |
164 | test_engine_LDADD = $(systemd_LDADD) | |
165 | ||
166 | test_job_type_SOURCES = \ | |
167 | $(COMMON_SOURCES) \ | |
168 | test-engine.c | |
169 | ||
170 | test_job_type_CPPFLAGS = $(systemd_CPPFLAGS) | |
171 | test_job_type_LDADD = $(systemd_LDADD) | |
172 | ||
173 | systemd_logger_SOURCES = \ | |
174 | $(BASIC_SOURCES) \ | |
175 | logger.c | |
176 | ||
0b7964b8 LP |
177 | systemd_initctl_SOURCES = \ |
178 | $(BASIC_SOURCES) \ | |
179 | initctl.c | |
180 | ||
181 | systemd_initctl_CPPFLAGS = \ | |
182 | $(AM_CPPFLAGS) \ | |
183 | $(DBUS_CFLAGS) | |
184 | ||
185 | systemd_initctl_LDADD = \ | |
186 | $(DBUS_LIBS) | |
187 | ||
8e274523 LP |
188 | systemd_cgroups_agent_SOURCES = \ |
189 | $(BASIC_SOURCES) \ | |
190 | cgroups-agent.c | |
191 | ||
192 | systemd_cgroups_agent_CPPFLAGS = \ | |
193 | $(AM_CPPFLAGS) \ | |
194 | $(DBUS_CFLAGS) | |
195 | ||
196 | systemd_cgroups_agent_LDADD = \ | |
197 | $(DBUS_LIBS) | |
198 | ||
47be870b LP |
199 | VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gee-1.0 --pkg gtk+-2.0 |
200 | ||
201 | systemctl_SOURCES = \ | |
202 | systemctl.vala \ | |
203 | systemd-interfaces.vala | |
204 | ||
205 | systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) | |
206 | systemctl_LDADD = $(DBUSGLIB_LIBS) | |
207 | ||
208 | systemadm_SOURCES = \ | |
209 | systemadm.vala \ | |
210 | systemd-interfaces.vala | |
211 | ||
212 | systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) | |
213 | systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS) | |
c1e1601e | 214 | |
70fcff31 LP |
215 | systemd-initctl.service: units/systemd-initctl.service.in Makefile |
216 | sed -e 's,@libexecdir\@,$(libexecdir),g' < $< > $@ | |
217 | ||
218 | systemd-logger.service: units/systemd-logger.service.in Makefile | |
219 | sed -e 's,@libexecdir\@,$(libexecdir),g' < $< > $@ | |
220 | ||
c1e1601e LP |
221 | CLEANFILES = \ |
222 | systemd-interfaces.c \ | |
223 | systemctl.c \ | |
8e274523 | 224 | systemadm.c \ |
70fcff31 LP |
225 | systemd-initctl.service \ |
226 | systemd-logger.service |