Print this page
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions


   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) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2016 Joyent, Inc.
  25 # Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
  26 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
  27 # Copyright 2018 Nexenta Systems, Inc.

  28 #
  29 
  30 LIBCBASE=       .
  31 LIBCDIR=        $(SRC)/lib/libc
  32 LIBRARY=        libc.a
  33 LIB_PIC=        libc_pic.a
  34 VERS=           .1
  35 CPP=            /usr/lib/cpp
  36 TARGET_ARCH=    amd64
  37 
  38 # include comm page definitions
  39 include $(SRC)/lib/commpage/Makefile.shared.com
  40 include $(SRC)/lib/commpage/Makefile.shared.targ
  41 
  42 # objects are grouped by source directory
  43 
  44 # local objects
  45 STRETS=
  46 
  47 CRTOBJS=                        \


1018 include ../../Makefile.lib.64
1019 
1020 CFLAGS64 += $(CTF_FLAGS)
1021 
1022 # This is necessary to avoid problems with calling _ex_unwind().
1023 # We probably don't want any inlining anyway.
1024 CFLAGS64 += -xinline=
1025 
1026 CERRWARN += -_gcc=-Wno-parentheses
1027 CERRWARN += -_gcc=-Wno-switch
1028 CERRWARN += -_gcc=-Wno-uninitialized
1029 CERRWARN += -_gcc=-Wno-unused-value
1030 CERRWARN += -_gcc=-Wno-unused-label
1031 CERRWARN += -_gcc=-Wno-unused-variable
1032 CERRWARN += -_gcc=-Wno-type-limits
1033 CERRWARN += -_gcc=-Wno-char-subscripts
1034 CERRWARN += -_gcc=-Wno-clobbered
1035 CERRWARN += -_gcc=-Wno-unused-function
1036 CERRWARN += -_gcc=-Wno-address
1037 



1038 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1039 # enables ASSERT() checking in the threads portion of the library.
1040 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1041 THREAD_DEBUG =
1042 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1043 
1044 # Make string literals read-only to save memory
1045 CFLAGS64 += $(XSTRCONST)
1046 
1047 ALTPICS= $(TRACEOBJS:%=pics/%)
1048 
1049 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
1050 
1051 MAPFILES =      $(LIBCDIR)/port/mapfile-vers
1052 
1053 CPPFLAGS=       -D_REENTRANT -D$(MACH64) -D__$(MACH64) $(THREAD_DEBUG) \
1054                 -I. -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1055 ASFLAGS=        $(AS_PICFLAGS) -P -D__STDC__ -D_ASM $(CPPFLAGS) \
1056                 $(amd64_AS_XARCH)
1057 




   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) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2016 Joyent, Inc.
  25 # Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
  26 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
  27 # Copyright 2018 Nexenta Systems, Inc.
  28 # Copyright (c) 2018, Joyent, Inc.
  29 #
  30 
  31 LIBCBASE=       .
  32 LIBCDIR=        $(SRC)/lib/libc
  33 LIBRARY=        libc.a
  34 LIB_PIC=        libc_pic.a
  35 VERS=           .1
  36 CPP=            /usr/lib/cpp
  37 TARGET_ARCH=    amd64
  38 
  39 # include comm page definitions
  40 include $(SRC)/lib/commpage/Makefile.shared.com
  41 include $(SRC)/lib/commpage/Makefile.shared.targ
  42 
  43 # objects are grouped by source directory
  44 
  45 # local objects
  46 STRETS=
  47 
  48 CRTOBJS=                        \


1019 include ../../Makefile.lib.64
1020 
1021 CFLAGS64 += $(CTF_FLAGS)
1022 
1023 # This is necessary to avoid problems with calling _ex_unwind().
1024 # We probably don't want any inlining anyway.
1025 CFLAGS64 += -xinline=
1026 
1027 CERRWARN += -_gcc=-Wno-parentheses
1028 CERRWARN += -_gcc=-Wno-switch
1029 CERRWARN += -_gcc=-Wno-uninitialized
1030 CERRWARN += -_gcc=-Wno-unused-value
1031 CERRWARN += -_gcc=-Wno-unused-label
1032 CERRWARN += -_gcc=-Wno-unused-variable
1033 CERRWARN += -_gcc=-Wno-type-limits
1034 CERRWARN += -_gcc=-Wno-char-subscripts
1035 CERRWARN += -_gcc=-Wno-clobbered
1036 CERRWARN += -_gcc=-Wno-unused-function
1037 CERRWARN += -_gcc=-Wno-address
1038 
1039 # not linted
1040 SMATCH=off
1041 
1042 # Setting THREAD_DEBUG = -DTHREAD_DEBUG (make THREAD_DEBUG=-DTHREAD_DEBUG ...)
1043 # enables ASSERT() checking in the threads portion of the library.
1044 # This is automatically enabled for DEBUG builds, not for non-debug builds.
1045 THREAD_DEBUG =
1046 $(NOT_RELEASE_BUILD)THREAD_DEBUG = -DTHREAD_DEBUG
1047 
1048 # Make string literals read-only to save memory
1049 CFLAGS64 += $(XSTRCONST)
1050 
1051 ALTPICS= $(TRACEOBJS:%=pics/%)
1052 
1053 $(DYNLIB) := BUILD.SO = $(LD) -o $@ -G $(DYNFLAGS) $(PICS) $(ALTPICS) $(EXTPICS)
1054 
1055 MAPFILES =      $(LIBCDIR)/port/mapfile-vers
1056 
1057 CPPFLAGS=       -D_REENTRANT -D$(MACH64) -D__$(MACH64) $(THREAD_DEBUG) \
1058                 -I. -I$(LIBCBASE)/inc -I$(LIBCDIR)/inc $(CPPFLAGS.master)
1059 ASFLAGS=        $(AS_PICFLAGS) -P -D__STDC__ -D_ASM $(CPPFLAGS) \
1060                 $(amd64_AS_XARCH)
1061