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 # Copyright 2015 Gary Mills
  22 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
  23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright (c) 2015, Joyent, Inc.
  25 #
  26 #
  27 # Definitions common to libraries.
  28 #
  29 # include global definitions; SRC should be defined in the shell.
  30 # SRC is needed until RFE 1026993 is implemented.
  31 
  32 include         $(SRC)/Makefile.master
  33 
  34 LORDER=         lorder
  35 TSORT=          tsort
  36 
  37 #
  38 # By default, we define the source directory for libraries to be
  39 # one level up from the ISA-specific directory, where the code is
  40 # actually built.  Many libraries define a 'common' directory to
  41 # contain the source.  These libraries must redefine SRCDIR as:
  42 #       SRCDIR = ../common
  43 # Other variations are possible (../port, ../src, etc).
  44 #
 
 
 255 
 256 #
 257 # For library source code, we expect that some symbols may not be used or
 258 # may *appear* to be able to rescoped to static; shut lint up.  Never add
 259 # a flag here unless you're *sure* that all libraries need to be linted
 260 # with it.
 261 #
 262 LINTCHECKFLAGS = -m -erroff=E_NAME_DEF_NOT_USED2
 263 LINTCHECKFLAGS += -erroff=E_NAME_DECL_NOT_USED_DEF2 
 264 
 265 #
 266 # Target Architecture
 267 #
 268 TARGETMACH=     $(MACH)
 269 
 270 #
 271 # Allow people to define their own clobber rules.  Normal makefiles
 272 # shouldn't override this - they should override $(CLOBBERFILES) instead.
 273 #
 274 CLOBBERTARGFILES= $(LIBS) $(DYNLIB) $(CLOBBERFILES)
 275 
 276 #
 277 # Define the default ctfdiff invocation used to check a list of types
 278 # supplied by a user of a library. The goal is to validate that a given
 279 # series of types is the same in both a 32-bit and 64-bit artifact. This
 280 # is only defined if we have a 64-bit build to do.
 281 #
 282 TYPECHECK_LIB32 =               $(TYPECHECK_LIB:%=$(MACH)/%)
 283 TYPECHECK_LIB64 =               $(TYPECHECK_LIB:%=$(MACH64)/%)
 284 TYPECHECK_LIST=                 $(TYPELIST:%=-T %)
 285 $(BUILD64)TYPECHECK.lib =       $(CTFDIFF) -t -I $(TYPECHECK_LIST) $(TYPECHECK_LIB32) $(TYPECHECK_LIB64)
 286 TYPECHECK =                     $(TYPECHECK_LIB:%=%.typecheck)
  | 
 
 
   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 # Copyright 2015 Gary Mills
  22 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
  23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright (c) 2014, Joyent, Inc.
  25 #
  26 #
  27 # Definitions common to libraries.
  28 #
  29 # include global definitions; SRC should be defined in the shell.
  30 # SRC is needed until RFE 1026993 is implemented.
  31 
  32 include         $(SRC)/Makefile.master
  33 
  34 LORDER=         lorder
  35 TSORT=          tsort
  36 
  37 #
  38 # By default, we define the source directory for libraries to be
  39 # one level up from the ISA-specific directory, where the code is
  40 # actually built.  Many libraries define a 'common' directory to
  41 # contain the source.  These libraries must redefine SRCDIR as:
  42 #       SRCDIR = ../common
  43 # Other variations are possible (../port, ../src, etc).
  44 #
 
 
 255 
 256 #
 257 # For library source code, we expect that some symbols may not be used or
 258 # may *appear* to be able to rescoped to static; shut lint up.  Never add
 259 # a flag here unless you're *sure* that all libraries need to be linted
 260 # with it.
 261 #
 262 LINTCHECKFLAGS = -m -erroff=E_NAME_DEF_NOT_USED2
 263 LINTCHECKFLAGS += -erroff=E_NAME_DECL_NOT_USED_DEF2 
 264 
 265 #
 266 # Target Architecture
 267 #
 268 TARGETMACH=     $(MACH)
 269 
 270 #
 271 # Allow people to define their own clobber rules.  Normal makefiles
 272 # shouldn't override this - they should override $(CLOBBERFILES) instead.
 273 #
 274 CLOBBERTARGFILES= $(LIBS) $(DYNLIB) $(CLOBBERFILES)
  |