Print this page
10080 smatch Makefile changes for usr/src/cmd


   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 #
  23 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #

  26 
  27 LIBRARY =       libld.a
  28 VERS =          .4
  29 
  30 COMOBJS =       debug.o         globals.o       util.o
  31 
  32 COMOBJS32 =     args32.o        entry32.o       exit32.o        groups32.o \
  33                 ldentry32.o     ldlibs32.o      ldmachdep32.o   ldmain32.o \
  34                 libs32.o        files32.o       map32.o         map_core32.o \
  35                 map_support32.o map_v232.o      order32.o       outfile32.o \
  36                 place32.o       relocate32.o    resolve32.o     sections32.o \
  37                 sunwmove32.o    support32.o     syms32.o        update32.o \
  38                 unwind32.o      version32.o     wrap32.o
  39 
  40 COMOBJS64 =     args64.o        entry64.o       exit64.o        groups64.o \
  41                 ldentry64.o     ldlibs64.o      ldmachdep64.o   ldmain64.o \
  42                 libs64.o        files64.o       map64.o         map_core64.o \
  43                 map_support64.o map_v264.o      order64.o       outfile64.o \
  44                 place64.o       relocate64.o    resolve64.o     sections64.o \
  45                 sunwmove64.o    support64.o     syms64.o        update64.o \


  77 BLTOBJ =        msg.o
  78 ELFCAPOBJ =     elfcap.o
  79 
  80 OBJECTS =       $(BLTOBJ) $(G_MACHOBJS32) $(G_MACHOBJS64) \
  81                 $(L_MACHOBJS32) $(L_MACHOBJS64) \
  82                 $(COMOBJS) $(COMOBJS32) $(COMOBJS64) \
  83                 $(TOOLOBJS) $(E_TOOLOBJS) $(AVLOBJ) $(ELFCAPOBJ)
  84 
  85 include         $(SRC)/lib/Makefile.lib
  86 include         $(SRC)/cmd/sgs/Makefile.com
  87 
  88 SRCDIR =        ../common
  89 
  90 CERRWARN += -_gcc=-Wno-unused-value
  91 CERRWARN += -_gcc=-Wno-parentheses
  92 CERRWARN += -_gcc=-Wno-uninitialized
  93 CERRWARN += -_gcc=-Wno-switch
  94 CERRWARN += -_gcc=-Wno-char-subscripts
  95 CERRWARN += -_gcc=-Wno-type-limits
  96 


  97 # Location of the shared relocation engines maintained under usr/src/uts.
  98 #
  99 KRTLD_I386 = $(SRCBASE)/uts/$(VAR_PLAT_i386)/krtld
 100 KRTLD_AMD64 = $(SRCBASE)/uts/$(VAR_PLAT_amd64)/krtld
 101 KRTLD_SPARC = $(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld
 102 
 103 
 104 CPPFLAGS +=     -DUSE_LIBLD_MALLOC -I$(SRCBASE)/lib/libc/inc \
 105                     -I$(SRCBASE)/uts/common/krtld -I$(SRCBASE)/uts/sparc \
 106                     $(VAR_LIBLD_CPPFLAGS)
 107 LDLIBS +=       $(CONVLIBDIR) $(CONV_LIB) $(LDDBGLIBDIR) $(LDDBG_LIB) \
 108                     $(ELFLIBDIR) -lelf $(DLLIB) -lc
 109 
 110 LINTFLAGS +=    -u -D_REENTRANT
 111 LINTFLAGS64 +=  -u -D_REENTRANT
 112 
 113 DYNFLAGS +=     $(VERSREF) $(CC_USE_PROTO) '-R$$ORIGIN'
 114 
 115 native:=        DYNFLAGS        += $(CONVLIBDIR)
 116 




   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 #
  23 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # Copyright (c) 2018, Joyent, Inc.
  27 
  28 LIBRARY =       libld.a
  29 VERS =          .4
  30 
  31 COMOBJS =       debug.o         globals.o       util.o
  32 
  33 COMOBJS32 =     args32.o        entry32.o       exit32.o        groups32.o \
  34                 ldentry32.o     ldlibs32.o      ldmachdep32.o   ldmain32.o \
  35                 libs32.o        files32.o       map32.o         map_core32.o \
  36                 map_support32.o map_v232.o      order32.o       outfile32.o \
  37                 place32.o       relocate32.o    resolve32.o     sections32.o \
  38                 sunwmove32.o    support32.o     syms32.o        update32.o \
  39                 unwind32.o      version32.o     wrap32.o
  40 
  41 COMOBJS64 =     args64.o        entry64.o       exit64.o        groups64.o \
  42                 ldentry64.o     ldlibs64.o      ldmachdep64.o   ldmain64.o \
  43                 libs64.o        files64.o       map64.o         map_core64.o \
  44                 map_support64.o map_v264.o      order64.o       outfile64.o \
  45                 place64.o       relocate64.o    resolve64.o     sections64.o \
  46                 sunwmove64.o    support64.o     syms64.o        update64.o \


  78 BLTOBJ =        msg.o
  79 ELFCAPOBJ =     elfcap.o
  80 
  81 OBJECTS =       $(BLTOBJ) $(G_MACHOBJS32) $(G_MACHOBJS64) \
  82                 $(L_MACHOBJS32) $(L_MACHOBJS64) \
  83                 $(COMOBJS) $(COMOBJS32) $(COMOBJS64) \
  84                 $(TOOLOBJS) $(E_TOOLOBJS) $(AVLOBJ) $(ELFCAPOBJ)
  85 
  86 include         $(SRC)/lib/Makefile.lib
  87 include         $(SRC)/cmd/sgs/Makefile.com
  88 
  89 SRCDIR =        ../common
  90 
  91 CERRWARN += -_gcc=-Wno-unused-value
  92 CERRWARN += -_gcc=-Wno-parentheses
  93 CERRWARN += -_gcc=-Wno-uninitialized
  94 CERRWARN += -_gcc=-Wno-switch
  95 CERRWARN += -_gcc=-Wno-char-subscripts
  96 CERRWARN += -_gcc=-Wno-type-limits
  97 
  98 SMOFF += no_if_block
  99 
 100 # Location of the shared relocation engines maintained under usr/src/uts.
 101 #
 102 KRTLD_I386 = $(SRCBASE)/uts/$(VAR_PLAT_i386)/krtld
 103 KRTLD_AMD64 = $(SRCBASE)/uts/$(VAR_PLAT_amd64)/krtld
 104 KRTLD_SPARC = $(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld
 105 
 106 
 107 CPPFLAGS +=     -DUSE_LIBLD_MALLOC -I$(SRCBASE)/lib/libc/inc \
 108                     -I$(SRCBASE)/uts/common/krtld -I$(SRCBASE)/uts/sparc \
 109                     $(VAR_LIBLD_CPPFLAGS)
 110 LDLIBS +=       $(CONVLIBDIR) $(CONV_LIB) $(LDDBGLIBDIR) $(LDDBG_LIB) \
 111                     $(ELFLIBDIR) -lelf $(DLLIB) -lc
 112 
 113 LINTFLAGS +=    -u -D_REENTRANT
 114 LINTFLAGS64 +=  -u -D_REENTRANT
 115 
 116 DYNFLAGS +=     $(VERSREF) $(CC_USE_PROTO) '-R$$ORIGIN'
 117 
 118 native:=        DYNFLAGS        += $(CONVLIBDIR)
 119