Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / uts / intel / hermon / Makefile
blob792981714271a25eba9e583de594c7f4e6f122ac
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
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.
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]
19 # CDDL HEADER END
23 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
26 # Copyright (c) 2018, Joyent, Inc.
29 # Path to the base of the uts directory tree (usually /usr/src/uts).
31 UTSBASE = ../..
34 # Define the module and object file sets.
36 MODULE = hermon
37 OBJECTS = $(HERMON_OBJS:%=$(OBJS_DIR)/%)
38 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
39 CONF_SRCDIR = $(UTSBASE)/common/io/ib/adapters/hermon
40 LDFLAGS += -dy -Ndrv/ib -Nmisc/ibtl -Nmisc/ibmf
43 # Include common rules.
45 include $(UTSBASE)/intel/Makefile.intel
48 # Define targets
50 ALL_TARGET = $(BINARY) $(SRC_CONFFILE)
51 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
54 # Overrides
58 # Build with no debug TNF probes enabled (by default)
60 #DEBUG_DEFS_DBG32 += -DTNF_DEBUG
61 #DEBUG_DEFS_DBG64 += -DTNF_DEBUG
63 CERRWARN += -Wno-switch
64 CERRWARN += -Wno-unused-value
65 CERRWARN += -Wno-unused-label
66 CERRWARN += -Wno-parentheses
67 CERRWARN += -Wno-uninitialized
69 # needs work
70 SMATCH=off
73 # Default build targets.
75 .KEEP_STATE:
77 def: $(DEF_DEPS)
79 all: $(ALL_DEPS)
81 clean: $(CLEAN_DEPS)
83 clobber: $(CLOBBER_DEPS)
85 install: $(INSTALL_DEPS)
88 # Include common targets.
90 include $(UTSBASE)/intel/Makefile.targ