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