Makefile.am 4.19 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
udevrulesdir=/lib/udev/rules.d
23

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

sbin_PROGRAMS = \
	systemd

bin_PROGRAMS = \
	systemctl \
39 40 41 42
	systemadm

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

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

50 51 52
dbuspolicy_DATA = \
	org.freedesktop.systemd1.conf

53 54 55
udevrules_DATA = \
	99-systemd.rules

56 57
EXTRA_DIST = \
	org.freedesktop.systemd1.conf
58
	99-systemd.rules
59

60 61
BASIC_SOURCES= \
        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 75 76
        log.h \
        ratelimit.c \
        ratelimit.h
77 78 79 80

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

systemd_SOURCES = \
	$(COMMON_SOURCES) \
	main.c

systemd_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	$(DBUS_CFLAGS) \
132 133
	$(UDEV_CFLAGS) \
	$(CGROUP_CFLAGS)
134 135 136

systemd_LDADD = \
	$(DBUS_LIBS) \
137 138
	$(UDEV_LIBS) \
	$(CGROUP_LIBS)
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157

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

158 159 160 161 162 163 164 165 166 167 168
systemd_initctl_SOURCES = \
	$(BASIC_SOURCES) \
	initctl.c

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

systemd_initctl_LDADD = \
	$(DBUS_LIBS)

169 170 171 172 173 174 175 176 177 178 179
systemd_cgroups_agent_SOURCES = \
	$(BASIC_SOURCES) \
	cgroups-agent.c

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

systemd_cgroups_agent_LDADD = \
	$(DBUS_LIBS)

180 181 182 183 184 185 186 187 188 189 190 191 192 193 194
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)
195 196 197 198

CLEANFILES = \
	systemd-interfaces.c \
	systemctl.c \
199 200
	systemadm.c \
	systemd-cgroups-agent