Print this page
10080 smatch Makefile changes for usr/src/cmd


   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright (c) 2013 RackTop Systems.
  24 # Copyright (c) 2013 Gary Mills
  25 #
  26 # cmd/oamuser/user/Makefile
  27 #
  28 
  29 DEFAULTFILES= useradd.dfl
  30 
  31 include ../../Makefile.cmd
  32 
  33 GREP=           grep
  34 
  35 USERADD=        useradd
  36 USERDEL=        userdel
  37 USERMOD=        usermod
  38 ROLEADD=        roleadd
  39 ROLEDEL=        roledel
  40 ROLEMOD=        rolemod
  41 
  42 SBINPROG=       $(USERADD)   $(USERDEL)   $(USERMOD)
  43 #
  44 #       Removing sysadm: deleted $(SYSADMPROG) from this target.
  45 #
  46 PROG=           $(SBINPROG)
  47 PRODUCT=        $(PROG)


  59                 proj.o
  60 
  61 OBJECTS=        $(ADD_OBJ)     $(DEL_OBJ)    $(MOD_OBJ)
  62 
  63 SRCS=           $(OBJECTS:.o=.c)
  64 
  65 LIBDIR=         ../lib
  66 LIBUSRGRP=      $(LIBDIR)/lib.a
  67 LIBADM=         -ladm
  68 LOCAL=          ../inc
  69 HERE=           .
  70 LINTFLAGS=      -u
  71 
  72 ROOTSKEL=       $(ROOTETC)/skel
  73 INSSBINPROG=    $(SBINPROG:%=$(ROOTUSRSBIN)/%)
  74 INSSKELFILE=    $(SKELFILE:%=$(ROOTSKEL)/%)
  75 
  76 CPPFLAGS=       -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
  77 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  78 



  79 $(INSSBINPROG)  := FILEMODE = 0555
  80 $(INSSYSADMPROG):= FILEMODE = 0500
  81 $(INSSKELFILE)  := FILEMODE = 0644
  82 
  83 $(USERADD) :=   OBJS = $(ADD_OBJ)
  84 $(USERADD) :=   LIBS = $(LIBUSRGRP)
  85 $(USERADD) :=   LDLIBS += -lcmdutils
  86 
  87 $(USERDEL) :=   OBJS = $(DEL_OBJ)
  88 $(USERDEL) :=   LIBS = $(LIBUSRGRP)
  89 
  90 $(USERMOD) :=   OBJS = $(MOD_OBJ)
  91 $(USERMOD) :=   LIBS = $(LIBUSRGRP)
  92 
  93 LDLIBS +=       -lbsm -lnsl -lsecdb -lproject -lzfs -ltsol
  94 
  95 .PARALLEL: $(OBJECTS)
  96 
  97 all:    $(PRODUCT)
  98 




   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright (c) 1990, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright (c) 2013 RackTop Systems.
  24 # Copyright (c) 2013 Gary Mills
  25 #
  26 # Copyright (c) 2018, Joyent, Inc.

  27 
  28 DEFAULTFILES= useradd.dfl
  29 
  30 include ../../Makefile.cmd
  31 
  32 GREP=           grep
  33 
  34 USERADD=        useradd
  35 USERDEL=        userdel
  36 USERMOD=        usermod
  37 ROLEADD=        roleadd
  38 ROLEDEL=        roledel
  39 ROLEMOD=        rolemod
  40 
  41 SBINPROG=       $(USERADD)   $(USERDEL)   $(USERMOD)
  42 #
  43 #       Removing sysadm: deleted $(SYSADMPROG) from this target.
  44 #
  45 PROG=           $(SBINPROG)
  46 PRODUCT=        $(PROG)


  58                 proj.o
  59 
  60 OBJECTS=        $(ADD_OBJ)     $(DEL_OBJ)    $(MOD_OBJ)
  61 
  62 SRCS=           $(OBJECTS:.o=.c)
  63 
  64 LIBDIR=         ../lib
  65 LIBUSRGRP=      $(LIBDIR)/lib.a
  66 LIBADM=         -ladm
  67 LOCAL=          ../inc
  68 HERE=           .
  69 LINTFLAGS=      -u
  70 
  71 ROOTSKEL=       $(ROOTETC)/skel
  72 INSSBINPROG=    $(SBINPROG:%=$(ROOTUSRSBIN)/%)
  73 INSSKELFILE=    $(SKELFILE:%=$(ROOTSKEL)/%)
  74 
  75 CPPFLAGS=       -I$(HERE) -I$(LOCAL) $(CPPFLAGS.master)
  76 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  77 
  78 # not linted
  79 SMATCH=off
  80 
  81 $(INSSBINPROG)  := FILEMODE = 0555
  82 $(INSSYSADMPROG):= FILEMODE = 0500
  83 $(INSSKELFILE)  := FILEMODE = 0644
  84 
  85 $(USERADD) :=   OBJS = $(ADD_OBJ)
  86 $(USERADD) :=   LIBS = $(LIBUSRGRP)
  87 $(USERADD) :=   LDLIBS += -lcmdutils
  88 
  89 $(USERDEL) :=   OBJS = $(DEL_OBJ)
  90 $(USERDEL) :=   LIBS = $(LIBUSRGRP)
  91 
  92 $(USERMOD) :=   OBJS = $(MOD_OBJ)
  93 $(USERMOD) :=   LIBS = $(LIBUSRGRP)
  94 
  95 LDLIBS +=       -lbsm -lnsl -lsecdb -lproject -lzfs -ltsol
  96 
  97 .PARALLEL: $(OBJECTS)
  98 
  99 all:    $(PRODUCT)
 100