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