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


   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 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 #
  26 
  27 LIBRARY =       libsun_sas.a
  28 VERS =          .1
  29 
  30 OBJECTS =       devtree_hba_disco.o \
  31                 devtree_device_disco.o \
  32                 devtree_phy_disco.o \
  33                 devlink_disco.o \
  34                 event.o \
  35                 verify.o \
  36                 SMHBA_RegisterLibrary.o \
  37                 Sun_sasLoadLibrary.o \
  38                 Sun_sasGetNumberOfAdapters.o \
  39                 Sun_sasGetTargetMapping.o \
  40                 Sun_sasGetAdapterName.o \
  41                 Sun_sasGetAdapterAttributes.o \
  42                 Sun_sasGetAdapterPortAttributes.o \
  43                 Sun_sasGetDiscoveredPortAttributes.o \
  44                 Sun_sasGetPortAttributesByWWN.o \
  45                 Sun_sasGetSASPhyAttributes.o \


  67 include ../../Makefile.lib
  68 
  69 LIBS =          $(DYNLIB)
  70 SRCDIR=         ../common
  71 
  72 INCS +=         -I$(SRCDIR)
  73 INCS +=         -I$(SRC)/lib/smhba/common
  74 INCS +=         -I$(SRC)/lib/hbaapi/common
  75 INCS +=         -I$(SRC)/lib/libdevid
  76 
  77 CFLAGS +=       -mt
  78 CFLAGS +=       $(CCVERBOSE)
  79 CFLAGS64 +=     -mt
  80 CFLAGS64 +=     $(CCVERBOSE)
  81 CPPFLAGS +=     $(INCS) -D_POSIX_PTHREAD_SEMANTICS
  82 CPPFLAGS +=     -DBUILD_TIME='"Wed Feb 4 12:00:00 2009"'
  83 
  84 CERRWARN +=     -_gcc=-Wno-parentheses
  85 CERRWARN +=     -_gcc=-Wno-unused-value
  86 



  87 LDLIBS          += -ldevinfo
  88 LDLIBS          += -lsysevent
  89 LDLIBS          += -lnvpair
  90 LDLIBS          += -lc
  91 LDLIBS          += -lkstat
  92 LDLIBS          += -ldevid
  93 
  94 $(LINTLIB) := SRCS=     $(SRCDIR)/$(LINTSRC)
  95 
  96 .KEEP_STATE:
  97 
  98 all: $(LIBS)
  99 
 100 lint: lintcheck
 101 
 102 include ../../Makefile.targ


   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 2009 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 LIBRARY =       libsun_sas.a
  28 VERS =          .1
  29 
  30 OBJECTS =       devtree_hba_disco.o \
  31                 devtree_device_disco.o \
  32                 devtree_phy_disco.o \
  33                 devlink_disco.o \
  34                 event.o \
  35                 verify.o \
  36                 SMHBA_RegisterLibrary.o \
  37                 Sun_sasLoadLibrary.o \
  38                 Sun_sasGetNumberOfAdapters.o \
  39                 Sun_sasGetTargetMapping.o \
  40                 Sun_sasGetAdapterName.o \
  41                 Sun_sasGetAdapterAttributes.o \
  42                 Sun_sasGetAdapterPortAttributes.o \
  43                 Sun_sasGetDiscoveredPortAttributes.o \
  44                 Sun_sasGetPortAttributesByWWN.o \
  45                 Sun_sasGetSASPhyAttributes.o \


  67 include ../../Makefile.lib
  68 
  69 LIBS =          $(DYNLIB)
  70 SRCDIR=         ../common
  71 
  72 INCS +=         -I$(SRCDIR)
  73 INCS +=         -I$(SRC)/lib/smhba/common
  74 INCS +=         -I$(SRC)/lib/hbaapi/common
  75 INCS +=         -I$(SRC)/lib/libdevid
  76 
  77 CFLAGS +=       -mt
  78 CFLAGS +=       $(CCVERBOSE)
  79 CFLAGS64 +=     -mt
  80 CFLAGS64 +=     $(CCVERBOSE)
  81 CPPFLAGS +=     $(INCS) -D_POSIX_PTHREAD_SEMANTICS
  82 CPPFLAGS +=     -DBUILD_TIME='"Wed Feb 4 12:00:00 2009"'
  83 
  84 CERRWARN +=     -_gcc=-Wno-parentheses
  85 CERRWARN +=     -_gcc=-Wno-unused-value
  86 
  87 # not linted
  88 SMATCH=off
  89 
  90 LDLIBS          += -ldevinfo
  91 LDLIBS          += -lsysevent
  92 LDLIBS          += -lnvpair
  93 LDLIBS          += -lc
  94 LDLIBS          += -lkstat
  95 LDLIBS          += -ldevid
  96 
  97 $(LINTLIB) := SRCS=     $(SRCDIR)/$(LINTSRC)
  98 
  99 .KEEP_STATE:
 100 
 101 all: $(LIBS)
 102 
 103 lint: lintcheck
 104 
 105 include ../../Makefile.targ