]>
Commit | Line | Data |
---|---|---|
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 | ||
111 | systemd_SOURCES = \ | |
112 | $(COMMON_SOURCES) \ | |
113 | main.c | |
114 | ||
115 | systemd_CPPFLAGS = \ | |
116 | $(AM_CPPFLAGS) \ | |
117 | $(DBUS_CFLAGS) \ | |
118 | $(UDEV_CFLAGS) \ | |
119 | $(CGROUP_CFLAGS) | |
120 | ||
121 | systemd_LDADD = \ | |
122 | $(DBUS_LIBS) \ | |
123 | $(UDEV_LIBS) \ | |
124 | $(CGROUP_LIBS) | |
125 | ||
126 | test_engine_SOURCES = \ | |
127 | $(COMMON_SOURCES) \ | |
128 | test-engine.c | |
129 | ||
130 | test_engine_CPPFLAGS = $(systemd_CPPFLAGS) | |
131 | test_engine_LDADD = $(systemd_LDADD) | |
132 | ||
133 | test_job_type_SOURCES = \ | |
134 | $(COMMON_SOURCES) \ | |
135 | test-engine.c | |
136 | ||
137 | test_job_type_CPPFLAGS = $(systemd_CPPFLAGS) | |
138 | test_job_type_LDADD = $(systemd_LDADD) | |
139 | ||
140 | systemd_logger_SOURCES = \ | |
141 | $(BASIC_SOURCES) \ | |
142 | logger.c | |
143 | ||
144 | systemd_initctl_SOURCES = \ | |
145 | $(BASIC_SOURCES) \ | |
146 | initctl.c | |
147 | ||
148 | systemd_initctl_CPPFLAGS = \ | |
149 | $(AM_CPPFLAGS) \ | |
150 | $(DBUS_CFLAGS) | |
151 | ||
152 | systemd_initctl_LDADD = \ | |
153 | $(DBUS_LIBS) | |
154 | ||
155 | systemd_cgroups_agent_SOURCES = \ | |
156 | $(BASIC_SOURCES) \ | |
157 | cgroups-agent.c | |
158 | ||
159 | systemd_cgroups_agent_CPPFLAGS = \ | |
160 | $(AM_CPPFLAGS) \ | |
161 | $(DBUS_CFLAGS) | |
162 | ||
163 | systemd_cgroups_agent_LDADD = \ | |
164 | $(DBUS_LIBS) | |
165 | ||
166 | VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gee-1.0 --pkg gtk+-2.0 | |
167 | ||
168 | systemctl_SOURCES = \ | |
169 | systemctl.vala \ | |
170 | systemd-interfaces.vala | |
171 | ||
172 | systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) | |
173 | systemctl_LDADD = $(DBUSGLIB_LIBS) | |
174 | ||
175 | systemadm_SOURCES = \ | |
176 | systemadm.vala \ | |
177 | systemd-interfaces.vala | |
178 | ||
179 | systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS) | |
180 | systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS) | |
181 | ||
182 | CLEANFILES = \ | |
183 | systemd-interfaces.c \ | |
184 | systemctl.c \ | |
185 | systemadm.c \ | |
186 | systemd-cgroups-agent |