Print this page
3328 smbutil view does't work with Win2008 and later
requires 1575 untangle libmlrpc ...

@@ -21,29 +21,35 @@
 
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
+# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
+#
 
 #
 # cmd/fs.d/smbclnt/smbutil/Makefile
 #
 
 PROG=           smbutil
 
-include         $(SRC)/cmd/Makefile.cmd
+OBJS=   smbutil.o info.o login.o lookup.o print.o status.o view.o \
+        shares_rap.o shares_rpc.o srvsvc1_clnt.o srvsvc1_ndr.o
 
-OBJS=   smbutil.o login.o lookup.o print.o status.o view.o
-
 SRCS=   $(OBJS:%.o=%.c)
+
+include         $(SRC)/cmd/Makefile.cmd
+
 POFILE= smbutil_all.po
 POFILES= $(OBJS:%.o=%.po)
+
+CLEANFILES +=  srvsvc1_ndr.c
 CLOBBERFILES+=  $(POFILE) $(POFILES)
 
 CSTD= $(CSTD_GNU99)
 
-LDLIBS += -lsmbfs -lnsl
+LDLIBS += -lmlrpc -lsmbfs -lnsl
 
 CPPFLAGS += -I$(SRC)/lib/libsmbfs \
         -I$(SRC)/uts/common/smbclnt -I$(SRC)/uts/common
 
 # Debugging

@@ -76,11 +82,14 @@
         $(RM) $@
         $(CAT) $(POFILES) > $@
 
 lint:   lint_SRCS
 
-clean :
-        $(RM) $(OBJS)
+clean:
+        $(RM) $(OBJS) $(CLEANFILES)
 
-.KEEP_STATE:
-
 include ../../../Makefile.targ
+
+srvsvc1_ndr.c : srvsvc1.ndl
+        $(NDRGEN) -Y $(ANSI_CPP) $(CPPFLAGS) srvsvc1.ndl
+
+.KEEP_STATE: