2058N/A#
2058N/A# CDDL HEADER START
2058N/A#
2058N/A# The contents of this file are subject to the terms of the
2058N/A# Common Development and Distribution License (the "License").
2058N/A# You may not use this file except in compliance with the License.
2058N/A#
2058N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2058N/A# or http://www.opensolaris.org/os/licensing.
2058N/A# See the License for the specific language governing permissions
2058N/A# and limitations under the License.
2058N/A#
2058N/A# When distributing Covered Code, include this CDDL HEADER in each
2058N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2058N/A# If applicable, add the following below this CDDL HEADER, with the
2058N/A# fields enclosed by brackets "[]" replaced with your own identifying
2058N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2058N/A#
2058N/A# CDDL HEADER END
2058N/A#
4070N/A#
4070N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3778N/A# Use is subject to license terms.
2058N/A#
4070N/A
2058N/A#
2058N/A#
2058N/A#
4070N/A# This makefile drives the production of the ibnex driver
2058N/A#
2058N/A# sparc architecture dependent
2058N/A#
4070N/A
2058N/A#
2058N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
2058N/A#
2058N/AUTSBASE = ../..
4070N/A
3661N/A#
3778N/A# Define the module and object file sets.
3778N/A#
3778N/AMODULE = ib
3996N/AOBJECTS = $(IB_OBJS:%=$(OBJS_DIR)/%)
3996N/ALINTS = $(IB_OBJS:%.o=$(LINTS_DIR)/%.ln)
3996N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
2058N/ACONF_SRCDIR = $(UTSBASE)/common/io/ib/ibnex
2058N/AWARLOCK_OUT = $(IB_OBJS:%.o=%.ll)
2058N/AWARLOCK_OK = $(MODULE).ok
4070N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
4070N/A
4070N/A#
4070N/A# Include common rules.
4070N/A#
4070N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
4070N/A
4070N/A#
4070N/A# Define targets
4070N/A#
4070N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
4070N/ALINT_TARGET = $(MODULE).lint
4070N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
4070N/A
4070N/A#
4070N/A# Overrides.
4070N/A#
4070N/AALL_BUILDS = $(ALL_BUILDSONLY64)
4070N/ADEF_BUILDS = $(DEF_BUILDSONLY64)
4070N/A
4070N/ACERRWARN += -_gcc=-Wno-uninitialized
4070N/A
4070N/A#
4070N/A# lint pass one enforcement
4070N/A#
2058N/ACFLAGS += $(CCVERBOSE)
2058N/A
4070N/A#
2058N/A# For now, disable these lint checks; maintainers should endeavor
4070N/A# to investigate and remove these for maximum lint coverage.
4070N/A# Please do not carry these forward to new Makefiles.
4070N/A#
2058N/ALINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
2058N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
2058N/ALINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
3996N/ALINTTAGS += -erroff=E_STATIC_UNUSED
3996N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
3996N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
#
# depends on misc/ibtl
#
LDFLAGS += -dy -Nmisc/ibdm -Nmisc/ibtl
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
$(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
clobber: $(CLOBBER_DEPS)
$(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS) lint32
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ
#
# Defines for local commands.
#
WARLOCK = warlock
WLCC = wlcc
TOUCH = touch
TEST = test
warlock: $(WARLOCK_OK)
$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/ib.wlcmd ibdm_files warlock_ddi.files
$(WARLOCK) -c $(WLCMD_DIR)/ib.wlcmd $(WARLOCK_OUT) \
-l ../ibdm/ibdm.ll -l ../warlock/ddi_dki_impl.ll
$(TOUCH) $@
%.ll: $(UTSBASE)/common/io/ib/ibnex/%.c \
$(UTSBASE)/common/sys/ib/ibnex/ibnex.h \
$(UTSBASE)/common/sys/ib/ibnex/ibnex_devctl.h
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
ibdm_files :
@cd ../ibdm; pwd; $(MAKE) warlock
warlock_ddi.files:
@cd ../warlock; pwd; $(MAKE) warlock