Print this page
3946 ::gcore
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>


   4 # The contents of this file are subject to the terms of the
   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 # Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright 2012 DEY Storage Systems, Inc.  All rights reserved.

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


  67         pr_waitid.o     \
  68         proc_get_info.o \
  69         proc_names.o    \
  70         proc_arg.o      \
  71         proc_set.o      \
  72         proc_stdio.o
  73 
  74 ISAOBJS =       \
  75         Pisadep.o
  76 
  77 OBJECTS = $(CMNOBJS) $(ISAOBJS) $(SAVEOBJS)
  78 
  79 # include library definitions
  80 include ../../Makefile.lib
  81 include ../../Makefile.rootfs
  82 
  83 SRCS =          $(CMNOBJS:%.o=../common/%.c) $(ISAOBJS:%.o=%.c)
  84 
  85 LIBS =          $(DYNLIB) $(LINTLIB)
  86 LDLIBS +=       -lrtld_db -lelf -lctf -lc

  87 CPPFLAGS +=     $($(MACH64)_CPPFLAGS)
  88 
  89 SRCDIR =        ../common
  90 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  91 
  92 CFLAGS +=       $(CCVERBOSE)
  93 CPPFLAGS +=     -I$(SRCDIR)
  94 
  95 CERRWARN +=     -_gcc=-Wno-uninitialized
  96 CERRWARN +=     -_gcc=-Wno-parentheses
  97 CERRWARN +=     -_gcc=-Wno-type-limits
  98 CERRWARN +=     -_gcc=-Wno-unused-label
  99 
 100 # All interfaces are interposable, therefore don't allow direct binding to
 101 # libproc.  Disable libproc from directly binding to itself, but allow libperl
 102 # to directly bind to its dependencies (ie. map -Bdirect -> -zdirect).  Ensure
 103 # lazy loading is established (which is enabled automatically with -Bdirect).
 104 BDIRECT =
 105 DYNFLAGS +=     $(BNODIRECT) $(ZDIRECT) $(ZLAZYLOAD)
 106 


   4 # The contents of this file are subject to the terms of the
   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 # 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     \


  68         pr_waitid.o     \
  69         proc_get_info.o \
  70         proc_names.o    \
  71         proc_arg.o      \
  72         proc_set.o      \
  73         proc_stdio.o
  74 
  75 ISAOBJS =       \
  76         Pisadep.o
  77 
  78 OBJECTS = $(CMNOBJS) $(ISAOBJS) $(SAVEOBJS)
  79 
  80 # include library definitions
  81 include ../../Makefile.lib
  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 C99MODE =       $(C99_ENABLE)
  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