Print this page
1575 untangle libmlrpc ... (libmlrpc)

@@ -20,11 +20,46 @@
 #
 #
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# ident "%Z%%M% %I%     %E% SMI"
+# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
 #
 
-HDRS=   libmlrpc.h
+include $(SRC)/lib/Makefile.lib
 
-include ../Makefile.smbsrv
+HDRS=           libmlrpc.h ndr.h ndrtypes.ndl rpcpdu.ndl
+HDRDIR=         common
+
+ROOTHDRDIR=     $(ROOT)/usr/include/libmlrpc
+ROOTHDRS= $(HDRS:%=$(ROOTHDRDIR)/%)
+
+# ISA targets
+SUBDIRS = $(MACH)
+$(BUILD64)SUBDIRS += $(MACH64)
+
+all :=          TARGET = all
+install :=      TARGET = install
+clean :=        TARGET = clean
+clobber :=      TARGET = clobber
+lint :=         TARGET = lint
+
+.KEEP_STATE:
+
+all install clean clobber lint: $(SUBDIRS)
+
+install_h: $(ROOTHDRDIR) $(ROOTHDRS)
+
+check: $(CHECKHDRS)
+
+$(ROOTHDRDIR)/%: %
+        $(INS.file)
+
+$(ROOTHDRDIR):
+        $(INS.dir)
+
+$(SUBDIRS): FRC
+        @cd $@; pwd; VERSION='$(VERSION)' $(MAKE) $(TARGET)
+
+FRC:
+
+include $(SRC)/lib/Makefile.targ