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