bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# CDDL HEADER START
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# The contents of this file are subject to the terms of the
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# Common Development and Distribution License (the "License").
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# You may not use this file except in compliance with the License.
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# or http://www.opensolaris.org/os/licensing.
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# See the License for the specific language governing permissions
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# and limitations under the License.
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# When distributing Covered Code, include this CDDL HEADER in each
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# If applicable, add the following below this CDDL HEADER, with the
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# CDDL HEADER END
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# Use is subject to license terms.
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# Path to the base of the uts directory tree (usually /usr/src/uts).
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsyncUTSBASE = ../..
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# Define the module and object file sets.
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsyncMODULE = daplt
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsyncOBJECTS = $(DAPLT_OBJS:%=$(OBJS_DIR)/%)
7f9e7d10ed0201f80200e1334b126abb1e60a1b0vboxsyncLINTS = $(DAPLT_OBJS:%.o=$(LINTS_DIR)/%.ln)
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncCONF_SRCDIR = $(UTSBASE)/common/io/ib/clients/daplt
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncLDFLAGS += -dy -Nmisc/ibtl -Nmisc/ibcm
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncWARLOCK_OUT = $(DAPLT_OBJS:%.o=%.ll)
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncWARLOCK_OK = $(MODULE).ok
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncWLCMD_DIR = $(UTSBASE)/common/io/warlock
91125635de7b4efefdef34181e5c197054efb005vboxsync
2335144655f8d66e12812bbc5050ce33091b7870vboxsync#
2335144655f8d66e12812bbc5050ce33091b7870vboxsync# Include common rules.
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
4d9ca1ebb96b721bcbeb14533dec01381acefb50vboxsyncinclude $(UTSBASE)/sparc/Makefile.sparc
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsync# Define targets
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsync#
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsyncALL_TARGET = $(BINARY) $(SRC_CONFILE)
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsyncLINT_TARGET = $(MODULE).lint
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsyncINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsync
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsync#
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsync# path for header files
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsync#
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsyncINCLUDE_PATH += -I$(UTSBASE)/common/sys/ib/clients/daplt
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# lint pass one enforcement
2335144655f8d66e12812bbc5050ce33091b7870vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncCFLAGS += $(CCVERBOSE)
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsync#
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsync# Overrides.
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsync#
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsyncALL_BUILDS = $(ALL_BUILDSONLY64)
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsyncDEF_BUILDS = $(DEF_BUILDSONLY64)
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsync
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsync#
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsync# For now, disable these lint checks; maintainers should endeavor
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsync# to investigate and remove these for maximum lint coverage.
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsync# Please do not carry these forward to new Makefiles.
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncLINTTAGS += -erroff=E_STATIC_UNUSED
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncCERRWARN += -_gcc=-Wno-parentheses
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsyncCERRWARN += -_gcc=-Wno-unused-variable
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsyncCERRWARN += -_gcc=-Wno-unused-function
f9634b336c07051463f2e7c61e04a4fb41abc898vboxsyncCERRWARN += -_gcc=-Wno-uninitialized
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# Default build targets.
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync.KEEP_STATE:
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncdef: $(DEF_DEPS)
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncall: $(ALL_DEPS)
2335144655f8d66e12812bbc5050ce33091b7870vboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncclean: $(CLEAN_DEPS)
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncclobber: $(CLOBBER_DEPS)
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
225527d45ee33be50e7efeffc42ef267ed9ae38cvboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsynclint: $(LINT_DEPS)
225527d45ee33be50e7efeffc42ef267ed9ae38cvboxsync
225527d45ee33be50e7efeffc42ef267ed9ae38cvboxsyncmodlintlib: $(MODLINTLIB_DEPS)
225527d45ee33be50e7efeffc42ef267ed9ae38cvboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncclean.lint: $(CLEAN_LINT_DEPS)
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncinstall: $(INSTALL_DEPS)
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
78deb1fe3d2a02f90b668f9b245ff985350e3809vboxsync# Include common targets.
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
1f20ff3c04430813dce4a15bdf43924a012d1d0bvboxsyncinclude $(UTSBASE)/sparc/Makefile.targ
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync# Defines for local commands.
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync#
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncWARLOCK = warlock
bb31fccb697b89643e2161bc7a198e1737f06774vboxsyncWLCC = wlcc
225527d45ee33be50e7efeffc42ef267ed9ae38cvboxsyncTOUCH = touch
225527d45ee33be50e7efeffc42ef267ed9ae38cvboxsyncTEST = test
225527d45ee33be50e7efeffc42ef267ed9ae38cvboxsync
225527d45ee33be50e7efeffc42ef267ed9ae38cvboxsyncDAPL_FILES = $(DAPL_OBJS:%.o= -l ../daplt/%.ll)
4d9ca1ebb96b721bcbeb14533dec01381acefb50vboxsync
91125635de7b4efefdef34181e5c197054efb005vboxsyncwarlock: $(WARLOCK_OK) $(WARLOCK_OUT)
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/daplt.wlcmd warlock_ddi.files
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync $(WARLOCK) -c $(WLCMD_DIR)/daplt.wlcmd $(WARLOCK_OUT) \
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsync -l $(UTSBASE)/sparc/warlock/ddi_dki_impl.ll
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync $(TOUCH) $@
bb31fccb697b89643e2161bc7a198e1737f06774vboxsync
2335144655f8d66e12812bbc5050ce33091b7870vboxsync%.ll: $(UTSBASE)/common/io/ib/clients/daplt/%.c \
4d9ca1ebb96b721bcbeb14533dec01381acefb50vboxsync $(UTSBASE)/common/sys/ib/clients/daplt/daplt.h \
2335144655f8d66e12812bbc5050ce33091b7870vboxsync $(UTSBASE)/common/sys/ib/clients/daplt/daplt_if.h
2335144655f8d66e12812bbc5050ce33091b7870vboxsync $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
2335144655f8d66e12812bbc5050ce33091b7870vboxsync
2335144655f8d66e12812bbc5050ce33091b7870vboxsyncwarlock_ddi.files:
4d9ca1ebb96b721bcbeb14533dec01381acefb50vboxsync @cd $(UTSBASE)/sparc/warlock; pwd; $(MAKE) warlock
2335144655f8d66e12812bbc5050ce33091b7870vboxsync