|
Packit Service |
09cdfc |
AM_CFLAGS = -Wall -Wextra -D_FORTIFY_SOURCE=2 $(PIE_CFLAGS) $(RELRO_CFLAGS)
|
|
Packit Service |
09cdfc |
ACLOCAL_AMFLAGS = -I aclocal
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
root_sbindir = $(ROOTSBINDIR)
|
|
Packit Service |
09cdfc |
root_sbin_PROGRAMS = mount.cifs
|
|
Packit Service |
09cdfc |
mount_cifs_SOURCES = mount.cifs.c mtab.c resolve_host.c util.c
|
|
Packit Service |
09cdfc |
mount_cifs_LDADD = $(LIBCAP) $(CAPNG_LDADD) $(RT_LDADD)
|
|
Packit Service |
09cdfc |
include_HEADERS = cifsidmap.h
|
|
Packit Service |
09cdfc |
rst_man_pages = mount.cifs.8
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
#
|
|
Packit Service |
09cdfc |
# Generate man pages troff source from POD format
|
|
Packit Service |
09cdfc |
#
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
man_MANS=
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
SUFFIXES = .rst .1 .8
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
RST2MAN = rst2man --syntax-highlight=none $< $@
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
.rst.1:
|
|
Packit Service |
09cdfc |
$(RST2MAN)
|
|
Packit Service |
09cdfc |
.rst.8:
|
|
Packit Service |
09cdfc |
$(RST2MAN)
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
CLEANFILES =
|
|
Packit Service |
09cdfc |
bin_PROGRAMS =
|
|
Packit Service |
09cdfc |
sbin_PROGRAMS =
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
if CONFIG_CIFSUPCALL
|
|
Packit Service |
09cdfc |
sbin_PROGRAMS += cifs.upcall
|
|
Packit Service |
09cdfc |
cifs_upcall_SOURCES = cifs.upcall.c data_blob.c asn1.c spnego.c
|
|
Packit Service |
09cdfc |
cifs_upcall_LDADD = -ltalloc -lkeyutils $(KRB5_LDADD) $(CAPNG_LDADD)
|
|
Packit Service |
09cdfc |
rst_man_pages += cifs.upcall.8
|
|
Packit Service |
09cdfc |
#
|
|
Packit Service |
09cdfc |
# Fix the pathnames in manpages. To prevent @label@ being replaced by m4, we
|
|
Packit Service |
09cdfc |
# need to obfuscate the LHS of the regex (hence the trivial one character set).
|
|
Packit Service |
09cdfc |
#
|
|
Packit Service |
09cdfc |
cifs.upcall.rst: cifs.upcall.rst.in
|
|
Packit Service |
09cdfc |
$(SED) 's,[@]sbindir@,$(sbindir),' $(srcdir)/$@.in > $@-t && mv $@-t $@
|
|
Packit Service |
09cdfc |
endif
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
if CONFIG_CIFSCREDS
|
|
Packit Service |
09cdfc |
bin_PROGRAMS += cifscreds
|
|
Packit Service |
09cdfc |
cifscreds_SOURCES = cifscreds.c cifskey.c resolve_host.c util.c
|
|
Packit Service |
09cdfc |
cifscreds_LDADD = -lkeyutils
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
rst_man_pages += cifscreds.1
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
endif
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
if CONFIG_CIFSIDMAP
|
|
Packit Service |
09cdfc |
sbin_PROGRAMS += cifs.idmap
|
|
Packit Service |
09cdfc |
cifs_idmap_SOURCES = cifs.idmap.c idmap_plugin.c
|
|
Packit Service |
09cdfc |
cifs_idmap_LDADD = -lkeyutils -ldl
|
|
Packit Service |
09cdfc |
rst_man_pages += cifs.idmap.8
|
|
Packit Service |
09cdfc |
CLEANFILES += cifs.idmap.rst
|
|
Packit Service |
09cdfc |
cifs.idmap.rst: cifs.idmap.rst.in
|
|
Packit Service |
09cdfc |
$(SED) -e 's,[@]sbindir@,$(sbindir),' -e 's,[@]pluginpath@,$(pluginpath),' $(srcdir)/$@.in > $@-t && mv $@-t $@
|
|
Packit Service |
09cdfc |
endif
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
if CONFIG_CIFSACL
|
|
Packit Service |
09cdfc |
bin_PROGRAMS += getcifsacl
|
|
Packit Service |
09cdfc |
getcifsacl_SOURCES = getcifsacl.c idmap_plugin.c
|
|
Packit Service |
09cdfc |
getcifsacl_LDADD = -ldl
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
rst_man_pages += getcifsacl.1
|
|
Packit Service |
09cdfc |
CLEANFILES += getcifsacl.rst
|
|
Packit Service |
09cdfc |
getcifsacl.rst: getcifsacl.rst.in
|
|
Packit Service |
09cdfc |
$(SED) 's,[@]pluginpath@,$(pluginpath),' $(srcdir)/$@.in > $@-t && mv $@-t $@
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
bin_PROGRAMS += setcifsacl
|
|
Packit Service |
09cdfc |
setcifsacl_SOURCES = setcifsacl.c idmap_plugin.c
|
|
Packit Service |
09cdfc |
setcifsacl_LDADD = -ldl
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
rst_man_pages += setcifsacl.1
|
|
Packit Service |
09cdfc |
CLEANFILES += setcifsacl.rst
|
|
Packit Service |
09cdfc |
setcifsacl.rst: setcifsacl.rst.in
|
|
Packit Service |
09cdfc |
$(SED) 's,[@]pluginpath@,$(pluginpath),' $(srcdir)/$@.in > $@-t && mv $@-t $@
|
|
Packit Service |
09cdfc |
endif
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
if CONFIG_PLUGIN
|
|
Packit Service |
09cdfc |
plugindir = $(pkglibdir)
|
|
Packit Service |
09cdfc |
plugin_PROGRAMS = idmapwb.so
|
|
Packit Service |
09cdfc |
idmapwb.so: idmapwb.c
|
|
Packit Service |
09cdfc |
$(CC) $(DEFS) $(CFLAGS) $(AM_CFLAGS) $(WBCLIENT_CFLAGS) $(LDFLAGS) -shared -fpic -o $@ $+ $(WBCLIENT_LIBS)
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
rst_man_pages += idmapwb.8
|
|
Packit Service |
09cdfc |
CLEANFILES += idmapwb.rst
|
|
Packit Service |
09cdfc |
idmapwb.rst: idmapwb.rst.in
|
|
Packit Service |
09cdfc |
$(SED) 's,[@]pluginpath@,$(pluginpath),' $(srcdir)/$@.in > $@-t && mv $@-t $@
|
|
Packit Service |
09cdfc |
endif
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
if CONFIG_PAM
|
|
Packit Service |
09cdfc |
pam_PROGRAMS = pam_cifscreds.so
|
|
Packit Service |
09cdfc |
rst_man_pages += pam_cifscreds.8
|
|
Packit Service |
09cdfc |
pam_cifscreds.so: pam_cifscreds.c cifskey.c resolve_host.c util.c
|
|
Packit Service |
09cdfc |
$(CC) $(DEFS) $(CFLAGS) $(AM_CFLAGS) $(LDFLAGS) -shared -fpic -o $@ $+ -lpam -lkeyutils
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
endif
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
if CONFIG_MAN
|
|
Packit Service |
09cdfc |
man_MANS += $(rst_man_pages)
|
|
Packit Service |
09cdfc |
CLEANFILES += $(rst_man_pages)
|
|
Packit Service |
09cdfc |
endif
|
|
Packit Service |
09cdfc |
|
|
Packit Service |
09cdfc |
SUBDIRS = contrib
|