]> git.ipfire.org Git - people/ms/systemd.git/blob - Makefile.am
3fc221c7f0549941c657212851048d2e3c10ac2c
[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 pkgsysconfdir=$(sysconfdir)/systemd
21
22 AM_CPPFLAGS = \
23 -include $(top_builddir)/config.h \
24 -DSYSTEM_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/system\" \
25 -DSYSTEM_DATA_UNIT_PATH=\"$(pkgdatadir)/system\" \
26 -DSYSTEM_SYSVINIT_PATH=\"$(sysconfdir)/init.d\" \
27 -DSESSION_CONFIG_UNIT_PATH=\"$(pkgsysconfdir)/session\" \
28 -DSESSION_DATA_UNIT_PATH=\"$(pkgdatadir)/session\"
29
30 sbin_PROGRAMS = \
31 systemd
32
33 bin_PROGRAMS = \
34 systemctl \
35 systemadm \
36 systemd-logger
37
38 noinst_PROGRAMS = \
39 test-engine \
40 test-job-type
41
42 BASIC_SOURCES= \
43 util.c \
44 hashmap.c \
45 set.c \
46 strv.c \
47 conf-parser.c \
48 socket-util.c \
49 log.c \
50 ratelimit.c
51
52 COMMON_SOURCES= \
53 $(BASIC_SOURCES) \
54 unit.c \
55 job.c \
56 manager.c \
57 load-fragment.c \
58 service.c \
59 automount.c \
60 mount.c \
61 device.c \
62 target.c \
63 snapshot.c \
64 socket.c \
65 timer.c \
66 load-dropin.c \
67 execute.c \
68 dbus.c \
69 dbus-manager.c \
70 dbus-unit.c \
71 dbus-job.c
72
73 systemd_SOURCES = \
74 $(COMMON_SOURCES) \
75 main.c
76
77 systemd_CPPFLAGS = \
78 $(AM_CPPFLAGS) \
79 $(DBUS_CFLAGS) \
80 $(UDEV_CFLAGS)
81
82 systemd_LDADD = \
83 $(DBUS_LIBS) \
84 $(UDEV_LIBS)
85
86 test_engine_SOURCES = \
87 $(COMMON_SOURCES) \
88 test-engine.c
89
90 test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
91 test_engine_LDADD = $(systemd_LDADD)
92
93 test_job_type_SOURCES = \
94 $(COMMON_SOURCES) \
95 test-engine.c
96
97 test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
98 test_job_type_LDADD = $(systemd_LDADD)
99
100 systemd_logger_SOURCES = \
101 $(BASIC_SOURCES) \
102 logger.c
103
104 VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gee-1.0 --pkg gtk+-2.0
105
106 systemctl_SOURCES = \
107 systemctl.vala \
108 systemd-interfaces.vala
109
110 systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS)
111 systemctl_LDADD = $(DBUSGLIB_LIBS)
112
113 systemadm_SOURCES = \
114 systemadm.vala \
115 systemd-interfaces.vala
116
117 systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS)
118 systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)
119
120 CLEANFILES = \
121 systemd-interfaces.c \
122 systemctl.c \
123 systemadm.c