Print this page
4078 groupadd execs getent unnecessarily
Reviewed by: Rich Lowe <richlowe@richlowe.net>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Reviewed by: Milan Jurik <milan.jurik@xylab.cz>
Reviewed by: Gordon Ross <Gordon.W.Ross@gmail.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/oamuser/group/Makefile
          +++ new/usr/src/cmd/oamuser/group/Makefile
↓ open down ↓ 13 lines elided ↑ open up ↑
  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  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  22   22  # Use is subject to license terms.
  23   23  #
       24 +# Copyright (c) 2013 RackTop Systems.
       25 +#
  24   26  # cmd/oamuser/group/Makefile
  25   27  #
  26   28  
  27   29  include ../../Makefile.cmd
  28   30  
  29   31  GROUPADD=       groupadd
  30   32  GROUPDEL=       groupdel
  31   33  GROUPMOD=       groupmod
  32   34  
  33   35  SBINPROG=       $(GROUPADD)   $(GROUPDEL)   $(GROUPMOD)
  34   36  
  35   37  PROG=           $(SBINPROG)
  36   38  
  37      -ADD_OBJ=        groupadd.o    add_group.o   gid.o       messages.o
       39 +ADD_OBJ=        groupadd.o    add_group.o   messages.o
  38   40  DEL_OBJ=        groupdel.o    del_group.o   messages.o
  39   41  MOD_OBJ=        groupmod.o    mod_group.o   messages.o
  40   42  
  41   43  OBJECTS=        $(ADD_OBJ)    $(DEL_OBJ)    $(MOD_OBJ)
  42   44  SRCS=           $(OBJECTS:.o=.c)
  43   45  
  44   46  LIBDIR=         ../lib
  45   47  LIBUSRGRP=      $(LIBDIR)/lib.a
  46   48  LOCAL=          ../inc
  47   49  HERE=           .
  48   50  LINTFLAGS=      -u
  49   51  
  50   52  INSSBINPROG=    $(SBINPROG:%=$(ROOTUSRSBIN)/%)
  51   53  
  52   54  CPPFLAGS=       -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
  53      -CERRWARN +=     -_gcc=-Wno-type-limits
  54   55  FILEMODE=       0555
  55   56  
  56   57  $(GROUPADD) :=  OBJS = $(ADD_OBJ)
  57      -$(GROUPADD) :=  LDLIBS += $(LIBUSRGRP)
       58 +$(GROUPADD) :=  LDLIBS += $(LIBUSRGRP) -lcmdutils
  58   59  
  59   60  $(GROUPDEL) :=  OBJS = $(DEL_OBJ)
  60   61  $(GROUPDEL) :=  LDLIBS += $(LIBUSRGRP)
  61   62  
  62   63  $(GROUPMOD) :=  OBJS = $(MOD_OBJ)
  63   64  $(GROUPMOD) :=  LDLIBS += $(LIBUSRGRP)
  64   65  
  65   66  all:            $(PROG)
  66   67  
  67   68  $(PROG):        $$(OBJS) $(LIBUSRGRP)
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX