File: Makefile.am

package info (click to toggle)
usermode 1.114-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,312 kB
  • sloc: ansic: 6,283; sh: 1,460; makefile: 129
file content (136 lines) | stat: -rw-r--r-- 4,199 bytes parent folder | download
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
VENDOR=redhat

EXTRA_DIST = 	\
	dummy.h \
	consolehelper.8.in \
	sample/README sample/shutdown sample/wrapped.console \
	sample/wrapped.pamd \
	userhelper.8.in \
	userhelper_context \
	userinfo.desktop.in \
	usermount.desktop.in \
	userpasswd.desktop.in

SUBDIRS=po

AM_CPPFLAGS = -DLOCALEDIR='"$(localedir)"'
if GTK
AM_CFLAGS = $(SN_CFLAGS) $(GTK_CFLAGS) $(LIBUSER_CFLAGS)
PIXMAPDIR_CPPFLAGS = -DPIXMAPDIR='"$(pixmapdir)"'
else
AM_CFLAGS = $(SN_CFLAGS) $(LIBUSER_CFLAGS)
endif
BINDIR_CPPFLAGS = -DBINDIR='"$(bindir)"'
SBINDIR_CPPFLAGS = -DSBINDIR='"$(sbindir)"'

bin_PROGRAMS = consolehelper
if GTK
bin_PROGRAMS += userinfo usermount userpasswd consolehelper-gtk pam-panel-icon
endif
sbin_PROGRAMS = userhelper
if GTK
noinst_PROGRAMS = test-userdialog
dist_man_MANS = consolehelper-gtk.8 pam-panel-icon.1 \
	userinfo.1 usermount.1 userpasswd.1
endif
man_MANS = consolehelper.8 userhelper.8

if GTK
pixmapdir = $(datadir)/pixmaps
dist_pixmap_DATA = keys.xpm status_lock.png status_unlocked.png user_icon.png \
	password.png disks.png keyring.png badge-small.png
endif

noinst_LIBRARIES = liblib.a

if GTK
install-data-local: userinfo.desktop usermount.desktop userpasswd.desktop
	mkdir -p $(DESTDIR)$(datadir)/applications
	for i in userinfo.desktop usermount.desktop userpasswd.desktop; do \
		desktop-file-install --vendor=$(VENDOR)			   \
			--dir=$(DESTDIR)$(datadir)/applications		   \
			$(top_builddir)/$$i;				   \
	done

uninstall-local:
	-rm -f $(DESTDIR)$(datadir)/applications/$(VENDOR)-userinfo.desktop   \
	       $(DESTDIR)$(datadir)/applications/$(VENDOR)-usermount.desktop  \
	       $(DESTDIR)$(datadir)/applications/$(VENDOR)-userpasswd.desktop
endif

CLEANFILES = $(man_MANS)
DISTCLEANFILES =            \
	userinfo.desktop    \
	usermount.desktop   \
	userpasswd.desktop


debug-install:
	$(INSTALL) -m4711 userhelper $(sbindir)/
	$(INSTALL)  -m755 consolehelper $(bindir)/
if GTK
	$(INSTALL)  -m755 consolehelper-gtk $(bindir)/
	$(INSTALL)  -m755 userinfo          $(bindir)/
	$(INSTALL)  -m755 usermount         $(bindir)/
	$(INSTALL)  -m755 userpasswd        $(bindir)/

dist_pkgdata_DATA = usermode.ui
endif

@INTLTOOL_DESKTOP_RULE@

userhelper_SOURCES = userhelper.c userhelper.h shvar.c shvar.h
userhelper_CPPFLAGS = $(AM_CPPFLAGS) -DSYSCONFDIR='"$(sysconfdir)"'
userhelper_LDADD = liblib.a $(LIBUSER_LIBS) $(GLIB_LIBS) $(PAM_LIBS) -lm \
	$(SELINUX_LIBS) $(EFENCE_LIBS)

if GTK
userinfo_SOURCES = userinfo.c
userinfo_CPPFLAGS = $(AM_CPPFLAGS) $(PIXMAPDIR_CPPFLAGS) $(SBINDIR_CPPFLAGS) \
	-DPKGDATADIR='"$(pkgdatadir)"'
userinfo_LDADD = liblib.a $(SN_LIBS) $(GTK_LIBS) $(EFENCE_LIBS)

usermount_SOURCES = usermount.c
usermount_CPPFLAGS = $(AM_CPPFLAGS) $(PIXMAPDIR_CPPFLAGS)
usermount_LDADD = liblib.a $(GTK_LIBS) -lblkid $(EFENCE_LIBS)

userpasswd_SOURCES = userpasswd.c
userpasswd_CPPFLAGS = $(AM_CPPFLAGS) $(SBINDIR_CPPFLAGS)
userpasswd_LDADD = liblib.a $(SN_LIBS) $(GTK_LIBS) $(EFENCE_LIBS)
endif

consolehelper_SOURCES = consolehelper-nox.c
consolehelper_CPPFLAGS = $(AM_CPPFLAGS) $(BINDIR_CPPFLAGS) $(SBINDIR_CPPFLAGS)
consolehelper_LDADD = $(GLIB_LIBS) $(EFENCE_LIBS)

if GTK
consolehelper_gtk_SOURCES = consolehelper.c
consolehelper_gtk_CPPFLAGS = $(AM_CPPFLAGS) $(SBINDIR_CPPFLAGS)
consolehelper_gtk_LDADD = liblib.a $(SN_LIBS) $(GTK_LIBS) $(EFENCE_LIBS)

pam_panel_icon_SOURCES = pam-panel-icon.c gsmclient.c gsmclient.h props.c \
	props.h
pam_panel_icon_CPPFLAGS = $(AM_CPPFLAGS) $(BINDIR_CPPFLAGS) \
	$(PIXMAPDIR_CPPFLAGS) -DGETTEXT_PACKAGE=\"$(PACKAGE)\"
pam_panel_icon_LDADD = $(GTK_LIBS) $(X_LIBS) -lICE -lSM $(EFENCE_LIBS)

test_userdialog_SOURCES = test-userdialog.c
test_userdialog_LDADD = liblib.a $(GTK_LIBS) $(EFENCE_LIBS)
endif

liblib_a_SOURCES = userhelper-messages.c userhelper-messages.h
liblib_a_CPPFLAGS = $(AM_CPPFLAGS)
if GTK
liblib_a_SOURCES += userdialogs.c userdialogs.h userhelper-wrap.c \
	userhelper-wrap.h
liblib_a_CPPFLAGS += $(PIXMAPDIR_CPPFLAGS)
endif

consolehelper.8: $(srcdir)/consolehelper.8.in Makefile
	sed 's,@''BINDIR@,$(bindir),g' < $(srcdir)/consolehelper.8.in > $@

userhelper.8: $(srcdir)/userhelper.8.in Makefile
	sed 's,@''SYSCONFDIR@,$(sysconfdir),g' < $(srcdir)/userhelper.8.in > $@

archive:
	./autogen.sh --archive