Print this page
9704 move socket functions to libc

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libsocket/Makefile.com
          +++ new/usr/src/lib/libsocket/Makefile.com
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19  # CDDL HEADER END
  20   20  #
  21   21  
  22   22  #
  23   23  # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24  #
  25   25  
  26   26  LIBRARY =       libsocket.a
  27   27  VERS =          .1
  28   28  
  29      -INETOBJS =      bindresvport.o bootparams_getbyname.o ether_addr.o \
       29 +OBJECTS =       bindresvport.o bootparams_getbyname.o ether_addr.o \
  30   30                  getaddrinfo.o getnameinfo.o getnetent.o getnetent_r.o \
  31   31                  getprotoent.o getprotoent_r.o getservbyname_r.o getservent.o \
  32   32                  getservent_r.o inet6_opt.o inet6_rthdr.o interface_id.o \
  33   33                  link_addr.o netmasks.o rcmd.o rexec.o ruserpass.o \
  34   34                  sourcefilter.o getifaddrs.o
  35      -SOCKOBJS =      _soutil.o sockatmark.o socket.o socketpair.o weaks.o
  36      -OBJECTS =       $(INETOBJS) $(SOCKOBJS)
  37   35  
  38   36  include ../../Makefile.lib
  39   37  
  40   38  # install this library in the root filesystem
  41   39  include ../../Makefile.rootfs
  42   40  
  43   41  LIBS =          $(DYNLIB) $(LINTLIB)
  44   42  
  45      -SRCS =          $(INETOBJS:%.o=../inet/%.c) $(SOCKOBJS:%.o=../socket/%.c)
       43 +SRCS =          $(OBJECTS:%.o=../inet/%.c)
  46   44  LDLIBS +=       -lnsl -lc
  47   45  
  48   46  SRCDIR =        ../common
  49   47  $(LINTLIB):=    SRCS = $(SRCDIR)/$(LINTSRC)
  50   48  
  51   49  # Make string literals read-only to save memory.
  52   50  CFLAGS +=       $(XSTRCONST)
  53   51  CFLAGS64 +=     $(XSTRCONST)
  54   52  
  55   53  CPPFLAGS +=     -DSYSV -D_REENTRANT -I../../common/inc
↓ open down ↓ 23 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX