Print this page
10079 smatch Makefile changes for usr/src/lib


   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 2017 Peter Tribble.
  24 
  25 #
  26 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  27 # Use is subject to license terms.
  28 #

  29 
  30 LIBRARY= libpkg.a
  31 VERS=   .1
  32 
  33 # include library definitions
  34 OBJECTS=        \
  35                 canonize.o   ckparam.o    ckvolseq.o \
  36                 devtype.o    dstream.o    gpkglist.o \
  37                 gpkgmap.o    isdir.o      logerr.o \
  38                 mappath.o    ncgrpw.o     nhash.o \
  39                 path_valid.o pkgexecl.o   pkgexecv.o \
  40                 pkgmount.o   pkgtrans.o   ppkgmap.o \
  41                 progerr.o    putcfile.o   rrmdir.o \
  42                 runcmd.o     srchcfile.o  tputcfent.o \
  43                 verify.o \
  44                 vfpops.o     fmkdir.o     pkgstr.o \
  45                 handlelocalfs.o pkgserv.o
  46 
  47 
  48 # include library definitions


  50 
  51 SRCDIR=         ../common
  52 
  53 POFILE =        libpkg.po
  54 MSGFILES =      $(OBJECTS:%.o=../common/%.i)
  55 CLEANFILES +=   $(MSGFILES)
  56 
  57 $(LINTLIB):=    SRCS = $(SRCDIR)/$(LINTSRC)
  58 
  59 
  60 LIBS = $(DYNLIB) $(LINTLIB)
  61 
  62 
  63 LDLIBS +=       -lc -lscf -ladm
  64 
  65 CFLAGS +=       $(CCVERBOSE)
  66 CERRWARN +=     -_gcc=-Wno-parentheses
  67 CERRWARN +=     -_gcc=-Wno-uninitialized
  68 CERRWARN +=     -_gcc=-Wno-clobbered
  69 CERRWARN +=     -_gcc=-Wno-switch




  70 CPPFLAGS +=     -I$(SRCDIR) -D_FILE_OFFSET_BITS=64
  71 
  72 .KEEP_STATE:
  73 
  74 all:    $(LIBS)
  75 
  76 $(POFILE): $(MSGFILES)
  77         $(BUILDPO.msgfiles)
  78 
  79 _msg: $(MSGDOMAINPOFILE)
  80 
  81 lint: lintcheck
  82 
  83 # include library targets
  84 include $(SRC)/lib/Makefile.targ
  85 include $(SRC)/Makefile.msg.targ


   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 2017 Peter Tribble.
  24 
  25 #
  26 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  27 # Use is subject to license terms.
  28 #
  29 # Copyright (c) 2018, Joyent, Inc.
  30 
  31 LIBRARY= libpkg.a
  32 VERS=   .1
  33 
  34 # include library definitions
  35 OBJECTS=        \
  36                 canonize.o   ckparam.o    ckvolseq.o \
  37                 devtype.o    dstream.o    gpkglist.o \
  38                 gpkgmap.o    isdir.o      logerr.o \
  39                 mappath.o    ncgrpw.o     nhash.o \
  40                 path_valid.o pkgexecl.o   pkgexecv.o \
  41                 pkgmount.o   pkgtrans.o   ppkgmap.o \
  42                 progerr.o    putcfile.o   rrmdir.o \
  43                 runcmd.o     srchcfile.o  tputcfent.o \
  44                 verify.o \
  45                 vfpops.o     fmkdir.o     pkgstr.o \
  46                 handlelocalfs.o pkgserv.o
  47 
  48 
  49 # include library definitions


  51 
  52 SRCDIR=         ../common
  53 
  54 POFILE =        libpkg.po
  55 MSGFILES =      $(OBJECTS:%.o=../common/%.i)
  56 CLEANFILES +=   $(MSGFILES)
  57 
  58 $(LINTLIB):=    SRCS = $(SRCDIR)/$(LINTSRC)
  59 
  60 
  61 LIBS = $(DYNLIB) $(LINTLIB)
  62 
  63 
  64 LDLIBS +=       -lc -lscf -ladm
  65 
  66 CFLAGS +=       $(CCVERBOSE)
  67 CERRWARN +=     -_gcc=-Wno-parentheses
  68 CERRWARN +=     -_gcc=-Wno-uninitialized
  69 CERRWARN +=     -_gcc=-Wno-clobbered
  70 CERRWARN +=     -_gcc=-Wno-switch
  71 
  72 # not linted
  73 SMATCH=off
  74 
  75 CPPFLAGS +=     -I$(SRCDIR) -D_FILE_OFFSET_BITS=64
  76 
  77 .KEEP_STATE:
  78 
  79 all:    $(LIBS)
  80 
  81 $(POFILE): $(MSGFILES)
  82         $(BUILDPO.msgfiles)
  83 
  84 _msg: $(MSGDOMAINPOFILE)
  85 
  86 lint: lintcheck
  87 
  88 # include library targets
  89 include $(SRC)/lib/Makefile.targ
  90 include $(SRC)/Makefile.msg.targ