chiark / gitweb /
service: don't continue looking for syv init scripts after the first failure
[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
22 AM_CPPFLAGS = \
23         -include $(top_builddir)/config.h \
24         -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
25         -DSYSTEM_DATA_UNIT_PATH=\"$(pkgdatadir)/system\" \
26         -DSYSTEM_SYSVINIT_PATH=\"$(sysconfdir)/init.d\" \
27         -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
28         -DSESSION_DATA_UNIT_PATH=\"$(pkgdatadir)/session\" \
29         -DCGROUP_AGENT_PATH=\"$(pkglibexecdir)/systemd-cgroups-agent\"
30
31 sbin_PROGRAMS = \
32         systemd
33
34 bin_PROGRAMS = \
35         systemctl \
36         systemadm
37
38 pkglibexec_PROGRAMS = \
39         systemd-logger \
40         systemd-cgroups-agent
41
42 noinst_PROGRAMS = \
43         test-engine \
44         test-job-type
45
46 BASIC_SOURCES= \
47         util.c \
48         util.h \
49         hashmap.c \
50         hashmap.h \
51         set.c \
52         set.h \
53         strv.c \
54         strv.h \
55         conf-parser.c \
56         conf-parser.h \
57         socket-util.c \
58         socket-util.h \
59         log.c \
60         log.h \
61         ratelimit.c \
62         ratelimit.h
63
64 COMMON_SOURCES= \
65         $(BASIC_SOURCES) \
66         unit.c \
67         unit.h \
68         job.c \
69         job.h \
70         manager.c \
71         manager.h \
72         load-fragment.c \
73         load-fragment.h \
74         service.c \
75         service.h \
76         automount.c \
77         automount.h \
78         mount.c \
79         mount.h \
80         device.c \
81         device.h \
82         target.c \
83         target.h \
84         snapshot.c \
85         snapshot.h \
86         socket.c \
87         socket.h \
88         timer.c \
89         timer.h \
90         load-dropin.c \
91         load-dropin.h \
92         execute.c \
93         execute.h \
94         dbus.c \
95         dbus.h \
96         dbus-manager.c \
97         dbus-manager.h \
98         dbus-unit.c \
99         dbus-unit.h \
100         dbus-job.c \
101         dbus-job.h \
102         cgroup.c \
103         cgroup.h \
104         mount-setup.c \
105         mount-setup.h
106
107 systemd_SOURCES = \
108         $(COMMON_SOURCES) \
109         main.c
110
111 systemd_CPPFLAGS = \
112         $(AM_CPPFLAGS) \
113         $(DBUS_CFLAGS) \
114         $(UDEV_CFLAGS) \
115         $(CGROUP_CFLAGS)
116
117 systemd_LDADD = \
118         $(DBUS_LIBS) \
119         $(UDEV_LIBS) \
120         $(CGROUP_LIBS)
121
122 test_engine_SOURCES = \
123         $(COMMON_SOURCES) \
124         test-engine.c
125
126 test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
127 test_engine_LDADD = $(systemd_LDADD)
128
129 test_job_type_SOURCES = \
130         $(COMMON_SOURCES) \
131         test-engine.c
132
133 test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
134 test_job_type_LDADD = $(systemd_LDADD)
135
136 systemd_logger_SOURCES = \
137         $(BASIC_SOURCES) \
138         logger.c
139
140 systemd_cgroups_agent_SOURCES = \
141         $(BASIC_SOURCES) \
142         cgroups-agent.c
143
144 systemd_cgroups_agent_CPPFLAGS = \
145         $(AM_CPPFLAGS) \
146         $(DBUS_CFLAGS)
147
148 systemd_cgroups_agent_LDADD = \
149         $(DBUS_LIBS)
150
151 VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gee-1.0 --pkg gtk+-2.0
152
153 systemctl_SOURCES = \
154         systemctl.vala \
155         systemd-interfaces.vala
156
157 systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS)
158 systemctl_LDADD = $(DBUSGLIB_LIBS)
159
160 systemadm_SOURCES = \
161         systemadm.vala \
162         systemd-interfaces.vala
163
164 systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS)
165 systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
166
167 CLEANFILES = \
168         systemd-interfaces.c \
169         systemctl.c \
170         systemadm.c \
171         systemd-cgroups-agent