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