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


   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) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright 2012 DEY Storage Systems, Inc.  All rights reserved.
  24 # Copyright (c) 2013 by Delphix. All rights reserved.
  25 #

  26 
  27 LIBRARY = libproc.a
  28 VERS = .1
  29 
  30 CMNOBJS =       \
  31         P32ton.o        \
  32         Pcontrol.o      \
  33         Pcore.o         \
  34         Pexecname.o     \
  35         Pfdinfo.o       \
  36         Pgcore.o        \
  37         Pidle.o         \
  38         Pisprocdir.o    \
  39         Plwpregs.o      \
  40         Pservice.o      \
  41         Psymtab.o       \
  42         Psymtab_machelf32.o \
  43         $(CMNOBJS64)    \
  44         Pscantext.o     \
  45         Pstack.o        \


  82 include ../../Makefile.rootfs
  83 
  84 SRCS =          $(CMNOBJS:%.o=../common/%.c) $(ISAOBJS:%.o=%.c)
  85 
  86 LIBS =          $(DYNLIB) $(LINTLIB)
  87 LDLIBS +=       -lrtld_db -lelf -lctf -lc
  88 CSTD =  $(CSTD_GNU99)
  89 CPPFLAGS +=     $($(MACH64)_CPPFLAGS)
  90 
  91 SRCDIR =        ../common
  92 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  93 
  94 CFLAGS +=       $(CCVERBOSE)
  95 CPPFLAGS +=     -I$(SRCDIR)
  96 
  97 CERRWARN +=     -_gcc=-Wno-uninitialized
  98 CERRWARN +=     -_gcc=-Wno-parentheses
  99 CERRWARN +=     -_gcc=-Wno-type-limits
 100 CERRWARN +=     -_gcc=-Wno-unused-label
 101 



 102 # All interfaces are interposable, therefore don't allow direct binding to
 103 # libproc.  Disable libproc from directly binding to itself, but allow libperl
 104 # to directly bind to its dependencies (ie. map -Bdirect -> -zdirect).  Ensure
 105 # lazy loading is established (which is enabled automatically with -Bdirect).
 106 BDIRECT =
 107 DYNFLAGS +=     $(BNODIRECT) $(ZDIRECT) $(ZLAZYLOAD)
 108 
 109 .KEEP_STATE:
 110 
 111 all: $(LIBS)
 112 
 113 lint: lintcheck
 114 
 115 # include library targets
 116 include ../../Makefile.targ
 117 
 118 objs/%.o pics/%.o: %.c
 119         $(COMPILE.c) -o $@ $<
 120         $(POST_PROCESS_O)
 121 


   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) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright 2012 DEY Storage Systems, Inc.  All rights reserved.
  24 # Copyright (c) 2013 by Delphix. All rights reserved.
  25 #
  26 # Copyright (c) 2018, Joyent, Inc.
  27 
  28 LIBRARY = libproc.a
  29 VERS = .1
  30 
  31 CMNOBJS =       \
  32         P32ton.o        \
  33         Pcontrol.o      \
  34         Pcore.o         \
  35         Pexecname.o     \
  36         Pfdinfo.o       \
  37         Pgcore.o        \
  38         Pidle.o         \
  39         Pisprocdir.o    \
  40         Plwpregs.o      \
  41         Pservice.o      \
  42         Psymtab.o       \
  43         Psymtab_machelf32.o \
  44         $(CMNOBJS64)    \
  45         Pscantext.o     \
  46         Pstack.o        \


  83 include ../../Makefile.rootfs
  84 
  85 SRCS =          $(CMNOBJS:%.o=../common/%.c) $(ISAOBJS:%.o=%.c)
  86 
  87 LIBS =          $(DYNLIB) $(LINTLIB)
  88 LDLIBS +=       -lrtld_db -lelf -lctf -lc
  89 CSTD =  $(CSTD_GNU99)
  90 CPPFLAGS +=     $($(MACH64)_CPPFLAGS)
  91 
  92 SRCDIR =        ../common
  93 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  94 
  95 CFLAGS +=       $(CCVERBOSE)
  96 CPPFLAGS +=     -I$(SRCDIR)
  97 
  98 CERRWARN +=     -_gcc=-Wno-uninitialized
  99 CERRWARN +=     -_gcc=-Wno-parentheses
 100 CERRWARN +=     -_gcc=-Wno-type-limits
 101 CERRWARN +=     -_gcc=-Wno-unused-label
 102 
 103 # not linted
 104 SMATCH=off
 105 
 106 # All interfaces are interposable, therefore don't allow direct binding to
 107 # libproc.  Disable libproc from directly binding to itself, but allow libperl
 108 # to directly bind to its dependencies (ie. map -Bdirect -> -zdirect).  Ensure
 109 # lazy loading is established (which is enabled automatically with -Bdirect).
 110 BDIRECT =
 111 DYNFLAGS +=     $(BNODIRECT) $(ZDIRECT) $(ZLAZYLOAD)
 112 
 113 .KEEP_STATE:
 114 
 115 all: $(LIBS)
 116 
 117 lint: lintcheck
 118 
 119 # include library targets
 120 include ../../Makefile.targ
 121 
 122 objs/%.o pics/%.o: %.c
 123         $(COMPILE.c) -o $@ $<
 124         $(POST_PROCESS_O)
 125