]> git.ipfire.org Git - people/ms/systemd.git/blob - Makefile.am
dbus: send out signals when units/jobs come, go and change
[people/ms/systemd.git] / Makefile.am
1 # This file is part of systemd.
2 #
3 # Copyright 2010 Lennart Poettering
4 #
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # systemd is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
17
18 ACLOCAL_AMFLAGS = -I m4
19
20 AM_CPPFLAGS = \
21 -include $(top_builddir)/config.h \
22 -DUNIT_PATH=\"/tmp/does/not/exist\"
23
24 sbin_PROGRAMS = \
25 systemd
26
27 bin_PROGRAMS = \
28 systemctl \
29 systemadm \
30 systemd-logger
31
32 noinst_PROGRAMS = \
33 test-engine \
34 test-job-type
35
36 BASIC_SOURCES= \
37 util.c \
38 hashmap.c \
39 set.c \
40 strv.c \
41 conf-parser.c \
42 socket-util.c \
43 log.c \
44 ratelimit.c
45
46 COMMON_SOURCES= \
47 $(BASIC_SOURCES) \
48 unit.c \
49 job.c \
50 manager.c \
51 load-fragment.c \
52 service.c \
53 automount.c \
54 mount.c \
55 device.c \
56 target.c \
57 snapshot.c \
58 socket.c \
59 timer.c \
60 load-dropin.c \
61 execute.c \
62 dbus.c \
63 dbus-manager.c \
64 dbus-unit.c \
65 dbus-job.c
66
67 systemd_SOURCES = \
68 $(COMMON_SOURCES) \
69 main.c
70
71 systemd_CPPFLAGS = \
72 $(AM_CPPFLAGS) \
73 $(DBUS_CFLAGS) \
74 $(UDEV_CFLAGS)
75
76 systemd_LDADD = \
77 $(DBUS_LIBS) \
78 $(UDEV_LIBS)
79
80 test_engine_SOURCES = \
81 $(COMMON_SOURCES) \
82 test-engine.c
83
84 test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
85 test_engine_LDADD = $(systemd_LDADD)
86
87 test_job_type_SOURCES = \
88 $(COMMON_SOURCES) \
89 test-engine.c
90
91 test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
92 test_job_type_LDADD = $(systemd_LDADD)
93
94 systemd_logger_SOURCES = \
95 $(BASIC_SOURCES) \
96 logger.c
97
98 VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gee-1.0 --pkg gtk+-2.0
99
100 systemctl_SOURCES = \
101 systemctl.vala \
102 systemd-interfaces.vala
103
104 systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS)
105 systemctl_LDADD = $(DBUSGLIB_LIBS)
106
107 systemadm_SOURCES = \
108 systemadm.vala \
109 systemd-interfaces.vala
110
111 systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS)
112 systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
113
114 CLEANFILES = \
115 systemd-interfaces.c \
116 systemctl.c \
117 systemadm.c