]> git.ipfire.org Git - thirdparty/systemd.git/blame - Makefile.am
build-sys: drop -Wunsafe-loop-optimizations
[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 \
0b7964b8
LP
40 systemd-cgroups-agent \
41 systemd-initctl
47be870b
LP
42
43noinst_PROGRAMS = \
44 test-engine \
45 test-job-type
46
47BASIC_SOURCES= \
48 util.c \
8e274523 49 util.h \
47be870b 50 hashmap.c \
8e274523 51 hashmap.h \
47be870b 52 set.c \
8e274523 53 set.h \
47be870b 54 strv.c \
8e274523 55 strv.h \
47be870b 56 conf-parser.c \
8e274523 57 conf-parser.h \
47be870b 58 socket-util.c \
8e274523 59 socket-util.h \
47be870b 60 log.c \
8e274523
LP
61 log.h \
62 ratelimit.c \
63 ratelimit.h
47be870b
LP
64
65COMMON_SOURCES= \
66 $(BASIC_SOURCES) \
67 unit.c \
8e274523 68 unit.h \
47be870b 69 job.c \
8e274523 70 job.h \
47be870b 71 manager.c \
8e274523 72 manager.h \
47be870b 73 load-fragment.c \
8e274523 74 load-fragment.h \
47be870b 75 service.c \
8e274523 76 service.h \
47be870b 77 automount.c \
8e274523 78 automount.h \
47be870b 79 mount.c \
8e274523 80 mount.h \
47be870b 81 device.c \
8e274523 82 device.h \
47be870b 83 target.c \
8e274523 84 target.h \
47be870b 85 snapshot.c \
8e274523 86 snapshot.h \
47be870b 87 socket.c \
8e274523 88 socket.h \
47be870b 89 timer.c \
8e274523 90 timer.h \
47be870b 91 load-dropin.c \
8e274523 92 load-dropin.h \
47be870b 93 execute.c \
8e274523 94 execute.h \
47be870b 95 dbus.c \
8e274523 96 dbus.h \
47be870b 97 dbus-manager.c \
8e274523 98 dbus-manager.h \
47be870b 99 dbus-unit.c \
8e274523
LP
100 dbus-unit.h \
101 dbus-job.c \
102 dbus-job.h \
103 cgroup.c \
104 cgroup.h \
105 mount-setup.c \
106 mount-setup.h
47be870b
LP
107
108systemd_SOURCES = \
109 $(COMMON_SOURCES) \
110 main.c
111
112systemd_CPPFLAGS = \
113 $(AM_CPPFLAGS) \
114 $(DBUS_CFLAGS) \
8e274523
LP
115 $(UDEV_CFLAGS) \
116 $(CGROUP_CFLAGS)
47be870b
LP
117
118systemd_LDADD = \
119 $(DBUS_LIBS) \
8e274523
LP
120 $(UDEV_LIBS) \
121 $(CGROUP_LIBS)
47be870b
LP
122
123test_engine_SOURCES = \
124 $(COMMON_SOURCES) \
125 test-engine.c
126
127test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
128test_engine_LDADD = $(systemd_LDADD)
129
130test_job_type_SOURCES = \
131 $(COMMON_SOURCES) \
132 test-engine.c
133
134test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
135test_job_type_LDADD = $(systemd_LDADD)
136
137systemd_logger_SOURCES = \
138 $(BASIC_SOURCES) \
139 logger.c
140
0b7964b8
LP
141systemd_initctl_SOURCES = \
142 $(BASIC_SOURCES) \
143 initctl.c
144
145systemd_initctl_CPPFLAGS = \
146 $(AM_CPPFLAGS) \
147 $(DBUS_CFLAGS)
148
149systemd_initctl_LDADD = \
150 $(DBUS_LIBS)
151
8e274523
LP
152systemd_cgroups_agent_SOURCES = \
153 $(BASIC_SOURCES) \
154 cgroups-agent.c
155
156systemd_cgroups_agent_CPPFLAGS = \
157 $(AM_CPPFLAGS) \
158 $(DBUS_CFLAGS)
159
160systemd_cgroups_agent_LDADD = \
161 $(DBUS_LIBS)
162
47be870b
LP
163VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gee-1.0 --pkg gtk+-2.0
164
165systemctl_SOURCES = \
166 systemctl.vala \
167 systemd-interfaces.vala
168
169systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS)
170systemctl_LDADD = $(DBUSGLIB_LIBS)
171
172systemadm_SOURCES = \
173 systemadm.vala \
174 systemd-interfaces.vala
175
176systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS)
177systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
c1e1601e
LP
178
179CLEANFILES = \
180 systemd-interfaces.c \
181 systemctl.c \
8e274523
LP
182 systemadm.c \
183 systemd-cgroups-agent