Makefile.am 3.84 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 26 27
	-DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
	-DSYSTEM_DATA_UNIT_PATH=\"$(pkgdatadir)/system\" \
	-DSYSTEM_SYSVINIT_PATH=\"$(sysconfdir)/init.d\" \
	-DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
28 29
	-DSESSION_DATA_UNIT_PATH=\"$(pkgdatadir)/session\" \
	-DCGROUP_AGENT_PATH=\"$(pkglibexecdir)/systemd-cgroups-agent\"
30 31 32 33 34 35

sbin_PROGRAMS = \
	systemd

bin_PROGRAMS = \
	systemctl \
36 37 38 39
	systemadm

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

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

BASIC_SOURCES= \
        util.c \
49
        util.h \
50
        hashmap.c \
51
        hashmap.h \
52
        set.c \
53
        set.h \
54
        strv.c \
55
        strv.h \
56
        conf-parser.c \
57
        conf-parser.h \
58
        socket-util.c \
59
        socket-util.h \
60
        log.c \
61 62 63
        log.h \
        ratelimit.c \
        ratelimit.h
64 65 66 67

COMMON_SOURCES= \
	$(BASIC_SOURCES) \
	unit.c \
68
	unit.h \
69
        job.c \
70
	job.h \
71
        manager.c \
72
        manager.h \
73
        load-fragment.c \
74
        load-fragment.h \
75
        service.c \
76
        service.h \
77
        automount.c \
78
        automount.h \
79
        mount.c \
80
        mount.h \
81
        device.c \
82
        device.h \
83
        target.c \
84
        target.h \
85
        snapshot.c \
86
        snapshot.h \
87
        socket.c \
88
        socket.h \
89
        timer.c \
90
        timer.h \
91
        load-dropin.c \
92
        load-dropin.h \
93
        execute.c \
94
        execute.h \
95
        dbus.c \
96
        dbus.h \
97
        dbus-manager.c \
98
        dbus-manager.h \
99
        dbus-unit.c \
100 101 102 103 104 105 106
        dbus-unit.h \
        dbus-job.c \
        dbus-job.h \
	cgroup.c \
	cgroup.h \
	mount-setup.c \
	mount-setup.h
107 108 109 110 111 112 113 114

systemd_SOURCES = \
	$(COMMON_SOURCES) \
	main.c

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

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

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

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

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

systemd_initctl_LDADD = \
	$(DBUS_LIBS)

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

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

systemd_cgroups_agent_LDADD = \
	$(DBUS_LIBS)

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

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