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