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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libmlrpc/Makefile.com
          +++ new/usr/src/lib/libmlrpc/Makefile.com
↓ open down ↓ 10 lines elided ↑ open up ↑
  11   11  # and limitations under the License.
  12   12  #
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
       21 +
  21   22  #
  22   23  # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   24  # Use is subject to license terms.
  24   25  #
       26 +# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       27 +#
  25   28  
  26   29  LIBRARY =       libmlrpc.a
  27      -VERS =          .1
       30 +VERS =          .2
  28   31  
  29   32  OBJS_COMMON =                   \
       33 +        mlrpc_clh.o             \
  30   34          ndr_client.o            \
  31   35          ndr_heap.o              \
  32   36          ndr_marshal.o           \
  33   37          ndr_ops.o               \
  34   38          ndr_process.o           \
  35   39          ndr_server.o            \
  36      -        ndr_svc.o
       40 +        ndr_svc.o               \
       41 +        ndr_wchar.o
  37   42  
  38   43  NDLLIST = rpcpdu
  39   44  
  40      -OBJECTS=        $(OBJS_COMMON) $(OBJS_SHARED) $(NDLLIST:%=%_ndr.o)
       45 +OBJECTS=        $(OBJS_COMMON) $(NDLLIST:%=%_ndr.o)
       46 +CLEANFILES += $(NDLLIST:%=%_ndr.c)
  41   47  
  42      -include ../../../Makefile.lib
  43   48  include ../../Makefile.lib
  44   49  
  45      -INCS += -I$(SRC)/common/smbsrv
       50 +LIBS=           $(DYNLIB) $(LINTLIB)
  46   51  
  47      -LDLIBS +=       $(MACH_LDLIBS)
  48      -LDLIBS +=       -lsmb -luuid -lc
       52 +LDLIBS +=       -lsmbfs -luuid -lc
  49   53  
       54 +SRCDIR=         ../common
       55 +SRCS=   $(OBJS_COMMON:%.o=$(SRCDIR)/%.c)
       56 +$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
       57 +
       58 +NDLDIR =        $(SRCDIR)
       59 +
       60 +CFLAGS +=       $(CCVERBOSE)
       61 +INCS = -I. -I$(SRCDIR)
  50   62  CPPFLAGS += $(INCS) -D_REENTRANT
  51   63  
  52      -SRCS=   $(OBJS_COMMON:%.o=$(SRCDIR)/%.c)                \
  53      -        $(OBJS_SHARED:%.o=$(SRC)/common/smbsrv/%.c)
       64 +all:    $(LIBS)
  54   65  
       66 +lint:   lintcheck
       67 +
  55   68  include ../../Makefile.targ
  56      -include ../../../Makefile.targ
       69 +
       70 +objs/%_ndr.o pics/%_ndr.o : %_ndr.c
       71 +
       72 +%_ndr.c : $(NDLDIR)/%.ndl
       73 +        $(NDRGEN) -Y $(ANSI_CPP) $(CPPFLAGS) $<
       74 +
       75 +.KEEP_STATE:
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX