Print this page
Add libuserdefs and use in cmd/{oamuser,passwd}

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/oamuser/group/Makefile
          +++ new/usr/src/cmd/oamuser/group/Makefile
↓ open down ↓ 47 lines elided ↑ open up ↑
  48   48  LOCAL=          ../inc
  49   49  HERE=           .
  50   50  LINTFLAGS=      -u
  51   51  
  52   52  INSSBINPROG=    $(SBINPROG:%=$(ROOTUSRSBIN)/%)
  53   53  
  54   54  CPPFLAGS=       -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
  55   55  FILEMODE=       0555
  56   56  
  57   57  $(GROUPADD) :=  OBJS = $(ADD_OBJ)
  58      -$(GROUPADD) :=  LDLIBS += $(LIBUSRGRP) -lcmdutils
       58 +$(GROUPADD) :=  LDLIBS += $(LIBUSRGRP) -luserdefs -lcmdutils
  59   59  
  60   60  $(GROUPDEL) :=  OBJS = $(DEL_OBJ)
  61   61  $(GROUPDEL) :=  LDLIBS += $(LIBUSRGRP)
  62   62  
  63   63  $(GROUPMOD) :=  OBJS = $(MOD_OBJ)
  64      -$(GROUPMOD) :=  LDLIBS += $(LIBUSRGRP)
       64 +$(GROUPMOD) :=  LDLIBS += $(LIBUSRGRP) -luserdefs
  65   65  
  66   66  all:            $(PROG)
  67   67  
  68   68  $(PROG):        $$(OBJS) $(LIBUSRGRP)
  69   69          $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  70   70          $(POST_PROCESS)
  71   71  
  72   72  $(GROUPADD):    $(ADD_OBJ)
  73   73  $(GROUPMOD):    $(MOD_OBJ)
  74   74  $(GROUPDEL):    $(DEL_OBJ)
  75   75  
  76   76  install:        all $(INSSBINPROG)
  77   77  
  78   78  clean:
  79   79          $(RM) $(OBJECTS)
  80   80  
  81   81  lint:   lint_SRCS
  82   82  
  83   83  include ../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX