]> git.ipfire.org Git - people/ms/systemd.git/blame - Makefile.am
build: basic autoconfization
[people/ms/systemd.git] / Makefile.am
CommitLineData
47be870b
LP
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
18ACLOCAL_AMFLAGS = -I m4
19
20AM_CPPFLAGS = \
21 -include $(top_builddir)/config.h \
22 -DUNIT_PATH=\"/tmp/does/not/exist\"
23
24sbin_PROGRAMS = \
25 systemd
26
27bin_PROGRAMS = \
28 systemctl \
29 systemadm \
30 systemd-logger
31
32noinst_PROGRAMS = \
33 test-engine \
34 test-job-type
35
36BASIC_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
46COMMON_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
67systemd_SOURCES = \
68 $(COMMON_SOURCES) \
69 main.c
70
71systemd_CPPFLAGS = \
72 $(AM_CPPFLAGS) \
73 $(DBUS_CFLAGS) \
74 $(UDEV_CFLAGS)
75
76systemd_LDADD = \
77 $(DBUS_LIBS) \
78 $(UDEV_LIBS)
79
80test_engine_SOURCES = \
81 $(COMMON_SOURCES) \
82 test-engine.c
83
84test_engine_CPPFLAGS = $(systemd_CPPFLAGS)
85test_engine_LDADD = $(systemd_LDADD)
86
87test_job_type_SOURCES = \
88 $(COMMON_SOURCES) \
89 test-engine.c
90
91test_job_type_CPPFLAGS = $(systemd_CPPFLAGS)
92test_job_type_LDADD = $(systemd_LDADD)
93
94systemd_logger_SOURCES = \
95 $(BASIC_SOURCES) \
96 logger.c
97
98VALAFLAGS = -g --save-temps --pkg=dbus-glib-1 --pkg=posix --pkg gee-1.0 --pkg gtk+-2.0
99
100systemctl_SOURCES = \
101 systemctl.vala \
102 systemd-interfaces.vala
103
104systemctl_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS)
105systemctl_LDADD = $(DBUSGLIB_LIBS)
106
107systemadm_SOURCES = \
108 systemadm.vala \
109 systemd-interfaces.vala
110
111systemadm_CPPFLAGS = $(AM_CPPFLAGS) $(DBUSGLIB_CFLAGS) $(GTK_CFLAGS)
112systemadm_LDADD = $(DBUSGLIB_LIBS) $(GTK_LIBS)