-
Notifications
You must be signed in to change notification settings - Fork 23
/
Makefile.am
88 lines (74 loc) · 1.77 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
AM_CFLAGS = \
-std=gnu99 \
-fstack-protector \
-Wall \
-pedantic \
-Wstrict-prototypes \
-Wundef \
-fno-common \
-Werror-implicit-function-declaration \
-Wformat \
-Wformat-security \
-Werror=format-security \
-Wconversion
bin_PROGRAMS = user-session-launch
user_session_launch_SOURCES = \
src/launcher.c \
src/pam.c
# FIXME: add pkgconfig checks for these instead
user_session_launch_LDADD = \
$(LIBSYSTEMD_LIBS) \
-lpam \
-lpam_misc
EXTRA_DIST = patches/dbus-fix-sba-for-dbus-activation.patch
systemdsystemunitdir = @SYSTEMDSYSTEMUNITDIR@
systemduserunitdir = @SYSTEMDUSERUNITDIR@
systemdsystemunit_DATA = \
units/system/[email protected] \
units/system/systemd-stop-user-sessions.service
systemduserunit_DATA = \
units/user/dbus.socket \
units/user/dbus.service \
units/user/cmdline.target \
units/user/graphical.target \
units/user/display-server.target
if HAVE_E
systemduserunit_DATA += \
units/user/enlightenment.service
endif
if HAVE_XBMC
systemduserunit_DATA += \
units/user/xbmc.service
endif
if HAVE_XFCE
systemduserunit_DATA += \
units/user/xfce4-session.service \
units/user/xfwm4.service
endif
if HAVE_GNOME
systemduserunit_DATA += \
units/user/gnome-session.service
endif
if HAVE_MATE
systemduserunit_DATA += \
units/user/mate-session.service
endif
if HAVE_KDE
systemduserunit_DATA += \
units/user/kde.service
endif
if HAVE_MYTH
systemduserunit_DATA += \
units/user/mythfrontend.service
endif
if HAVE_OPENBOX
systemduserunit_DATA += \
units/user/openbox.service
endif
if HAVE_STEAM
systemduserunit_DATA += \
units/user/steam.service
endif
install-data-hook:
$(mkinstalldirs) $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)/shutdown.target.wants
ln -sf ../systemd-stop-user-sessions.service $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)/shutdown.target.wants/