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


   5 # Common Development and Distribution License (the "License").
   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 #
  23 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2015 RackTop Systems.

  25 #
  26 
  27 FSTYPE=         autofs
  28 AUTO=           automount
  29 MOUNT=          mount
  30 VERS=           .2
  31 DFSHARES=       dfshares
  32 SHARE=          share
  33 UNSHARE=        unshare
  34 LIBPROG=        $(AUTO) $(MOUNT) $(DFSHARES) $(SHARE) $(UNSHARE)
  35 TYPEPROG=       automountd
  36 
  37 LINKINSTALL=    $(ROOTUSRSBIN)/$(AUTO)
  38 LINKVALUE=      ../lib/fs/$(FSTYPE)/$(AUTO)
  39 MAPS=           auto_master auto_home
  40 MAPINSTALL=     $(MAPS:%=$(ROOTETC)/%)
  41 AUTOFS=         autofs
  42 DEFAULTFILES=   autofs.dfl
  43 SMFMANIFEST=    autofs.xml
  44 SMFMETHOD=      svc-autofs


  81 
  82 POFILE= autofs.po
  83 GREP= egrep
  84 SED= sed
  85 
  86 $(AUTO) :=      LDLIBS += -lnsl -lsldap -lscf
  87 $(MOUNT):=      LDLIBS += -lscf
  88 $(TYPEPROG) :=  LDLIBS += -lrpcsvc -lsocket -lnsl -lsldap -lkstat -lscf
  89 
  90 CFLAGS +=       $(CCVERBOSE) -D_FILE_OFFSET_BITS=64
  91 CPPFLAGS=       -I. -I.. -I../nfs/lib $(CPPFLAGS.master) -D_REENTRANT  \
  92                         $(MALLOC_DEBUG)
  93 
  94 CERRWARN +=     -_gcc=-Wno-parentheses
  95 CERRWARN +=     -_gcc=-Wno-unused-variable
  96 CERRWARN +=     -_gcc=-Wno-switch
  97 CERRWARN +=     -_gcc=-Wno-uninitialized
  98 CERRWARN +=     -_gcc=-Wno-unused-label
  99 CERRWARN +=     -_gcc=-Wno-unused-function
 100 



 101 OBJS=           $(AUTOOBJS) $(MOUNTOBJS) $(TYPEOBJS) \
 102                 $(SHAREOBJS) $(UNSHAREOBJS)
 103 
 104 AUTOSRCS=       automount.c $(COMMON:%.o=%.c) $(FSLIBSRC)
 105 MOUNTSRCS=      mount.c $(FSLIBSRC)
 106 TYPESRCS=       $(LOCAL:%.o=%.c) $(COMMON:%.o=%.c) \
 107                 ../nfs/lib/replica.c ../nfs/lib/nfs_sec.c \
 108                 ../nfs/lib/nfs_subr.c $(FSLIBSRC) ../nfs/lib/selfcheck.c \
 109                 ../nfs/lib/nfs_resolve.c ../nfs/lib/smfcfg.c
 110 SHARESRCS=      $(SHARE:%=%.c)
 111 UNSHARESRCS=    $(UNSHARE:%=%.c)
 112 DFSHARESSRCS=   $(DFSHARES:%=%.sh)
 113 SRCS=           $(OBJS:%.o=%.c)
 114 
 115 nfs_sec.o :=    CPPFLAGS += -DWNFS_SEC_NEGO
 116 
 117 $(AUTO):        $(AUTOOBJS)
 118                 $(LINK.c) -o $@ $(AUTOOBJS) $(LDLIBS)
 119                 $(POST_PROCESS)
 120 




   5 # Common Development and Distribution License (the "License").
   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 #
  23 # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2015 RackTop Systems.
  25 # Copyright (c) 2018, Joyent, Inc.
  26 #
  27 
  28 FSTYPE=         autofs
  29 AUTO=           automount
  30 MOUNT=          mount
  31 VERS=           .2
  32 DFSHARES=       dfshares
  33 SHARE=          share
  34 UNSHARE=        unshare
  35 LIBPROG=        $(AUTO) $(MOUNT) $(DFSHARES) $(SHARE) $(UNSHARE)
  36 TYPEPROG=       automountd
  37 
  38 LINKINSTALL=    $(ROOTUSRSBIN)/$(AUTO)
  39 LINKVALUE=      ../lib/fs/$(FSTYPE)/$(AUTO)
  40 MAPS=           auto_master auto_home
  41 MAPINSTALL=     $(MAPS:%=$(ROOTETC)/%)
  42 AUTOFS=         autofs
  43 DEFAULTFILES=   autofs.dfl
  44 SMFMANIFEST=    autofs.xml
  45 SMFMETHOD=      svc-autofs


  82 
  83 POFILE= autofs.po
  84 GREP= egrep
  85 SED= sed
  86 
  87 $(AUTO) :=      LDLIBS += -lnsl -lsldap -lscf
  88 $(MOUNT):=      LDLIBS += -lscf
  89 $(TYPEPROG) :=  LDLIBS += -lrpcsvc -lsocket -lnsl -lsldap -lkstat -lscf
  90 
  91 CFLAGS +=       $(CCVERBOSE) -D_FILE_OFFSET_BITS=64
  92 CPPFLAGS=       -I. -I.. -I../nfs/lib $(CPPFLAGS.master) -D_REENTRANT  \
  93                         $(MALLOC_DEBUG)
  94 
  95 CERRWARN +=     -_gcc=-Wno-parentheses
  96 CERRWARN +=     -_gcc=-Wno-unused-variable
  97 CERRWARN +=     -_gcc=-Wno-switch
  98 CERRWARN +=     -_gcc=-Wno-uninitialized
  99 CERRWARN +=     -_gcc=-Wno-unused-label
 100 CERRWARN +=     -_gcc=-Wno-unused-function
 101 
 102 # not linted
 103 SMATCH=off
 104 
 105 OBJS=           $(AUTOOBJS) $(MOUNTOBJS) $(TYPEOBJS) \
 106                 $(SHAREOBJS) $(UNSHAREOBJS)
 107 
 108 AUTOSRCS=       automount.c $(COMMON:%.o=%.c) $(FSLIBSRC)
 109 MOUNTSRCS=      mount.c $(FSLIBSRC)
 110 TYPESRCS=       $(LOCAL:%.o=%.c) $(COMMON:%.o=%.c) \
 111                 ../nfs/lib/replica.c ../nfs/lib/nfs_sec.c \
 112                 ../nfs/lib/nfs_subr.c $(FSLIBSRC) ../nfs/lib/selfcheck.c \
 113                 ../nfs/lib/nfs_resolve.c ../nfs/lib/smfcfg.c
 114 SHARESRCS=      $(SHARE:%=%.c)
 115 UNSHARESRCS=    $(UNSHARE:%=%.c)
 116 DFSHARESSRCS=   $(DFSHARES:%=%.sh)
 117 SRCS=           $(OBJS:%.o=%.c)
 118 
 119 nfs_sec.o :=    CPPFLAGS += -DWNFS_SEC_NEGO
 120 
 121 $(AUTO):        $(AUTOOBJS)
 122                 $(LINK.c) -o $@ $(AUTOOBJS) $(LDLIBS)
 123                 $(POST_PROCESS)
 124