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 #
  23 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  24 #

  25 
  26 LIBRARY=        udapl_tavor.a 
  27 VERS=           .1 
  28 
  29 LOCOBJS =       \
  30         dapl_cno_create.o \
  31         dapl_cno_free.o \
  32         dapl_cno_modify_agent.o \
  33         dapl_cno_query.o \
  34         dapl_cno_util.o \
  35         dapl_cno_wait.o \
  36         dapl_cookie.o \
  37         dapl_cr_accept.o \
  38         dapl_cr_callback.o \
  39         dapl_cr_handoff.o \
  40         dapl_cr_query.o \
  41         dapl_cr_reject.o \
  42         dapl_cr_util.o \
  43         dapl_debug.o \
  44         dapl_ep_connect.o \


 135 LDLIBS +=       -ldevinfo -lsocket -lnsl -ldat -lc -ldladm
 136 
 137 SRCDIR =        ../common
 138 TAVORSRCDIR =   ../tavor
 139 
 140 SRCS = $(LOCOBJS:%.o=$(SRCDIR)/%.c) $(TAVOROBJS:%.o=$(TAVORSRCDIR)/%.c)
 141 
 142 CPPFLAGS +=     -I$(SRC)/lib/udapl/udapl_tavor/include 
 143 CPPFLAGS +=     -I$(SRC)/lib/udapl/udapl_tavor/tavor
 144 CPPFLAGS +=     -I$(SRC)/uts/common/sys/ib/clients/daplt
 145 CPPFLAGS +=     -I$(SRC)/uts/common
 146 CPPFLAGS +=     -I$(SRC)/uts/common/sys/ib/clients
 147 CFLAGS +=       $(CCVERBOSE)
 148 LINTFLAGS +=    -DDAPL_DBG
 149 LINTFLAGS64 +=  -DDAPL_DBG
 150 
 151 CERRWARN +=     -_gcc=-Wno-parentheses
 152 CERRWARN +=     -_gcc=-Wno-uninitialized
 153 CERRWARN +=     -_gcc=-Wno-switch
 154 



 155 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDAPL_DBG
 156 debug := COPTFLAG = -g
 157 debug := COPTFLAG64 = -g
 158 
 159 .KEEP_STATE:
 160 
 161 all: $(LIBS)
 162 
 163 debug: all
 164 
 165 lint: lintcheck
 166 
 167 pics/%.o: $(TAVORSRCDIR)/%.c
 168         $(COMPILE.c) -o $@ $<
 169         $(POST_PROCESS_O)
 170 
 171 include $(SRC)/lib/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 #
  23 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 LIBRARY=        udapl_tavor.a
  28 VERS=           .1
  29 
  30 LOCOBJS =       \
  31         dapl_cno_create.o \
  32         dapl_cno_free.o \
  33         dapl_cno_modify_agent.o \
  34         dapl_cno_query.o \
  35         dapl_cno_util.o \
  36         dapl_cno_wait.o \
  37         dapl_cookie.o \
  38         dapl_cr_accept.o \
  39         dapl_cr_callback.o \
  40         dapl_cr_handoff.o \
  41         dapl_cr_query.o \
  42         dapl_cr_reject.o \
  43         dapl_cr_util.o \
  44         dapl_debug.o \
  45         dapl_ep_connect.o \


 136 LDLIBS +=       -ldevinfo -lsocket -lnsl -ldat -lc -ldladm
 137 
 138 SRCDIR =        ../common
 139 TAVORSRCDIR =   ../tavor
 140 
 141 SRCS = $(LOCOBJS:%.o=$(SRCDIR)/%.c) $(TAVOROBJS:%.o=$(TAVORSRCDIR)/%.c)
 142 
 143 CPPFLAGS +=     -I$(SRC)/lib/udapl/udapl_tavor/include
 144 CPPFLAGS +=     -I$(SRC)/lib/udapl/udapl_tavor/tavor
 145 CPPFLAGS +=     -I$(SRC)/uts/common/sys/ib/clients/daplt
 146 CPPFLAGS +=     -I$(SRC)/uts/common
 147 CPPFLAGS +=     -I$(SRC)/uts/common/sys/ib/clients
 148 CFLAGS +=       $(CCVERBOSE)
 149 LINTFLAGS +=    -DDAPL_DBG
 150 LINTFLAGS64 +=  -DDAPL_DBG
 151 
 152 CERRWARN +=     -_gcc=-Wno-parentheses
 153 CERRWARN +=     -_gcc=-Wno-uninitialized
 154 CERRWARN +=     -_gcc=-Wno-switch
 155 
 156 # not linted
 157 SMATCH=off
 158 
 159 $(NOT_RELEASE_BUILD)CPPFLAGS += -DDAPL_DBG
 160 debug := COPTFLAG = -g
 161 debug := COPTFLAG64 = -g
 162 
 163 .KEEP_STATE:
 164 
 165 all: $(LIBS)
 166 
 167 debug: all
 168 
 169 lint: lintcheck
 170 
 171 pics/%.o: $(TAVORSRCDIR)/%.c
 172         $(COMPILE.c) -o $@ $<
 173         $(POST_PROCESS_O)
 174 
 175 include $(SRC)/lib/Makefile.targ