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