Makefile.am 3.66 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 40
	systemadm

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

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

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

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

systemd_SOURCES = \
	$(COMMON_SOURCES) \
	main.c

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

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

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

140 141 142 143 144 145 146 147 148 149 150
systemd_cgroups_agent_SOURCES = \
	$(BASIC_SOURCES) \
	cgroups-agent.c

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

systemd_cgroups_agent_LDADD = \
	$(DBUS_LIBS)

151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
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)
166 167 168 169

CLEANFILES = \
	systemd-interfaces.c \
	systemctl.c \
170 171
	systemadm.c \
	systemd-cgroups-agent