Makefile.am 3.89 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 21
pkgsysconfdir=$(sysconfdir)/systemd

22 23
AM_CPPFLAGS = \
        -include $(top_builddir)/config.h \
24 25
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
	-DSYSTEM_DATA_UNIT_PATH=\"$(pkgdatadir)/system\" \
26 27
	-DSYSTEM_SYSVINIT_PATH=\"$(SYSTEM_SYSVINIT_PATH)\" \
	-DSYSTEM_RCND_PATH=\"$(SYSTEM_SYSVRCND_PATH)\" \
28
	-DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
29 30
	-DSESSION_DATA_UNIT_PATH=\"$(pkgdatadir)/session\" \
	-DCGROUP_AGENT_PATH=\"$(pkglibexecdir)/systemd-cgroups-agent\"
31 32 33 34 35 36

sbin_PROGRAMS = \
	systemd

bin_PROGRAMS = \
	systemctl \
37 38 39 40
	systemadm

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

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

BASIC_SOURCES= \
        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 63 64
        log.h \
        ratelimit.c \
        ratelimit.h
65 66 67 68

COMMON_SOURCES= \
	$(BASIC_SOURCES) \
	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 102 103 104 105 106 107
        dbus-unit.h \
        dbus-job.c \
        dbus-job.h \
	cgroup.c \
	cgroup.h \
	mount-setup.c \
	mount-setup.h
108 109 110 111 112 113 114 115

systemd_SOURCES = \
	$(COMMON_SOURCES) \
	main.c

systemd_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	$(DBUS_CFLAGS) \
116 117
	$(UDEV_CFLAGS) \
	$(CGROUP_CFLAGS)
118 119 120

systemd_LDADD = \
	$(DBUS_LIBS) \
121 122
	$(UDEV_LIBS) \
	$(CGROUP_LIBS)
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141

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

142 143 144 145 146 147 148 149 150 151 152
systemd_initctl_SOURCES = \
	$(BASIC_SOURCES) \
	initctl.c

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

systemd_initctl_LDADD = \
	$(DBUS_LIBS)

153 154 155 156 157 158 159 160 161 162 163
systemd_cgroups_agent_SOURCES = \
	$(BASIC_SOURCES) \
	cgroups-agent.c

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

systemd_cgroups_agent_LDADD = \
	$(DBUS_LIBS)

164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
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)
179 180 181 182

CLEANFILES = \
	systemd-interfaces.c \
	systemctl.c \
183 184
	systemadm.c \
	systemd-cgroups-agent