Makefile.am 4.1 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#  This file is part of systemd.
#
#  Copyright 2010 Lennart Poettering
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.
#
#  systemd is distributed in the hope that it will be useful, but
#  WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
#  General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with systemd; If not, see <http://www.gnu.org/licenses/>.

ACLOCAL_AMFLAGS = -I m4

20
pkgsysconfdir=$(sysconfdir)/systemd
21
dbuspolicydir=$(sysconfdir)/dbus-1/system.d
22

23
24
AM_CPPFLAGS = \
        -include $(top_builddir)/config.h \
25
26
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
	-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
31
	-DSESSION_DATA_UNIT_PATH=\"$(pkgdatadir)/session\" \
	-DCGROUP_AGENT_PATH=\"$(pkglibexecdir)/systemd-cgroups-agent\"
32
33
34
35
36
37

sbin_PROGRAMS = \
	systemd

bin_PROGRAMS = \
	systemctl \
38
39
40
41
	systemadm

pkglibexec_PROGRAMS = \
	systemd-logger \
42
43
	systemd-cgroups-agent \
	systemd-initctl
44
45
46
47
48

noinst_PROGRAMS = \
	test-engine \
	test-job-type

49
50
51
52
53
54
dbuspolicy_DATA = \
	org.freedesktop.systemd1.conf

EXTRA_DIST = \
	org.freedesktop.systemd1.conf

55
56
BASIC_SOURCES= \
        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
70
71
        log.h \
        ratelimit.c \
        ratelimit.h
72
73
74
75

COMMON_SOURCES= \
	$(BASIC_SOURCES) \
	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
109
110
111
112
113
        dbus-unit.h \
        dbus-job.c \
        dbus-job.h \
	cgroup.c \
	cgroup.h \
	mount-setup.c \
114
115
	mount-setup.h \
	hostname-setup.c \
116
117
118
	hostname-setup.h \
	utmp-wtmp.c \
	utmp-wtmp.h
119
120
121
122
123
124
125
126

systemd_SOURCES = \
	$(COMMON_SOURCES) \
	main.c

systemd_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	$(DBUS_CFLAGS) \
127
128
	$(UDEV_CFLAGS) \
	$(CGROUP_CFLAGS)
129
130
131

systemd_LDADD = \
	$(DBUS_LIBS) \
132
133
	$(UDEV_LIBS) \
	$(CGROUP_LIBS)
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152

test_engine_SOURCES = \
	$(COMMON_SOURCES) \
	test-engine.c

test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
test_engine_LDADD = $(systemd_LDADD)

test_job_type_SOURCES = \
	$(COMMON_SOURCES) \
	test-engine.c

test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
test_job_type_LDADD = $(systemd_LDADD)

systemd_logger_SOURCES = \
	$(BASIC_SOURCES) \
	logger.c

153
154
155
156
157
158
159
160
161
162
163
systemd_initctl_SOURCES = \
	$(BASIC_SOURCES) \
	initctl.c

systemd_initctl_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	$(DBUS_CFLAGS)

systemd_initctl_LDADD = \
	$(DBUS_LIBS)

164
165
166
167
168
169
170
171
172
173
174
systemd_cgroups_agent_SOURCES = \
	$(BASIC_SOURCES) \
	cgroups-agent.c

systemd_cgroups_agent_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	$(DBUS_CFLAGS)

systemd_cgroups_agent_LDADD = \
	$(DBUS_LIBS)

175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gee-1.0 --pkg gtk+-2.0

systemctl_SOURCES = \
	systemctl.vala \
	systemd-interfaces.vala

systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS)
systemctl_LDADD = $(DBUSGLIB_LIBS)

systemadm_SOURCES = \
	systemadm.vala \
	systemd-interfaces.vala

systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS)
systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
190
191
192
193

CLEANFILES = \
	systemd-interfaces.c \
	systemctl.c \
194
195
	systemadm.c \
	systemd-cgroups-agent