summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorShirish Pargaonkar <shirishpargaonkar@gmail.com>2011-08-25 14:16:23 -0400
committerJeff Layton <jlayton@samba.org>2011-08-25 14:16:23 -0400
commit06678a909ee842193b95b140fb198f85e3addfef (patch)
treefed4cb2982f502a4e82acc11357162963e7419e9 /Makefile.am
parent5ee1ac229d3738520d308e4ddcd170b9b5026ceb (diff)
downloadcifs-utils-06678a909ee842193b95b140fb198f85e3addfef.tar.gz
cifs-utils-06678a909ee842193b95b140fb198f85e3addfef.tar.bz2
cifs-utils-06678a909ee842193b95b140fb198f85e3addfef.zip
cifsacl: Add configure and make directives for cifsacl (try #2)
Add configure directives for option cifsacl. The default action is to enable cifsacl option. cifsacl option is enabled or disabled in a similar way to cifs.idmap in the same function. In addition, for cifsacl, check for sys/xattr.h is done in the smae .m4 file. Add directives to build getcifsacl in Makefile. Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am17
1 files changed, 16 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 4938447..3ec6b7e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,7 +9,7 @@ mount_cifs_LDADD = $(LIBCAP) $(CAPNG_LDADD)
man_MANS = mount.cifs.8
sbin_PROGRAMS =
-clean-local: clean-local-upcall clean-local-idmap
+clean-local: clean-local-upcall clean-local-idmap clean-local-aclprogs
if CONFIG_CIFSUPCALL
sbin_PROGRAMS += cifs.upcall
@@ -50,3 +50,18 @@ clean-local-idmap:
if CONFIG_CIFSIDMAP
rm -f cifs.idmap.8 cifs.idmap.8-t
endif
+
+if CONFIG_CIFSACL
+sbin_PROGRAMS += getcifsacl
+getcifsacl_SOURCES = getcifsacl.c
+getcifsacl_LDADD = -lkeyutils $(WINB_LDADD)
+man_MANS += getcifsacl.8
+
+getcifsacl.8: getcifsacl.8.in
+ $(SED) 's,[@]sbindir@,$(sbindir),' $(srcdir)/$@.in > $@-t && mv $@-t $@
+endif
+
+clean-local-aclprogs:
+if CONFIG_CIFSACL
+ rm -f getcifsacl.8 getcifsacl.8-t
+endif