8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / uts / sparc / hermon / Makefile
blob0b302b99535d0f54934b177b881eb98795a8f4b7
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 # This makefile drives the production of the hermon InfiniBand module
28 # sparc architecture dependent
30 # uts/sparc/hermon/Makefile
34 # Path to the base of the uts directory tree (usually /usr/src/uts).
36 UTSBASE = ../..
39 # Define the module and object file sets.
41 MODULE = hermon
42 OBJECTS = $(HERMON_OBJS:%=$(OBJS_DIR)/%)
43 LINTS = $(HERMON_OBJS:%.o=$(LINTS_DIR)/%.ln)
44 ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
45 CONF_SRCDIR = $(UTSBASE)/common/io/ib/adapters/hermon
46 LDFLAGS += -dy -Ndrv/ib -Nmisc/ibtl -Nmisc/ibmf
47 WARLOCK_OUT = $(HERMON_OBJS:%.o=%.ll)
48 WARLOCK_OK = $(MODULE).ok
49 WLCMD_DIR = $(UTSBASE)/common/io/warlock
52 # Include common rules.
54 include $(UTSBASE)/sparc/Makefile.sparc
57 # Define targets
59 ALL_TARGET = $(BINARY) $(SRC_CONFFILE)
60 LINT_TARGET = $(MODULE).lint
61 INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
64 # Overrides
68 # Build with no debug TNF probes enabled (by default)
70 #DEBUG_DEFS_DBG32 += -DTNF_DEBUG
71 #DEBUG_DEFS_DBG64 += -DTNF_DEBUG
74 # lint pass one enforcement
76 CFLAGS += $(CCVERBOSE)
78 CERRWARN += -_gcc=-Wno-switch
79 CERRWARN += -_gcc=-Wno-unused-value
80 CERRWARN += -_gcc=-Wno-unused-label
81 CERRWARN += -_gcc=-Wno-parentheses
82 CERRWARN += -_gcc=-Wno-uninitialized
85 # Default build targets.
87 .KEEP_STATE:
89 def: $(DEF_DEPS)
91 all: $(ALL_DEPS)
93 clean: $(CLEAN_DEPS)
95 clobber: $(CLOBBER_DEPS)
97 lint: $(LINT_DEPS)
99 modlintlib: $(MODLINTLIB_DEPS)
101 clean.lint: $(CLEAN_LINT_DEPS)
103 install: $(INSTALL_DEPS)
106 # Include common targets.
108 include $(UTSBASE)/sparc/Makefile.targ
112 # Defines for local commands.
114 WARLOCK = warlock
115 WLCC = wlcc
116 TOUCH = touch
117 TEST = test
119 warlock: $(WARLOCK_OK)
121 $(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/hermon.wlcmd
122 $(WARLOCK) -c $(WLCMD_DIR)/hermon.wlcmd $(WARLOCK_OUT) -l \
123 $(UTSBASE)/sparc/warlock/ddi_dki_impl.ll
124 $(TOUCH) $@
126 %.ll: $(UTSBASE)/common/io/ib/adapters/hermon/%.c
127 $(WLCC) $(CPPFLAGS) -DNPROBE -DDEBUG -o $@ $<
129 warlock_ddi.files:
130 @cd $(UTSBASE)/sparc/warlock; pwd; $(MAKE) warlock