]> git.ipfire.org Git - people/ms/systemd.git/blame - Makefile.am
Distribute the necessary header files too
[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 \
15ae422b 55 test-job-type \
af5bc85d
LP
56 test-ns \
57 test-loopback
47be870b 58
e24067c3
LP
59dbuspolicy_DATA = \
60 org.freedesktop.systemd1.conf
61
5cc5d790
LP
62udevrules_DATA = \
63 99-systemd.rules
64
70fcff31
LP
65systemunit_DATA = \
66 units/emergency.service \
67 systemd-initctl.service \
68 units/systemd-initctl.socket \
69 systemd-logger.service \
70 units/systemd-logger.socket
71
e24067c3 72EXTRA_DIST = \
70fcff31
LP
73 org.freedesktop.systemd1.conf \
74 99-systemd.rules \
75 units/emergency.service \
76 units/systemd-initctl.service.in \
77 units/systemd-initctl.socket \
78 units/systemd-logger.service.in \
79 units/systemd-logger.socket
e24067c3 80
75db651a
TFH
81# This is needed because automake is buggy in how it generates the
82# rules for C programs, but not Vala programs. We therefore can't
83# list the .h files as dependencies if we want make dist to work.
ea6145da 84BASIC_SOURCES = \
47be870b
LP
85 util.c \
86 hashmap.c \
87 set.c \
88 strv.c \
89 conf-parser.c \
90 socket-util.c \
91 log.c \
75db651a 92 ratelimit.c
47be870b 93
ea6145da 94COMMON_SOURCES = \
47be870b
LP
95 $(BASIC_SOURCES) \
96 unit.c \
97 job.c \
98 manager.c \
99 load-fragment.c \
100 service.c \
101 automount.c \
102 mount.c \
07b0b134 103 swap.c \
47be870b
LP
104 device.c \
105 target.c \
106 snapshot.c \
107 socket.c \
108 timer.c \
109 load-dropin.c \
110 execute.c \
111 dbus.c \
112 dbus-manager.c \
113 dbus-unit.c \
8e274523 114 dbus-job.c \
4139c1b2 115 dbus-service.c \
4139c1b2 116 dbus-socket.c \
4139c1b2 117 dbus-target.c \
4139c1b2 118 dbus-mount.c \
4139c1b2 119 dbus-automount.c \
07b0b134 120 dbus-swap.c \
4139c1b2 121 dbus-snapshot.c \
4139c1b2 122 dbus-device.c \
4139c1b2 123 dbus-execute.c \
8e274523 124 cgroup.c \
8e274523 125 mount-setup.c \
302e8c4c 126 hostname-setup.c \
af5bc85d 127 loopback-setup.c \
e537352b 128 utmp-wtmp.c \
9e2f7c11 129 specifier.c \
9e2f7c11 130 unit-name.c \
a16e1123 131 fdset.c \
15ae422b 132 namespace.c
47be870b 133
462b33e9
TFH
134EXTRA_DIST += \
135 ${COMMON_SOURCES:.c=.h} \
136 macro.h \
137 ioprio.h \
138 missing.h \
139 list.h \
140 securebits.h \
141 linux/auto_dev-ioctl.h \
142 initreq.h
143
47be870b
LP
144systemd_SOURCES = \
145 $(COMMON_SOURCES) \
146 main.c
147
148systemd_CPPFLAGS = \
149 $(AM_CPPFLAGS) \
150 $(DBUS_CFLAGS) \
8e274523
LP
151 $(UDEV_CFLAGS) \
152 $(CGROUP_CFLAGS)
47be870b
LP
153
154systemd_LDADD = \
155 $(DBUS_LIBS) \
8e274523
LP
156 $(UDEV_LIBS) \
157 $(CGROUP_LIBS)
47be870b
LP
158
159test_engine_SOURCES = \
160 $(COMMON_SOURCES) \
161 test-engine.c
162
163test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
164test_engine_LDADD = $(systemd_LDADD)
165
166test_job_type_SOURCES = \
167 $(COMMON_SOURCES) \
168 test-engine.c
169
170test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
171test_job_type_LDADD = $(systemd_LDADD)
172
15ae422b
LP
173test_ns_SOURCES = \
174 $(BASIC_SOURCES) \
175 test-ns.c \
176 namespace.c
177
178test_ns_CPPFLAGS = $(systemd_CPPFLAGS)
179test_ns_LDADD = $(systemd_LDADD)
180
af5bc85d
LP
181test_loopback_SOURCES = \
182 $(BASIC_SOURCES) \
183 test-loopback.c \
184 loopback-setup.c
185
186test_loopback_CPPFLAGS = $(systemd_CPPFLAGS)
187test_loopback_LDADD = $(systemd_LDADD)
188
47be870b
LP
189systemd_logger_SOURCES = \
190 $(BASIC_SOURCES) \
191 logger.c
192
0b7964b8
LP
193systemd_initctl_SOURCES = \
194 $(BASIC_SOURCES) \
195 initctl.c
196
197systemd_initctl_CPPFLAGS = \
198 $(AM_CPPFLAGS) \
199 $(DBUS_CFLAGS)
200
201systemd_initctl_LDADD = \
202 $(DBUS_LIBS)
203
8e274523
LP
204systemd_cgroups_agent_SOURCES = \
205 $(BASIC_SOURCES) \
206 cgroups-agent.c
207
208systemd_cgroups_agent_CPPFLAGS = \
209 $(AM_CPPFLAGS) \
210 $(DBUS_CFLAGS)
211
212systemd_cgroups_agent_LDADD = \
213 $(DBUS_LIBS)
214
b9cd233f 215VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gtk+-2.0
47be870b
LP
216
217systemctl_SOURCES = \
218 systemctl.vala \
219 systemd-interfaces.vala
220
221systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS)
222systemctl_LDADD = $(DBUSGLIB_LIBS)
223
224systemadm_SOURCES = \
225 systemadm.vala \
226 systemd-interfaces.vala
227
228systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS)
229systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
c1e1601e 230
70fcff31 231systemd-initctl.service: units/systemd-initctl.service.in Makefile
2d02719c
LP
232 sed -e 's,@libexecdir\@,$(libexecdir),g' \
233 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
234 < $< > $@
70fcff31
LP
235
236systemd-logger.service: units/systemd-logger.service.in Makefile
2d02719c
LP
237 sed -e 's,@libexecdir\@,$(libexecdir),g' \
238 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
239 < $< > $@
70fcff31 240
c1e1601e
LP
241CLEANFILES = \
242 systemd-interfaces.c \
243 systemctl.c \
8e274523 244 systemadm.c \
70fcff31
LP
245 systemd-initctl.service \
246 systemd-logger.service