Print this page
10804 Enable unused warnings outside of uts
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Toomas Soome <tsoome@me.com>


   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 
 161 .KEEP_STATE:
 162 
 163 all: $(LIBS)
 164 
 165 debug: all
 166 
 167 lint: lintcheck
 168 
 169 pics/%.o: $(TAVORSRCDIR)/%.c
 170         $(COMPILE.c) -o $@ $<
 171         $(POST_PROCESS_O)
 172 
 173 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 2019, 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_RELEASE_BUILD)CPPFLAGS += -DDAPL_DBG
 157 $(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
 158 
 159 # not linted
 160 SMATCH=off
 161 


 162 .KEEP_STATE:
 163 
 164 all: $(LIBS)
 165 
 166 debug: all
 167 
 168 lint: lintcheck
 169 
 170 pics/%.o: $(TAVORSRCDIR)/%.c
 171         $(COMPILE.c) -o $@ $<
 172         $(POST_PROCESS_O)
 173 
 174 include $(SRC)/lib/Makefile.targ