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