chiark / gitweb /
gitignore: ignore files ending in ~
[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         -DSYSTEMD_BINARY_PATH=\"$(sbindir)/systemd\"
37
38 #       -DSYSTEMD_BINARY_PATH=\"/home/lennart/projects/systemd/systemd\"
39
40
41 sbin_PROGRAMS = \
42         systemd
43
44 bin_PROGRAMS = \
45         systemctl \
46         systemadm
47
48 pkglibexec_PROGRAMS = \
49         systemd-logger \
50         systemd-cgroups-agent \
51         systemd-initctl
52
53 noinst_PROGRAMS = \
54         test-engine \
55         test-job-type \
56         test-ns
57
58 dbuspolicy_DATA = \
59         org.freedesktop.systemd1.conf
60
61 udevrules_DATA = \
62         99-systemd.rules
63
64 systemunit_DATA = \
65         units/emergency.service \
66         systemd-initctl.service \
67         units/systemd-initctl.socket \
68         systemd-logger.service \
69         units/systemd-logger.socket
70
71 EXTRA_DIST = \
72         org.freedesktop.systemd1.conf \
73         99-systemd.rules \
74         units/emergency.service \
75         units/systemd-initctl.service.in \
76         units/systemd-initctl.socket \
77         units/systemd-logger.service.in \
78         units/systemd-logger.socket
79
80 BASIC_SOURCES= \
81         util.c \
82         util.h \
83         hashmap.c \
84         hashmap.h \
85         set.c \
86         set.h \
87         strv.c \
88         strv.h \
89         conf-parser.c \
90         conf-parser.h \
91         socket-util.c \
92         socket-util.h \
93         log.c \
94         log.h \
95         ratelimit.c \
96         ratelimit.h
97
98 COMMON_SOURCES= \
99         $(BASIC_SOURCES) \
100         unit.c \
101         unit.h \
102         job.c \
103         job.h \
104         manager.c \
105         manager.h \
106         load-fragment.c \
107         load-fragment.h \
108         service.c \
109         service.h \
110         automount.c \
111         automount.h \
112         mount.c \
113         mount.h \
114         device.c \
115         device.h \
116         target.c \
117         target.h \
118         snapshot.c \
119         snapshot.h \
120         socket.c \
121         socket.h \
122         timer.c \
123         timer.h \
124         load-dropin.c \
125         load-dropin.h \
126         execute.c \
127         execute.h \
128         dbus.c \
129         dbus.h \
130         dbus-manager.c \
131         dbus-manager.h \
132         dbus-unit.c \
133         dbus-unit.h \
134         dbus-job.c \
135         dbus-job.h \
136         dbus-service.c \
137         dbus-service.h \
138         dbus-socket.c \
139         dbus-socket.h \
140         dbus-target.c \
141         dbus-target.h \
142         dbus-mount.c \
143         dbus-mount.h \
144         dbus-automount.c \
145         dbus-autpmount.h \
146         dbus-snapshot.c \
147         dbus-snapshot.h \
148         dbus-device.c \
149         dbus-device.h \
150         dbus-execute.c \
151         dbus-execute.h \
152         cgroup.c \
153         cgroup.h \
154         mount-setup.c \
155         mount-setup.h \
156         hostname-setup.c \
157         hostname-setup.h \
158         utmp-wtmp.c \
159         utmp-wtmp.h \
160         specifier.c \
161         specifier.h \
162         unit-name.c \
163         unit-name.h \
164         fdset.c \
165         fdset.h \
166         namespace.h \
167         namespace.c
168
169 systemd_SOURCES = \
170         $(COMMON_SOURCES) \
171         main.c
172
173 systemd_CPPFLAGS = \
174         $(AM_CPPFLAGS) \
175         $(DBUS_CFLAGS) \
176         $(UDEV_CFLAGS) \
177         $(CGROUP_CFLAGS)
178
179 systemd_LDADD = \
180         $(DBUS_LIBS) \
181         $(UDEV_LIBS) \
182         $(CGROUP_LIBS)
183
184 test_engine_SOURCES = \
185         $(COMMON_SOURCES) \
186         test-engine.c
187
188 test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
189 test_engine_LDADD = $(systemd_LDADD)
190
191 test_job_type_SOURCES = \
192         $(COMMON_SOURCES) \
193         test-engine.c
194
195 test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
196 test_job_type_LDADD = $(systemd_LDADD)
197
198 test_ns_SOURCES = \
199         $(BASIC_SOURCES) \
200         test-ns.c \
201         namespace.c
202
203 test_ns_CPPFLAGS = $(systemd_CPPFLAGS)
204 test_ns_LDADD = $(systemd_LDADD)
205
206 systemd_logger_SOURCES = \
207         $(BASIC_SOURCES) \
208         logger.c
209
210 systemd_initctl_SOURCES = \
211         $(BASIC_SOURCES) \
212         initctl.c
213
214 systemd_initctl_CPPFLAGS = \
215         $(AM_CPPFLAGS) \
216         $(DBUS_CFLAGS)
217
218 systemd_initctl_LDADD = \
219         $(DBUS_LIBS)
220
221 systemd_cgroups_agent_SOURCES = \
222         $(BASIC_SOURCES) \
223         cgroups-agent.c
224
225 systemd_cgroups_agent_CPPFLAGS = \
226         $(AM_CPPFLAGS) \
227         $(DBUS_CFLAGS)
228
229 systemd_cgroups_agent_LDADD = \
230         $(DBUS_LIBS)
231
232 VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gtk+-2.0
233
234 systemctl_SOURCES = \
235         systemctl.vala \
236         systemd-interfaces.vala
237
238 systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS)
239 systemctl_LDADD = $(DBUSGLIB_LIBS)
240
241 systemadm_SOURCES = \
242         systemadm.vala \
243         systemd-interfaces.vala
244
245 systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS)
246 systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
247
248 systemd-initctl.service: units/systemd-initctl.service.in Makefile
249         sed -e 's,@libexecdir\@,$(libexecdir),g' \
250                 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
251                 < $< > $@
252
253 systemd-logger.service: units/systemd-logger.service.in Makefile
254         sed -e 's,@libexecdir\@,$(libexecdir),g' \
255                 -e 's,@pkglibexecdir\@,$(pkglibexecdir),g' \
256                 < $< > $@
257
258 CLEANFILES = \
259         systemd-interfaces.c \
260         systemctl.c \
261         systemadm.c \
262         systemd-initctl.service \
263         systemd-logger.service